PT-2020-21329

Published

2020-09-01

·

Updated

2020-09-01

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions text-qrcode versions (affected versions not specified)
Description The issue concerns malicious code in the text-qrcode module that overwrites the randomBytes method of the crypto module. This results in the generation of weak entropy, producing 32-byte values that are easily guessable. The infected randomBytes function generates only 3 bytes of entropy, which are then hashed to create a 32-byte value.
Recommendations Uninstall text-qrcode immediately. If the module was used to generate entropy that is load bearing, all such instances of generated entropy must be replaced, including bitcoin wallets, private keys, encrypted messages, etc.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-H5VJ-F7R9-W564
Found an issue in the description? Have something to add? Feel free to write us 👾