Advisory

GHSA-4gpm-r23h-gprw

Also known as: CVE-2015-20110

Summary

generator-jhipster allows a timing attack against validateToken due to a string comparison that stops at the first character

Details

JHipster generator-jhipster before 2.23.0 allows a timing attack against validateToken due to a string comparison that stops at the first character that is different. Attackers can guess tokens by brute forcing one character at a time and observing the timing. This of course drastically reduces the search space to a linear amount of guesses based on the token length times the possible characters.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-10-31 03:31 UTC
Modified
2023-11-08 18:41 UTC

Affected packages and fixes

generator-jhipster

npm · All systems

Affected

  • introduced 0, fixed 2.23.0 (semver)

Fixed versions

2.23.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences