Raccoon: a timing side channel in the TLS 1.2 DH key derivation
Merget, Brinkmann, Aviram, Somorovsky, Mittmann and Schwenk showed that TLS 1.2 and earlier strip leading zero bytes from the Diffie-Hellman premaster secret before hashing it, so the time to derive the master secret depends on the secret. With precise timing and a re-used (static or semi-static) DH key, an attacker can solve a hidden-number problem to recover a past session's premaster secret.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
Raccoon is a protocol-induced timing leak: the specification itself mandates the data-dependent processing, so even constant-time implementations of the hash leak. Exploitation was hard (sub-microsecond timing, server must reuse DH exponents), so the impact was limited, but OpenSSL (CVE-2020-1968, static DH suites), F5 and others issued fixes. TLS 1.3 does not strip leading zeros and is unaffected.
Like Lucky Thirteen, it is a reminder that side channels can be designed into protocols, not just introduced by code.
Sources
- announcementRaccoon Attack project page (USENIX Security 2021)Raccoon authors, raccoon-attack.com
- cveCVE-2020-1968NIST NVD, nvd.nist.gov