Certificate message OOB reads (CVE-2016-6306)
OpenSSL 1.0.2 and earlier lacked message length checks on client certificate, client certificate request and server certificate messages, allowing reads of up to 2 bytes past an allocated buffer. The text says this carries a theoretical denial-of-service risk that has not been observed in practice on common platforms.
Originally disclosed on HackerOne
- Fixed in 36 days
- Paid in 36 days
- Disclosed after 37 days
Summary by the program
In OpenSSL 1.0.2 and earlier some missing message length checks can result in OOB reads of up to 2 bytes beyond an allocated buffer. There is a theoretical DoS risk but this has not been observed in practice on common platforms.
The messages affected are client certificate, client certificate request and server certificate. As a result the attack can only be performed against a client or a server which enables client authentication.
OpenSSL 1.1.0 is not affected.
OpenSSL 1.0.2 users should upgrade to 1.0.2i OpenSSL 1.0.1 users should upgrade to 1.0.1u
This issue was reported to OpenSSL on 22nd August 2016 by Shi Lei (Gear Team, Qihoo 360 Inc.). The fix was developed by Stephen Henson of the OpenSSL development team.
The report
In OpenSSL 1.0.2 and earlier some missing message length checks can result in OOB reads of up to 2 bytes beyond an allocated buffer. There is a theoretical DoS risk but this has not been observed in practice on common platforms.
The messages affected are client certificate, client certificate request and server certificate. As a result the attack can only be performed against a client or a server which enables client authentication.
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
Impact
The text states only a theoretical denial-of-service risk, not observed in practice on common platforms, and only against a client or server that enables client authentication.
What the attacker needed
OpenSSL 1.0.2 or earlier; client authentication enabled
The fix
The issue was fixed in OpenSSL 1.0.2i and 1.0.1u, and users of those branches should upgrade.
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.
OpenSSL is a widely used library that handles encrypted connections. When it reads a certificate message, it should first check how long the message claims to be; here that check was missing, so it could read a couple of bytes past the end of its memory buffer. Reading slightly out of bounds can crash a program, which is why it is called a denial-of-service risk, but the text says nobody has seen this happen on normal systems.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.