Skip to content
Crypto Disclosed report Advanced CVE-2016-0703

Divide-and-conquer session key recovery in SSLv2 (CVE-2016-0703)

OpenSSL's SSLv2 server code did not enforce that the clear-key length is zero for non-export ciphers, so clear-key bytes displaced encrypted-key bytes. An eavesdropper who captured an SSLv2 handshake could use the server as an oracle to recover the master key with only 16 connections and negligible computation, enabling a more efficient DROWN variant against non-export ciphersuites.

dadrian Follow

Originally disclosed on HackerOne

  • Fixed in 19 days
  • Paid in 19 days
  • Disclosed after 20 days

Summary by the program

This issue only affected versions of OpenSSL prior to March 19th 2015 at which time the code was refactored to address vulnerability CVE-2015-0293.

s2_srvr.c did not enforce that clear-key-length is 0 for non-export ciphers. If clear-key bytes are present for these ciphers, they displace encrypted-key bytes. This leads to an efficient divide-and-conquer key recovery attack: if an eavesdropper has intercepted an SSLv2 handshake, they can use the server as an oracle to determine the SSLv2 master-key, using only 16 connections to the server and negligible computation.

More importantly, this leads to a more efficient version of DROWN that is effective against non-export ciphersuites, and requires no significant computation.

This issue affected OpenSSL versions 1.0.2, 1.0.1l, 1.0.0q, 0.9.8ze and all earlier versions. It was fixed in OpenSSL 1.0.2a, 1.0.1m, 1.0.0r and 0.9.8zf (released March 19th 2015).

This issue was reported to OpenSSL on February 10th 2016 by David Adrian and J. Alex Halderman of the University of Michigan. The underlying defect had by then already been fixed by Emilia Käsper of OpenSSL on March 4th 2015. The fix for this issue can be identified by commits ae50d827 (1.0.2a), cd56a08d (1.0.1m), 1a08063 (1.0.0r) and 65c588c (0.9.8zf).

The report

This is a retroactive submission of CVE-2016-0703, a.k.a. the "Extra Clear" bug, which can lead to the Special DROWN variant of the DROWN attack. After some discussion with the other DROWN authors, I'm submitting on behalf of myself (David Adrian) and J. Alex Halderman the vulnerability CVE-2016-0703, which was acknowledged by OpenSSL as Sev:High at https://www.openssl.org/news/secadv/20160301.txt.

The original report as published on HackerOne, by dadrian. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the SSLv2 server code failed to reject a non-zero clear-key length for non-export ciphers, letting attacker-supplied clear-key bytes overwrite part of the encrypted key.

Impact

An eavesdropper who captured an SSLv2 handshake could recover the master key using only 16 connections to the server and negligible computation, which also made DROWN effective against non-export ciphersuites.

What the attacker needed

Server runs vulnerable OpenSSL with SSLv2; attacker can capture an SSLv2 handshake; attacker can make connections to the server

The fix

The defect was fixed in OpenSSL 1.0.2a, 1.0.1m, 1.0.0r and 0.9.8zf, released March 19th 2015.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

SSLv2 is an old, insecure version of the encryption protocol. Here the server could be used as an oracle by someone who recorded the handshake, letting them work out the master key with few connections.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by dadrian

View all

1 more disclosed report, best first.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.