{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/38098?format=json","vulnerability_id":"VCID-5npf-xayn-6qfa","summary":"Non-Constant Time String Comparison\ncsrf-lite uses `===`, a fail first string comparison, instead of a time constant string comparison. This enables an attacker being able to calculate minuscule differences in CSRF tokens, essentially enabling them to guess the token one character at a time Each check increases the variable `tempCheck` by one. If a malicious user is able to see what `tempCheck` is at each run (how long it takes to do a check), then they can see when it increases. This increase indicates that the character they just put in for `csrfTokenCompare` is the correct one.","aliases":[{"alias":"GMS-2016-30"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/52663?format=json","purl":"pkg:npm/csrf-lite@0.1.2","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/csrf-lite@0.1.2"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/52662?format=json","purl":"pkg:npm/csrf-lite@0.1.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-5npf-xayn-6qfa"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/csrf-lite@0.1.1"}],"references":[{"reference_url":"https://github.com/isaacs/csrf-lite/pull/1","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/isaacs/csrf-lite/pull/1"}],"weaknesses":[{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."}],"exploits":[],"severity_range_score":null,"exploitability":null,"weighted_severity":null,"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-5npf-xayn-6qfa"}