Lucky Thirteen: timing of MAC checks breaks TLS/DTLS CBC records
Nadhem AlFardan and Kenneth Paterson showed that tiny timing differences in how TLS and DTLS implementations processed padding and the HMAC on CBC-mode records formed a padding oracle, allowing a man-in-the-middle to recover plaintext such as cookies. The name comes from the 13 bytes of header data fed into the MAC.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
Lucky Thirteen sits at the boundary of the site's categories: the root cause is TLS's MAC-then-encode-then-encrypt design (a protocol flaw first exploited by Vaudenay's 2002 padding oracle), but the exploit vector is a timing side channel that survived earlier 'constant-time' fixes. It is recorded here as a side-channel event with layer=protocol.
Patching required carefully constant-time MAC verification (a notoriously intricate fix in OpenSSL, NSS, GnuTLS and others), and the episode pushed the ecosystem toward AEAD modes (AES-GCM, ChaCha20-Poly1305) and ultimately TLS 1.3, which removed CBC suites. AES itself was not weakened.
Sources
- paperLucky Thirteen: Breaking the TLS and DTLS Record Protocols (IEEE S&P 2013)IEEE, doi.org
- blogLucky Thirteen project pageRoyal Holloway ISG, isg.rhul.ac.uk
- cveCVE-2013-0169NIST NVD, nvd.nist.gov
- wikiLucky Thirteen attackWikipedia, en.wikipedia.org