CWE-295: Improper Certificate Validation
4 real-world CVEs classified as CWE-295: Improper Certificate Validation. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2022-26923high 8.82022
Certifried: AD CS certificate SAN spoofed from a writable dNSHostName
A certificate template that builds its Subject Alternative Name from the enrollee's dNSHostName lets a low-privileged user mint an authentication certificate for any machine, because dNSHostName is self-writable and not unique.
- CVE-2021-3618high 7.42022
ALPACA: a valid certificate for the wrong protocol
A TCP-level man-in-the-middle could redirect HTTPS traffic to a tolerant non-HTTP TLS service using a certificate valid for the target hostname. Without ALPN or strict SNI binding, TLS authenticated the key but not the intended application protocol.
- CVE-2020-0601high 8.12020
CurveBall: ECC parameter confusion in Windows certificate validation
Windows CryptoAPI could match an attacker-supplied ECC issuer to a trusted root by public-key material while failing to bind the comparison to the curve parameters that define how that key is interpreted.
- CVE-2014-1266high 7.42014
Apple goto fail: skipped TLS signature check
A duplicated goto jumps past the signature verification in a TLS key-exchange handler, so the function returns success without ever checking the signature, letting a man-in-the-middle spoof any server.