JHipster Kotlin using insecure source of randomness `RandomStringUtils` before v1.2.0
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| generator-jhipster-kotlin npm |
|
|
| generator-jhipster npm |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| generator-jhipster-kotlin npm |
|
|
| generator-jhipster npm |
|
|
A class generated by the Generator in JHipster before 6.3.0 and JHipster Kotlin through 1.1.0 produces code that uses an insecure source of randomness (apache.commons.lang3 RandomStringUtils). This allows an attacker (if able to obtain their own password reset URL) to compute the value for all other password resets for other accounts, thus allowing privilege escalation or account takeover.
From the CVE record · mitre
Code generated by affected JHipster and JHipster Kotlin versions uses an insecure source of randomness for password resets. An attacker who can obtain their own password reset URL can compute reset values for other accounts, potentially taking over those accounts or escalating privileges.
Engineers using npm generator-jhipster versions before 6.3.0 or generator-jhipster-kotlin versions before 1.2.0 should check their generated code.