GHSA-92vm-wfm5-mxvv

Suggest an improvement
Source
https://github.com/advisories/GHSA-92vm-wfm5-mxvv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/01/GHSA-92vm-wfm5-mxvv/GHSA-92vm-wfm5-mxvv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-92vm-wfm5-mxvv
Aliases
Published
2020-01-06T18:44:10Z
Modified
2023-11-08T03:58:08.152158Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
cookie-signature Timing Attack
Details

Affected versions of cookie-signature are vulnerable to timing attacks as a result of using a fail-early comparison instead of a constant-time comparison.

Timing attacks remove the exponential increase in entropy gained from increased secret length, by providing per-character feedback on the correctness of a guess via miniscule timing differences.

Under favorable network conditions, an attacker can exploit this to guess the secret in no more than charset*length guesses, instead of charset^length guesses required were the timing attack not present.

Recommendation

Update to 1.0.4 or later.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2019-12-27T22:19:47Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-362"
    ]
}
References

Affected packages

npm / cookie-signature

Package

Affected ranges

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