TLS heartbeat read overrun
A missing bounds check in the TLS heartbeat extension allows a client or server to read up to 64KB of memory from the other party. An attacker could exploit this to disclose sensitive information from the process memory.
Internet Bug Bounty
Originally disclosed on HackerOne
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 41 hours
A missing bounds check in the handling of the TLS heartbeat extension can be used to reveal up to 64k of memory to a connected client or server.
Only 1.0.1 and 1.0.2-beta releases of OpenSSL are affected including 1.0.1f and 1.0.2-beta1.
Thanks for Neel Mehta of Google Security for discovering this bug and to Adam Langley [email protected] and Bodo Moeller [email protected] for preparing the fix.
Affected users should upgrade to OpenSSL 1.0.1g. Users unable to immediately upgrade can alternatively recompile OpenSSL with -DOPENSSL_NO_HEARTBEATS.
1.0.2 will be fixed in 1.0.2-beta2.
http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=96db9023b881d7cd9f379b0c154650d6c108e9a3
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 did not verify that the length field in a heartbeat request matched the actual amount of data received, allowing a request to specify a larger length than the payload.
Impact
An attacker could read up to 64KB of memory from the vulnerable system, potentially exposing sensitive data.
What the attacker needed
OpenSSL 1.0.1 or 1.0.2-beta release
The fix
The issue was fixed in OpenSSL 1.0.1g; users unable to upgrade could recompile with heartbeats disabled.
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.
The TLS heartbeat extension lets two computers check a secure connection is alive. A missing check meant one side could get extra data from the other's memory, potentially revealing private information.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.