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.
Remediation
References
https://github.com/isaacs/csrf-lite/pull/1
https://nodesecurity.io/advisories/94
Related Vulnerabilities
CVE-2022-36896 Vulnerability in maven package com.compuware.jenkins:compuware-scm-downloader
CVE-2021-32640 Vulnerability in npm package ws
CVE-2020-28452 Vulnerability in maven package com.softwaremill.akka-http-session:core_2.13
CVE-2021-23558 Vulnerability in npm package bmoor
CVE-2023-40787 Vulnerability in maven package org.springblade:blade-core-tool