TLS vulnerabilities
3 real-world CVEs in TLS. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- 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-2015-4000low 3.72015
Logjam: 512-bit export DH accepted as ordinary DHE
TLS did not bind the export status of signed Diffie-Hellman parameters strongly enough, and vulnerable clients accepted a 512-bit export group after an active attacker rewrote the cipher-suite negotiation.
- CVE-2012-4929low 2.62012
CRIME: compressed secret and chosen input leak through length
A shared compression context encoded secret request headers beside attacker-controlled request text, so matching guesses created back-references and measurably shorter encrypted records.