Live data from Hacker News

Null pointer dereference – new security bug for OpenSSL

ftp.openbsd.org

21–30 of 38 posts

Re: Null pointer dereference – new security bug for OpenSSL

#21
post #19

Is it me or should code that has to be secure be written in more manage languages to prevent these mistake ? (But managed languages probably have other security issues I don't know about ?)

Managed languages are very susceptible to timing attacks.

Fuck off. So is C, and C has no semantics whatsoever that prevent them, i.e, if one output from the compiler has no side channel vulns, the very next output may indeed have them.

Re: Null pointer dereference – new security bug for OpenSSL

#22

Is it me or should code that has to be secure be written in more manage languages to prevent these mistake ? (But managed languages probably have other security issues I don't know about ?)

No, it's not just you. I've been saying this for 5 years (Since about a year after I learned to program), and nobody gives a fuck / is competent enough to rewrite the stuff on solid foundations.

Re: Null pointer dereference – new security bug for OpenSSL

#23
post #20

Is it me or should code that has to be secure be written in more manage languages to prevent these mistake ? (But managed languages probably have other security issues I don't know about ?)

If OpenSSL was written in a managed language, someone would need it in an environment a managed language wasn't suitable for, and end up porting it to C.

That doesn't even make sense. Also avoid using vague Microsoft-slang. Memory-safe is a much better term.

Re: Null pointer dereference – new security bug for OpenSSL

#24

Is it me or should code that has to be secure be written in more manage languages to prevent these mistake ? (But managed languages probably have other security issues I don't know about ?)

Managed languages is one way to go, but they are not really appropriate for performance critical libraries like OpenSSL in my book. You can get safety without being managed in modern languages if the compiler does the safety proving for you (e.g. rustlang).

> Managed languages [...] are not really appropriate for performance critical libraries like OpenSSL

This is complete bullshit. Please cite where you found these results. Even if this was true, since the servers also run openssl, you'd be able to at least run a client at 10x/100x/1000x the speed of the server (because the client doesn't have to have concurrent connections), which would make the "slow managed code" fine for a client.

Re: Null pointer dereference – new security bug for OpenSSL

#25
post #19

Is it me or should code that has to be secure be written in more manage languages to prevent these mistake ? (But managed languages probably have other security issues I don't know about ?)

Managed languages are very susceptible to timing attacks.

No they aren't fuck you.

Re: Null pointer dereference – new security bug for OpenSSL

#26
post #13

Good to note that this was found with KLEE[1]. KLEE is a good for symbolic execution of code and is very cool[2]. This only triggers a crash if you use RELEASE_BUFFERS (not the default) and a warning alert is written when the socket buffer is full. About the only case where a warning alert is generated is when a client attempts a renegotiation without the renegotiation extension (unless insecure renegotiation is allo…

KLEE is very interesting! I am looking into it for improving tests on some of my company's small-but-tricky functions.

Here is an example of its power and how to use it: http://feliam.wordpress.com/2010/10/07/the-symbolic-maze/

Re: Null pointer dereference – new security bug for OpenSSL

#27
post #13

Good to note that this was found with KLEE[1]. KLEE is a good for symbolic execution of code and is very cool[2]. This only triggers a crash if you use RELEASE_BUFFERS (not the default) and a warning alert is written when the socket buffer is full. About the only case where a warning alert is generated is when a client attempts a renegotiation without the renegotiation extension (unless insecure renegotiation is allo…

KLEE is ok on small programs but has a lot of limitation with real world programs (using libraries mostly) at least according to a USENIX paper last year: https://www.usenix.org/conference/cset13/workshop-program/pr...

Re: Null pointer dereference – new security bug for OpenSSL

#28
post #18

Are there any write ups for this yet? I can't find a CVE or anything on this one. No word from OpenSSL yet either.

This shouldn't be exploitable on modern linux machines due to https://wiki.debian.org/mmap_min_addr Who knows for embedded devices.

It wouldn't be exploitable even without that, due to it being a userland dereference. The mmap 0 trick really only applies to kernel exploits. If you're in a position to mmap anything, you can already execute code.

Re: Null pointer dereference – new security bug for OpenSSL

#30
post #27
post #13

Good to note that this was found with KLEE[1]. KLEE is a good for symbolic execution of code and is very cool[2]. This only triggers a crash if you use RELEASE_BUFFERS (not the default) and a warning alert is written when the socket buffer is full. About the only case where a warning alert is generated is when a client attempts a renegotiation without the renegotiation extension (unless insecure renegotiation is allo…

KLEE is ok on small programs but has a lot of limitation with real world programs (using libraries mostly) at least according to a USENIX paper last year: https://www.usenix.org/conference/cset13/workshop-program/pr...

How does what you say square with the evidence that klee found a bug in OpenSSL which is about as real world as it gets?
Post reply on HN