News for hackers. Stuff that matters.
Re:Null pointer dereference – new security bug for OpenSSL by agl on Thursday May 01, 2014 @05:46PM (#7682883)
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 allowed by the app). I've not been able to trigger the bug in a test because code generally stops reading once the socket buffer is full so you need the application to exactly fill the socket buffer (so that it doesn't get EAGAIN), then a warning alert can just exceed it.

[1] http://marc.info/?l=openssl-dev&m=139809493725682&w=2 [2] http://klee.github.io/klee/

Re:Null pointer dereference – new security bug for OpenSSL by duked on Thursday May 01, 2014 @08:52PM (#7683567)
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 by munin on Thursday May 01, 2014 @10:28PM (#7683869)
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?
Re:Null pointer dereference – new security bug for OpenSSL by jevinskie on Thursday May 01, 2014 @08:21PM (#7683466)
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 by eyeareque on Thursday May 01, 2014 @05:13PM (#7682724)
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.
Re:Null pointer dereference – new security bug for OpenSSL by Moral_ on Thursday May 01, 2014 @06:35PM (#7683077)
This shouldn't be exploitable on modern linux machines due to https://wiki.debian.org/mmap_min_addr

Who knows for embedded devices.

Re:Null pointer dereference – new security bug for OpenSSL by lawnchair_larry on Thursday May 01, 2014 @08:59PM (#7683589)
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 by ams6110 on Thursday May 01, 2014 @11:21PM (#7683976)
That patch is set up for a later bug to be introduced: no brackets on the if statements.

Instead of:

  +		if (wb->buf == NULL)
  +			if (!ssl3_setup_write_buffer(s))
  +				return -1;
Why not:

  +		if (wb->buf == NULL) {
  +			if (!ssl3_setup_write_buffer(s)) {
  +				return -1;
  +			}
  +		}
Re:Null pointer dereference – new security bug for OpenSSL by insaneirish on Thursday May 01, 2014 @11:39PM (#7684021)
This is OpenBSD Kernel Normal Form (http://www.openbsd.org/cgi-bin/man.cgi?query=style&sektion=9).

Disagree you may, but it's consistent with their self-imposed guidelines.

Re:Null pointer dereference – new security bug for OpenSSL by codezero on Sunday May 04, 2014 @03:45AM (#7693659)
Sort of. They say only if it's a single line that it's not allowed. If there are multiple lines it's "permitted."

So technically, this is still OK, but they are allowed to use braces when there are multiple lines. (the if and the return) They have an example in that link that covers this as a permitted case, but as you say, it's OK and consistent, but that doesn't make it good :)

Re:Null pointer dereference – new security bug for OpenSSL by codezero on Thursday May 01, 2014 @11:38PM (#7684019)
or

  if ((wb->buf == NULL) && !ssl3_setup_write_buffer(s)) {
     return -1;
  }
Re:Null pointer dereference – new security bug for OpenSSL by ibotty on Friday May 02, 2014 @02:35AM (#7684367)
this is getting boring. ever time a patch using no parentheses shows up there is that comment. if all your code uses that style you get used to it. feel free to show evidence of openbsd making that mistake once! (there might have been those, but i am sure it's going to be very hard to find).
Re:Null pointer dereference – new security bug for OpenSSL by nextw33k on Friday May 02, 2014 @07:39AM (#7685084)
Perhaps you need to consider the bigger picture. The biggest part of being a programmer is not in how many characters we write but in how we are able to know and understand abstract concepts.

If writing defensively by always putting braces around if statements means we no longer have to consider the possibility of a fall through error, then that saves mental processing for you and more importantly for lesser programmers.

Re:Null pointer dereference – new security bug for OpenSSL by protomyth on Thursday May 01, 2014 @05:41PM (#7682861)
Like I said in the other thread on 5.5, make sure you update for the patches. http://www.openbsd.org/errata55.html

This one is listed on that page (bottom 005: SECURITY FIX: May 1, 2014).

Re:Null pointer dereference – new security bug for OpenSSL by openbsddesktop on Thursday May 01, 2014 @05:48PM (#7682891)
I think they are sending out e-mails about new patches.
Re:Null pointer dereference – new security bug for OpenSSL by openbsddesktop on Thursday May 01, 2014 @04:34PM (#7682538)
Re:Null pointer dereference – new security bug for OpenSSL by dang on Thursday May 01, 2014 @04:59PM (#7682659)
It's a worthy cause, but please don't repeatedly post these comments. Neither fundraising campaigns nor single-purpose accounts are appropriate in HN threads.
Re:Null pointer dereference – new security bug for OpenSSL by Dorian-Marie on Thursday May 01, 2014 @05:01PM (#7682671)
Wow, all your comments are about donating to OpenBSD.
Re:Null pointer dereference – new security bug for OpenSSL by openbsddesktop on Thursday May 01, 2014 @05:13PM (#7682723)
Then here is another type: a previous security bug:

Apr 12, 2014

http://ftp.openbsd.org/pub/OpenBSD/patches/5.5/common/004_op...

-->>

2014-04-30

http://www.freebsd.org/security/advisories/FreeBSD-SA-14:09....

needed 18 days to reach other OSes, ex.: FreeBSD.. interesting lag..

Re:Null pointer dereference – new security bug for OpenSSL by Qantourisc on Thursday May 01, 2014 @06:16PM (#7683009)
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 ?)
Re:Null pointer dereference – new security bug for OpenSSL by pslam on Thursday May 01, 2014 @07:27PM (#7683284)
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.
Re:Null pointer dereference – new security bug for OpenSSL by dcsommer on Thursday May 01, 2014 @06:22PM (#7683026)
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).
Re:Null pointer dereference – new security bug for OpenSSL by akjj on Thursday May 01, 2014 @06:44PM (#7683112)
Managed languages are very susceptible to timing attacks.
Re:Null pointer dereference – new security bug for OpenSSL by Qantourisc on Friday May 02, 2014 @02:42AM (#7684389)
For all clarity I meant like C++, ObjC, or others; any language that allows you to create things that enforce consistency during compile or runtime. (Like shared pointer and array containers.) Probably used the wrong terminology here.
Re:Null pointer dereference – new security bug for OpenSSL by ticktocktick on Thursday May 01, 2014 @05:04PM (#7682684)
Are we better off using decoder rings and snail mail at this point?
Re:Null pointer dereference – new security bug for OpenSSL by im3w1l on Friday May 02, 2014 @07:51AM (#7685124)
It is probably safer yes. But quite inconvenient.
Re:Null pointer dereference – new security bug for OpenSSL by cratermoon on Thursday May 01, 2014 @05:33PM (#7682819)
Re:Null pointer dereference – new security bug for OpenSSL by bottombutton on Thursday May 01, 2014 @05:25PM (#7682791)
There's always Windows.
Re:Null pointer dereference – new security bug for OpenSSL by devNoise on Thursday May 01, 2014 @05:37PM (#7682845)
Don't forget to drink your Ovaltine!