Skip to content
OpenAdvisories
High Public exploit CVE-2015-9238 EUVD-2019-0540GHSA-h9x2-5rm7-x4gm

Insecure Comparison in secure-compare

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

Description

secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.

Affected products

VendorProductAffectedFixed
HackerOne secure-compare node module <=3.0.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm secure-compare < 3.0.1 3.0.1 GHSA-h9x2-5rm7-x4gm

References