"Don't roll your own parsers" should really be up there with "Don't roll your own crypto". This advisory is scant on details, but this extension protocol[0] neither looks complex nor beyond mechanical code generation to me. Just simple enough to be dangerous. And it's pretty new, so this must be recently authored vulnerable code. [0] http://tools.ietf.org/html/draft-ietf-tls-dtls-heartbeat-04
Here's the commit for the fix: http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=...
OpenSSL Security Advisory: TLS heartbeat read overrun
81–88 of 88 posts
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#82If you'd like to update the keg-only OpenSSL brew on osx, and dont care for legacy and crap: ( export CONFIGURE_OPTS='no-hw no-rdrand \ no-sctp no-md4 no-mdc2 no-rc4 no-fips no-engine'; \ brew install https://gist.github.com/steakknife/8228264/raw/openssl.rb ) Beware, that by default on osx/ios, pretty much everything links to sketchy CommonCrypto or a crusty, quasi-deprecated 0.9.8.
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#83"Don't roll your own parsers" should really be up there with "Don't roll your own crypto". This advisory is scant on details, but this extension protocol[0] neither looks complex nor beyond mechanical code generation to me. Just simple enough to be dangerous. And it's pretty new, so this must be recently authored vulnerable code. [0] http://tools.ietf.org/html/draft-ietf-tls-dtls-heartbeat-04
> "Don't roll your own parsers" should really be up there with "Don't roll your own crypto". .. and if you do, don't do it in a highly memory-unsafe language. Espcially when it's for a security critical piece of central internet infrastructure!
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#84"Don't roll your own parsers" should really be up there with "Don't roll your own crypto". This advisory is scant on details, but this extension protocol[0] neither looks complex nor beyond mechanical code generation to me. Just simple enough to be dangerous. And it's pretty new, so this must be recently authored vulnerable code. [0] http://tools.ietf.org/html/draft-ietf-tls-dtls-heartbeat-04
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#85Earlier quoted context omitted.
Here's the commit for the fix: http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=...
if (1 + 2 + 16 > s->s3->rrec.length) if (1 + 2 + payload + 16 > s->s3->rrec.length) Come on. At least use a macro or something. This always makes me cringe during code reviews.
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#86Earlier quoted context omitted.
if (1 + 2 + 16 > s->s3->rrec.length) if (1 + 2 + payload + 16 > s->s3->rrec.length) Come on. At least use a macro or something. This always makes me cringe during code reviews.
Yep, and no braces after the 'if' statement in the patch. Even after the previous ssl vuln (I thought it was gnutls- struggling to find the relevant hn discussion) was caused by an omission of braces after the 'if' statement.
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#87Earlier quoted context omitted.
Yep, and no braces after the 'if' statement in the patch. Even after the previous ssl vuln (I thought it was gnutls- struggling to find the relevant hn discussion) was caused by an omission of braces after the 'if' statement.
You are thinking of "goto fail", a bug in Apple's Security framework. I would not claim that was "caused" by a lack of braces: even having the braces, that bug--in addition to a wide class of similar bugs--is still quite possible, even if in a few models of how the bug was caused it becomes slightly less likely. The best place to lay blame for that kind of error is a stubborn insistence that error handling should inv…
https://news.ycombinator.com/item?id=7282005
but the thread is a lot heftier now.
Re: OpenSSL Security Advisory: TLS heartbeat read overrun
#88Earlier quoted context omitted.
spiped should be irrelevant here. But there are a lot of people using PKI where they could be using PSK.
Who, exactly? Distributing shared secrets securely is a non-trivial exercise.