Lookup for vulnerable packages by Package URL.
| Purl | pkg:npm/csrf-lite@0.1.2 |
| Type | npm |
| Namespace | |
| Name | csrf-lite |
| Version | 0.1.2 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | false |
| Next_non_vulnerable_version | 0.1.2 |
| Latest_non_vulnerable_version | 0.1.2 |
| Affected_by_vulnerabilities |
|
| Fixing_vulnerabilities |
| 0 |
| url |
VCID-5npf-xayn-6qfa |
| vulnerability_id |
VCID-5npf-xayn-6qfa |
| summary |
Non-Constant Time String Comparison
csrf-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. |
| references |
|
| fixed_packages |
|
| aliases |
GMS-2016-30
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-5npf-xayn-6qfa |
|
| 1 |
| url |
VCID-d1xq-9hrf-4qhs |
| vulnerability_id |
VCID-d1xq-9hrf-4qhs |
| summary |
Cross-Site Request Forgery (CSRF)
csrf-lite is a cross-site request forgery protection library for framework-less node sites. csrf-lite uses `===`, a fail first string comparison, instead of a time constant string comparison This enables an attacker 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. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2016-10535, GHSA-hjhr-r3gq-qvp6
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-d1xq-9hrf-4qhs |
|
|
| Risk_score | null |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:npm/csrf-lite@0.1.2 |