A messy state of the union: Taming the composite state machines of TLS

  • Benjamin Beurdouche
  • , Karthikeyan Bhargavan
  • , Antoine Delignat-Lavaud
  • , Cédric Fournet
  • , Markulf Kohlweiss
  • , Alfredo Pironti
  • , Pierre Yves Strub
  • , Jean Karim Zinzindohoue

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Implementations of the Transport Layer Security (TLS) protocol must handle a variety of protocol versions and extensions, authentication modes, and key exchange methods. Confusingly, each combination may prescribe a different message sequence between the client and the server. We address the problem of designing a robust composite state machine that correctly multiplexes between these different protocol modes. We systematically test popular open-source TLS implementations for state machine bugs and discover several critical security vulnerabilities that have lain hidden in these libraries for years, and have now finally been patched due to our disclosures. Several of these vulnerabilities, including the recently publicized FREAK flaw, enable a network attacker to break into TLS connections between authenticated clients and servers. We argue that state machine bugs stem from incorrect compositions of individually correct state machines. We present the first verified implementation of a composite TLS state machine in C that can be embedded into OpenSSL and accounts for all its supported cipher suites. Our attacks expose the need for the formal verification of core components in cryptographic protocol libraries, our implementation demonstrates that such mechanized proofs are within reach, even for mainstream TLS implementations.

Original languageEnglish
Title of host publicationProceedings - 2015 IEEE Symposium on Security and Privacy, SP 2015
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages535-552
Number of pages18
ISBN (Electronic)9781467369497
DOIs
Publication statusPublished - 17 Jul 2015
Externally publishedYes
Event36th IEEE Symposium on Security and Privacy, SP 2015 - San Jose, United States
Duration: 18 May 201520 May 2015

Publication series

NameProceedings - IEEE Symposium on Security and Privacy
Volume2015-July
ISSN (Print)1081-6011

Conference

Conference36th IEEE Symposium on Security and Privacy, SP 2015
Country/TerritoryUnited States
CitySan Jose
Period18/05/1520/05/15

Keywords

  • Transport Layer Security
  • cryptographic protocols
  • formal methods
  • man-in-the-middle attacks
  • software verification

Fingerprint

Dive into the research topics of 'A messy state of the union: Taming the composite state machines of TLS'. Together they form a unique fingerprint.

Cite this