Sweet32: birthday attacks on 64-bit blocks in HTTPS and OpenVPN
Karthikeyan Bhargavan and Gaëtan Leurent (Inria) showed that 64-bit block ciphers in CBC mode leak plaintext once about 2^32 blocks (~32 GB) are encrypted under one key. They recovered an HTTPS session cookie from Triple DES traffic after roughly 785 GB (about 38 hours) and HTTP Basic Auth credentials from Blowfish-encrypted OpenVPN after about 705 GB (about 18.6 hours).
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The attack uses the birthday bound, not a flaw in DES or Blowfish: with an n-bit block, ciphertext block collisions become likely after about 2^(n/2) blocks, and in CBC mode each collision reveals the XOR of two plaintext blocks. Attacker-injected JavaScript makes the victim's browser send the same secret cookie billions of times over one long-lived connection until collisions expose it.
The lesson is about parameters and protocol usage: 64-bit blocks are unsafe for bulk data under a single key no matter how strong the cipher's key is. Fixes were to drop 3DES from default TLS cipher suites, switch OpenVPN away from Blowfish, and cap data per key. Sweet32 directly fed NIST's decision to restrict and then disallow Triple DES. CVE-2016-2183 (TLS/SSH) and CVE-2016-6329 (OpenVPN).
Sources
- paperOn the Practical (In-)Security of 64-bit Block Ciphers: Collision Attacks on HTTP over TLS and OpenVPN (ePrint 2016/798, ACM CCS 2016)IACR ePrint, eprint.iacr.org
- blogSweet32: Birthday attacks on 64-bit block ciphers in TLS and OpenVPNInria, sweet32.info
- cveCVE-2016-2183NIST NVD, nvd.nist.gov