CVE-2016-10535: Timing Attack in csrf-lite
4.3
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54157%
CWE
Published
2/18/2019
Updated
1/9/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
AV:N/AC:M/Au:N/C:P/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
csrf-lite | npm | < 0.1.2 | 0.1.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The security patch shows the vulnerable code was in the validation function where CSRF tokens were compared using === operator. The function was renamed from csrf.valid
to csrf.validate()
in the patch, but both point to the same validation logic. This is the exact location where attackers could exploit timing differences in string comparison. The commit replaces the vulnerable comparison with scmp
's constant-time comparison, confirming this was the attack surface.