Insecure Credential Comparison

Affecting safe-compare package, versions <1.1.1

Do your applications use this vulnerable package? Test your applications

Overview

safe-compare is Constant-time comparison algorithm to prevent timing attacks..

Affected versions of the package are vulnerable to Insecure Credential Comparison due to using String.prototype.length instead of Buffer.byteLength.

Remediation

Upgrade safe-compare to version 1.1.1 or higher.

References

CVSS Score

6.5
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    High
  • Availability
    None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Credit
James Billingham
CWE
CWE-522
Snyk ID
npm:safe-compare:20180210
Disclosed
09 Feb, 2018
Published
14 Feb, 2018