Insecure Randomness

Affecting cryptiles package, versions <4.1.2

medium severity

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 version 4.1.2 and higher.

References

Do your applications use this vulnerable package?

Credit
Microsoft Vulnerability Research
CVE
CVE-2018-1000620
CWE
CWE-331
Snyk ID
npm:cryptiles:20180710
Disclosed
10 Jul, 2018
Published
19 Jul, 2018