Triple Handshake: malicious DHE groups let a TLS server force identical master secrets
Bhargavan, Delignat-Lavaud, Fournet, Pironti and Strub showed that in TLS DHE a malicious server can pick a non-prime group or degenerate parameters so the premaster secret is fully under its control. Combined with session resumption and renegotiation, this allowed a man-in-the-middle to synchronize two sessions and impersonate a client to another server. Fixes included rejecting degenerate DH public keys (NSS, CVE-2014-1491), blocking certificate changes on renegotiation, and the extended master secret extension (RFC 7627).
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The core flaw was in TLS's key schedule: the master secret did not bind the full handshake transcript, so two different connections could end up with the same keys. Arbitrary server-chosen DH groups were one of two ways (with RSA key transport) to engineer that collision, because TLS 1.2 clients had no practical way to check that the server's group was a safe prime.
No discrete logarithm is computed and DH itself is not weakened. The episode is part of why TLS 1.3 removed server-chosen custom groups and hashes the whole transcript into its keys.
Sources
- paperTriple Handshakes and Cookie Cutters: Breaking and Fixing Authentication over TLS (IEEE S&P 2014)IEEE, doi.org
- blogTriple Handshakes Considered Harmful (miTLS project page, archived)miTLS / Inria & Microsoft Research, web.archive.org
- standardRFC 7627: TLS Session Hash and Extended Master Secret ExtensionIETF, rfc-editor.org