Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWhqaHItcjNncS1xdnA2
Timing Attack in csrf-lite
Affected versions of csrf-lite
are vulnerable to timing attacks as a result of testing CSRF tokens via 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 (16*18)288 guesses, instead of the 16^18 guesses required were the timing attack not present.
Recommendation
Update to version 0.1.2 or later.
Permalink: https://github.com/advisories/GHSA-hjhr-r3gq-qvp6JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWhqaHItcjNncS1xdnA2
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 5 years ago
Updated: almost 2 years ago
Identifiers: GHSA-hjhr-r3gq-qvp6, CVE-2016-10535
References:
- https://nvd.nist.gov/vuln/detail/CVE-2016-10535
- https://github.com/isaacs/csrf-lite/pull/1
- https://github.com/advisories/GHSA-hjhr-r3gq-qvp6
- https://www.npmjs.com/advisories/94
Blast Radius: 0.0
Affected Packages
npm:csrf-lite
Dependent packages: 4Dependent repositories: 9
Downloads: 39 last month
Affected Version Ranges: < 0.1.2
Fixed in: 0.1.2
All affected versions: 0.0.1, 0.0.2, 0.1.0, 0.1.1
All unaffected versions: 0.1.2, 1.0.0