CWE-330: Use of Insufficiently Random Values
3 real-world CVEs classified as CWE-330: Use of Insufficiently Random Values. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2020-25705high 7.42020
SAD DNS: a global ICMP bucket reveals UDP source ports
Linux's deterministic host-wide ICMP token bucket let an off-path attacker distinguish spoofed probes to closed and open UDP ports, removing source-port entropy from DNS and leaving only the transaction ID to guess.
- CVE-2020-1472critical 10.02020
Netlogon Zerologon authentication bypass (CVE-2020-1472)
MS-NRPC computes its session credential with AES-CFB8 using an all-zero IV, so an all-zero challenge has a 1-in-256 chance of validating. An unauthenticated attacker on the network retries until the domain controller accepts, then empties its machine-account password. Named Zerologon by Secura's Tom Tervoort, it scored a perfect CVSS 10.0 and takes a DC to Domain Admin in seconds, one of the most severe Active Directory flaws ever disclosed.
- CVE-2008-0166high 7.82008
Debian OpenSSL predictable PRNG
A Debian patch commented out the one line that mixed fresh entropy into the OpenSSL PRNG pool, so generated keys depended only on the process ID: about 32,767 possible keys per type and size.