BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Heartbleed and UDP
- Subject: [Discuss] Heartbleed and UDP
- From: tmetro+blu at gmail.com (Tom Metro)
- Date: Thu, 24 Apr 2014 14:13:41 -0400
- In-reply-to: <li6eh0mq2vz.fsf@panix5.panix.com>
- References: <20140423174046.GP3247@dragontoe.org> <53580798.6040309@gmail.com> <li6zjjbyi3c.fsf@panix5.panix.com> <535813B2.5030401@gmail.com> <li6fvl3ye8a.fsf@panix5.panix.com> <53582B40.80200@gmail.com> <li67g6fyc39.fsf@panix5.panix.com> <5358547E.1060508@gmail.com> <li6eh0mq2vz.fsf@panix5.panix.com>
Mike Small wrote: > Reading beyond the ends of an array in C is > undefined behaviour so unquestionably a bug. Right. Lots of projects have created their own version of malloc or wrapped it, and that doesn't excuse them from coding buffer overruns. So this was definitely a bug. > It may be dumb that the spec says the payload has to be variable or > even that there's a heartbeat requirement at all for the TCP case... I've been wondering about the latter point as well, and I haven't yet heard any explanations. (I also didn't get why the payload varied, but that's a minor point.) For those not aware, the heartbeat feature was added to facilitate running TLS over UDP, where there is a need to exchange some data periodically to keep NAT port mappings active. I don't know if anyone is actually using TLS over UDP. Your Apache or Nginx web server certainly isn't. Nor is your consumer router's web UI or your Android web browser. Perhaps there is a VoIP implementation that uses it? Oh, OpenVPN uses UDP, and likely represents the single largest user of TLS over UDP. (See [1] for a script to test your OpenVPN server for vulnerability to Hearbleed over UDP.) So had the heartbeat feature been limited to the protocol where it was intended to be used for, the scope of affected applications would have been fairly small. Did it end up being available over TCP due to architectural limitations in OpenSSL? Or was this an oversight? (It sure seems likely that OpenSSL would have a layer of code that is UDP-specific, so my expectation is that the hearbeat code should have been implemented in that layer, and been out of reach to TCP connections.) 1. https://github.com/falstaff84/heartbleed_test_openvpn -Tom -- Tom Metro The Perl Shop, Newton, MA, USA "Predictable On-demand Perl Consulting." http://www.theperlshop.com/
- Follow-Ups:
- [Discuss] Heartbleed and UDP
- From: blu at nedharvey.com (Edward Ned Harvey (blu))
- [Discuss] Heartbleed and UDP
- References:
- [Discuss] Good and Bad Crypto
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Good and Bad Crypto
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Good and Bad Crypto
- From: smallm at panix.com (Mike Small)
- [Discuss] Good and Bad Crypto
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Good and Bad Crypto
- From: smallm at panix.com (Mike Small)
- [Discuss] Good and Bad Crypto
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Good and Bad Crypto
- From: smallm at panix.com (Mike Small)
- [Discuss] Good and Bad Crypto
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Good and Bad Crypto
- From: smallm at panix.com (Mike Small)
- [Discuss] Good and Bad Crypto
- Prev by Date: [Discuss] Good and Bad Crypto
- Next by Date: [Discuss] Heartbleed and UDP
- Previous by thread: [Discuss] Good and Bad Crypto
- Next by thread: [Discuss] Heartbleed and UDP
- Index(es):