Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in Ratpack
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| io.ratpack:ratpack-session Maven |
|
|
| io.ratpack:ratpack-java Maven |
|
|
| io.ratpack:ratpack-groovy Maven |
| Product | Affected | Fixed in |
|---|---|---|
| io.ratpack:ratpack-session Maven |
|
|
| io.ratpack:ratpack-java Maven |
|
|
| io.ratpack:ratpack-groovy Maven |
|
|
Ratpack versions before 1.6.1 generate a session ID using a cryptographically weak PRNG in the JDK's ThreadLocalRandom. This means that if an attacker can determine a small window for the server start time and obtain a session ID value, they can theoretically determine the sequence of session IDs.
From the CVE record · mitre
Ratpack versions before 1.6.1 generate session IDs using the JDK's cryptographically weak ThreadLocalRandom. An attacker who can narrow the server start time to a small window and obtain a session ID could theoretically determine the sequence of session IDs. The input does not specify whether authentication or user interaction is required.
Engineers running Maven packages io.ratpack:ratpack-session, io.ratpack:ratpack-java, or io.ratpack:ratpack-groovy at versions before 1.6.1 should check their dependencies.