GHSA-4gpm-r23h-gprw

Suggest an improvement
Source
https://github.com/advisories/GHSA-4gpm-r23h-gprw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-4gpm-r23h-gprw/GHSA-4gpm-r23h-gprw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4gpm-r23h-gprw
Aliases
  • CVE-2015-20110
Published
2023-10-31T03:31:22Z
Modified
2023-11-08T18:41:14Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2023-10-31T03:15:07Z",
    "github_reviewed_at": "2023-10-31T19:30:57Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-208",
        "CWE-307"
    ]
}
References

Affected packages

npm / generator-jhipster

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.23.0