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

72

u/WHY_U_SCURRED Apr 09 '14 edited Apr 09 '14

It raises the questions; who wrote it, who do they work for, and what were their motives?

Edit: English

136

u/dontera Apr 09 '14

This guy http://www.robin-seggelmann.de/ wrote it. His motivations were likely because he wrote his PhD thesis on streaming encryption and he thought he was clever. Also, he wrote the TLS Heartbeat RFC.

Here is the commit that brought us this, https://github.com/openssl/openssl/commit/4817504d069b4c5082161b02a22116ad75f822b1

33

u/Grimoire Apr 09 '14

16

u/thebigslide Apr 09 '14

Haven't we learned a thing or two recently about what can happen if you don't add braces to one line if blocks!? Especially with returns after them... I know it was hurried, but there's really no excuse for that.

4

u/[deleted] Apr 09 '14

I cringed while reading the code too. Put some darn braces on statements like that. Especially when you know tons of people are going to read your code.

→ More replies (1)

4

u/frtox Apr 10 '14

i cant stand gitub code review comments, they take over the screen. oh did you actually want to see what code was changed? no, no. you read comment now.

2

u/Grimoire Apr 10 '14

Uncheck the "show inline notes" option.

→ More replies (2)

90

u/gvtgscsrclaj Apr 09 '14
  1. Some programmer.
  2. Some corporation.
  3. Laziness and tight deadlines.

I mean, I know the NSA crap that's been floating around makes that a legit possibility, but cases like this really feel like your normal level of sloppiness that's bound to happen in the real world. Nothing and no one is absolutely perfect.

12

u/zjm555 Apr 09 '14

Agreed. This is an Ockham's Razor scenario -- for every NSA backdoor, there are probably thousands of vulnerabilities that simply slip in by pure accident. Probability of such accidents goes up with the complicatedness of the solution, and with the number of lines of code.

41

u/paffle Apr 09 '14 edited Aug 17 '26

Almond cobblestone coherent society encouraging stocking spoon

This post was anonymized with Redact

80

u/cass1o Apr 09 '14

Then again, any respectable deliberate backdoor will have plausible deniability built in - in other words, will be disguised as mere everyday sloppiness.

I mean lack of evidence is just as good as evidence right.

7

u/paffle Apr 09 '14 edited Aug 17 '26

Acorn sort bow steep feather library thumb roof oxygen bake

This post was anonymized with Redact

9

u/f3lbane Apr 09 '14

Well, yeah. I mean, it'd probably hold up in a US court at least.

12

u/eboogaloo Apr 09 '14

Only if the US was the plaintiff.

→ More replies (3)

11

u/mallardtheduck Apr 09 '14

You gotta love conspiracy theories; "it looks like a mistake" - "plausible deniability, that's what they want you to think".

13

u/paffle Apr 09 '14 edited Aug 17 '26

Weather aromatic smile axiomatic fragile practice cows quickest air

This post was anonymized with Redact

2

u/emergent_properties Apr 10 '14

Yes, you have to look at the surrounding context.

People are paid off, the NSA paid off RSA for $10 million, the last time this happened it was a 'simple mistake' as well.

The linux backdoor attempt of 2003 was just an 'accident'.. with the problem of the audit trail mysteriously disappearing..

Considering the severity of this bug, we'd be absolutely goddamned stupid to shrug off foul play.

10

u/mort96 Apr 09 '14

Well yeah, because it actually makes sense. If it actually is true, and a bunch of geniuses at the NSA decided to add a backdoor to OpenSSH, of course they would make it look like regular coding errors, and the harder to notice, the better... The fact that it looks like a mistake doesn't prove that it's deliberate, but it doesn't disprove it either.

→ More replies (3)
→ More replies (3)

24

u/emergent_properties Apr 09 '14 edited Apr 09 '14

And there is the International Obfuscated C Code Contest The Underhanded C Contest .. of which the goal is to make an app that has a sly code payload hidden in it that can be passed off as a mistake.

Plausible deniability is a thing, ESPECIALLY in this realm.

I am not saying that it was intentional or malicious, but you bet your ass with a security hole this big we shouldn't assume automatically innocence first..

EDIT: Corrected contest URL.

22

u/spook327 Apr 09 '14

I think you've confused two completely different things; the IOCCC is for making unreadable code. The one about programs that have a secret critical vulnerability is The Underhanded C Contest

4

u/emergent_properties Apr 09 '14

You are correct, I forgot which one did what.

Thanks, I corrected it.

9

u/gvtgscsrclaj Apr 09 '14

Alternatively, we can change the code review practices to ensure that the potential for both situations are vastly reduced in a practical manner, without needing to distract ourselves with casting blame about in all directions.

→ More replies (16)
→ More replies (1)

6

u/technocratofzigurrat Apr 09 '14

The ASN

7

u/PT2JSQGHVaHWd24aCdCF Apr 09 '14

The ASN.1? I knew they were evil the day I looked at the specs!

→ More replies (4)
→ More replies (5)