Using Frankencerts for Automated Adversarial Testing of Certificate Validation in SSL/TLS Implementations

By Chad Brubaker, Suman Sekhar Jana, Baishakhi Ray, Sarfraz Khurshid, Vitaly Shmatikov. 2014

248 citations recorded by the source corpus.

Modern network security rests on the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. Distributed systems, mobile and desktop applications, embedded devices, and all of secure Web rely on SSL/TLS for protection against network attacks. This protection critically depends on whether SSL/TLS clients correctly validate X.509 certificates presented by servers during the SSL/TLS handshake protocol. We design, implement, and apply the first methodology for large-scale testing of certificate validation logic in SSL/TLS implementations. Our first ingredient is "frankencerts," synthetic certificates that are randomly mutated from parts of real certificates and thus include unusual combinations of extensions and constraints. Our second ingredient is differential testing: if one SSL/TLS implementation accepts a certificate while another rejects the same certificate, we use the discrepancy as an oracle for finding flaws in individual implementations. Differential testing with frankencerts uncovered 208 discrepancies between popular SSL/TLS implementations such as OpenSSL, NSS, CyaSSL, GnuTLS, PolarSSL, MatrixSSL, etc. Many of them are caused by serious security vulnerabilities. For example, any server with a valid X.509 version1 certificate can act as a rogue certificate authority and issue fake certificates for any domain, enabling man-in-the-middle attacks against MatrixSSL and GnuTLS. Several implementations also accept certificate authorities created by unauthorized issuers, as well as certificates not intended for server authentication. We also found serious vulnerabilities in how users are warned about certificate validation errors. When presented with an expired, self-signed certificate, NSS, Safari, and Chrome (on Linux) report that the certificate has expired - a low-risk, often ignored error - but not that the connection is insecure against a man-in-the-middle attack. These results demonstrate that automated adversarial testing with frankencerts is a powerful methodology for discovering security flaws in SSL/TLS implementations.

Subfields: Information Systems, Software, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Information Systems

  1. Jean-Pierre Hubaux
  2. Elaine Shi
  3. Florian Tramèr
  4. Zhendong Su
  5. Aggelos Kiayias
  6. Yuting Chen
  7. Ari Juels
  8. Angelos Dennis Keromytis

In Software

  1. Suman Sekhar Jana
  2. Kexin Pei
  3. Angelos Dennis Keromytis
  4. Junfeng Yang
  5. Yinzhi Cao
  6. Yuting Chen
  7. Salvatore J. Stolfo
  8. Adrian Tang

In Signal Processing

  1. Suman Sekhar Jana
  2. Kexin Pei
  3. Junfeng Yang
  4. Angelos Dennis Keromytis
  5. Yinzhi Cao
  6. Yuting Chen
  7. Salvatore J. Stolfo
  8. Adrian Tang

Citations in the corpus