Bleichenbacher oracle in SSLv2 (CVE-2016-0704)
A coding mistake in OpenSSL's SSLv2 server code caused the wrong bytes to be overwritten when applying Bleichenbacher protection for export cipher suites, creating a Bleichenbacher oracle. This could potentially allow more efficient variants of the DROWN attack.
- 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 the vulnerability CVE-2015-0293.
s2_srvr.c overwrite the wrong bytes in the master-key when applying Bleichenbacher protection for export cipher suites. This provides a Bleichenbacher oracle, and could potentially allow more efficient variants of the DROWN attack.
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
I'm retroactively submitting CVE-2016-0704, a.k.a. "Leaky Export", which is a Bleichenbacher-style bug that leads to another variant of the Special DROWN attack. I'm submitting on behalf of myself and J. Alex Halderman, as we independently found this bug. This was validated by OpenSSL as Sev:Moderate at https://www.openssl.org/news/secadv/20160301.txt.
See https://drownattack.com for more information.
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 code that was meant to overwrite the master key with random bytes when handling export cipher suites wrote to the wrong offset, leaving part of the original key intact and thus creating an oracle.
Impact
This provides a Bleichenbacher oracle, and could potentially allow more efficient variants of the DROWN attack.
What the attacker needed
Server applies Bleichenbacher protection for export cipher…
The fix
The underlying defect was fixed in OpenSSL 1.0.2a, 1.0.1m, 1.0.0r and 0.9.8zf.
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.
When a server uses an old, weak encryption method, it tries to hide whether a decryption attempt was close to correct by scrambling the result. Here, the code scrambled the wrong part of the secret key, so an attacker could still tell when a guess was close. That leak could potentially allow more efficient variants of the DROWN attack.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.