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

4

u/[deleted] Apr 09 '14

I did read it. I fully understand that this problem would have been caught if they had used the standard malloc / free. Just as every other bug would have been caught or not happened in the first place if the programmers had done things the right way. Pointing out that the programmers made a mistake in conjunction with a bug is a tautology; of course the programmers did something wrong, otherwise there wouldn't have been a bug.

Buffer overflows, reading from uninitialized memory, and other such problems have been a constant and unavoidable plague on C software. C is simply not safe for human use.

3

u/[deleted] Apr 09 '14

I did read it. I fully understand that this problem would have been caught if they had used the standard malloc / free.

It would have been prevented on OpenBSD, because they value security a lot more than performance. No other widely used allocator implementation has these protections. It's possible to opt-in to them in jemalloc (zero and junk fill options), but it's marked as a debugging feature and is not used by the three biggest users (Facebook, Firefox + other Mozilla applications, FreeBSD libc).

1

u/[deleted] Apr 10 '14

Well, sure, but catching it anywhere would have exposed the problem and presumably resulted in a fix for all platforms.

1

u/[deleted] Apr 10 '14

I don't think it would have been caught this way without using a fuzzer, unless this was actually being exploited in the wild.

-1

u/[deleted] Apr 09 '14

Pointing out that the programmers made a mistake in conjunction with a bug is a tautology

I think it's a little bit more nuanced than that.

Buffer overflows, reading from uninitialized memory, and other such problems have been a constant and unavoidable plague on C software. C is simply not safe for human use.

It works pretty damn well, considering it runs the majority of software you use every. single. day.

3

u/[deleted] Apr 09 '14

It works pretty damn well, considering it runs the majority of software you use every. single. day.

I didn't say it didn't work. I said it's not safe. Those are very, very different things.

Things can work fine for typical day-to-day use while being full of security holes which only show up under deliberate attack. C is an incredibly unsafe programming language, and is responsible for the vast majority of security problems found in the wild. And yes, many of those security holes have occurred in software I use "every. single. day.".

-3

u/[deleted] Apr 09 '14

I said it's not safe. Those are very, very different things.

Um, to a degree. But not really.

and is responsible for the vast majority of security problems found in the wild.

Err, no? Not only does this go against common knowledge, you have no figures to back this up.