Skip to content
OpenAdvisories
High CVE-2016-10535 EUVD-2019-0303GHSA-hjhr-r3gq-qvp6

Timing Attack in csrf-lite

Published May 31, 2018 · Updated Sep 17, 2024 · Assigned by hackerone

Description

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.

Affected products

VendorProductAffectedFixed
HackerOne csrf-lite node module <=0.1.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm csrf-lite < 0.1.2 0.1.2 GHSA-hjhr-r3gq-qvp6

References