{"id":"CVE-2015-9238","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T17:43:37Z","title":"secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first…","vendor":"HackerOne","product":"secure-compare node module","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01449,"percentile":0.73992,"provenance":"source"},"cwes":[{"id":"CWE-697","name":"Incorrect Comparison"}],"references":[{"url":"https://github.com/vdemedes/secure-compare/pull/1","tags":["x_refsource_MISC"]},{"url":"https://nodesecurity.io/advisories/50","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":14.8},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-11-24","earliestUrl":"https://github.com/m0d0ri205/wargame-turkey_in_2","repos":[{"name":"m0d0ri205/wargame-turkey_in_2","url":"https://github.com/m0d0ri205/wargame-turkey_in_2","stars":0,"created":"2024-11-24"}]},"first":{"date":"2024-11-24","source":"PoC-in-GitHub","url":"https://github.com/m0d0ri205/wargame-turkey_in_2"},"provenance":"source"},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"secure-compare node module","versions":["<=3.0.0"]}],"affected":[{"ecosystem":"npm","package":"secure-compare","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-h9x2-5rm7-x4gm"],"provenance":"source"}],"summary":{"text":"The secure-compare Node module, versions 3.0.0 and below, has a flaw in its compare function, which compares the first argument with itself rather than with the second. An attacker can cause the check to pass for any two strings of the same length.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:57Z"},"euvd":{"id":"EUVD-2019-0540","exploited":false,"provenance":"source"}}