Insecure Randomness

Affecting cryptiles package, versions >=3.1.0 <3.1.3 || >=4.0.0 <4.1.2

Do your applications use this vulnerable package? Test your applications

Overview

cryptiles is a package for general crypto utilities.

Affected versions of this package are vulnerable to Insecure Randomness. The randomDigits() method is supposed to return a cryptographically strong pseudo-random data string, but it was biased to certain digits. An attacker could be able to guess the created digits.

Remediation

Upgrade to versions 3.1.3, 4.1.2 and higher.

References

CVSS Score

5.3
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    None
  • Availability
    None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Credit
Microsoft Vulnerability Research
CVE
CVE-2018-1000620
CWE
CWE-331
Snyk ID
npm:cryptiles:20180710
Disclosed
10 Jul, 2018
Published
19 Jul, 2018