r/programming • • Apr 09 '14

Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"

[deleted] — view deleted post

2.0k Upvotes

661 comments sorted by

View all comments

Show parent comment

58

u/emergent_properties Apr 09 '14

Nothing here implied intent.. but it also didn't discount it either.

Normally, I would say "Do not ascribe to malice to what could be incompetence." HOWEVER considering that this is probably one of THE most relied on packages.. and this is such a FAR REACHING BUG.. the author better have a damn good explanation.

It is speculation, but the converse is also true "Sufficiently advanced malice can be mistaken as incompetence."

What is the audit process? What is the proper discovery and reporting mechanisms of the people who developed OpenSSL?

16

u/amvakar Apr 09 '14

Normally I'd think like you, but OpenSSL is no stranger to no auditing. We had the Debian entropy clusterfuck, where downstream patches were never tested by anybody for years. And then we had the recent failure to implement the Dual EC DRBG algorithm,which was positive in this case for breaking a potential backdoor , but not encouraging considering it means that there are portions of the codebase that nobody has ever used in the history of the project floating around just waiting to break something important. And now this. The incompetence is simply too far reaching to allow a conclusion of malice. I refuse to believe that a good attacker infiltrating the project could not do better.

11

u/jsprogrammer Apr 09 '14

Better than two years of complete, undetectable access?

3

u/amvakar Apr 10 '14

Try more than a decade. Not in the same league, obviously, but still useful if you're the sort of state-sponsored attacker that has complete access to the infrastructure that the NSA and its ilk have.

→ More replies (1)

2

u/[deleted] Apr 09 '14

10 bucks says we won't be able to track these decisions/changes back to their origination.

7

u/emergent_properties Apr 09 '14

Possibilities?

  1. Oh look, the original author conveniently cannot be found!
  2. The author denies he/she wrote that.
  3. The author says it was tampered with.
  4. Well, jeez, these mistakes just happen, you know? Everyone is human...

39

u/dontera Apr 09 '14

The Author is very much findable. The Commit which brought us this is also right there for all to see. I honestly believe we have a situation where the author thought he was quite clever, and knew better what to do. That never works out well.. and sometimes that creates possibly the worst vulnerability the web has ever seen.

22

u/Otis_Inf Apr 09 '14

In all honesty, his research suggests he is quite known with the field this code is meant for. To say the least. So I don't think the guy actually thought he was 'clever', he just happened to work with this stuff night and day. I.o.w.: a mistake, albeit with far reaching consequences.

17

u/dontera Apr 09 '14

I mean, the guy Friggen wrote the RFC on TLS Heartbeat, so who better to code it, right?

0

u/[deleted] Apr 09 '14

[deleted] — view deleted comment

7

u/dontera Apr 09 '14 edited Apr 09 '14

Sure, we can all write Request For Comments till we turn blue. But very few of us will have them Accepted and actually Implemented.

Edited to add: no his RFC has not been accepted as a standard yet, but it was implemented.

4

u/postmodest Apr 09 '14

Implemented by him.

I propose RFC 666666: REDIRECT ALL TLS TRAFFIC TO NETCAT

I've implemented this in GnuTLS.

Job DONE.

2

u/gnutrino Apr 09 '14

Edited to add: no his RFC has not been accepted as a standard yet, but it was implemented.

Yes, by him.

→ More replies (2)
→ More replies (1)
→ More replies (1)

17

u/emergent_properties Apr 09 '14

It looks like a case of a simple mistake.

Because it looks like such a clear cut case of accident, there should be a vigorous audit now at EVERYTHING that he has done, all other commits, and any relationships he had with any other third party.

This is part of the recovery process. Now to figure out how deep this rabbit hole goes.

We can BELIEVE it was an accident, but we'll PROVE it to be before claiming it as such.

9

u/dontera Apr 09 '14 edited Apr 09 '14

I honestly believe this was a mistake as well, one brought about by the assumptions and ego of a very smart, but clueless man.

6

u/emergent_properties Apr 09 '14

I don't think it is possible to tell.

In any case, the freaking Eye of Sauron is on this guy's code now. All of it.

15

u/My_First_Pony Apr 09 '14

Frantically searching for the one ring buffer overflow.

3

u/emergent_properties Apr 09 '14

One buffer overflow... to bind us.

4

u/reph Apr 09 '14 edited Apr 09 '14

And in the darkness, stack-unwind us.

8

u/balefrost Apr 09 '14

Thanks for volunteering! I look forward to your report!

4

u/emergent_properties Apr 09 '14

Don't worry, people who get paid 6 or more digits as security consultants will take a look.. Fuck, for that much money I'd do that too.

The extent of this vulnerability is really hard to overstate.

2

u/article1section8 Apr 09 '14

I dunno, doesn't it seem suspicious to you that it occurred the day before new years... and on a Saturday.

→ More replies (3)

4

u/DarkNeutron Apr 09 '14

I'd go beyond him and audit of the rest of OpenSSL as well, along with removing the custom memory manager. I think that bit has outlived any usefulness it once had.

10

u/RedneckBob Apr 09 '14

When do you start?

→ More replies (5)
→ More replies (14)
→ More replies (1)
→ More replies (1)