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

5

u/shub Apr 09 '14

Unless the key process is itself vulnerable. But it would still be an improvement.

8

u/FUZxxl Apr 09 '14

That's right. But a process with a well-defined command interface is much less vulnerable than a function that is part of a large process with tons of functionality.

3

u/mindbleach Apr 09 '14

Interesting. Done correctly, you'd limit your attack surface to the messaging and de/allocation methods of the operating system.

As a rule, though, I'd still zero out any keys before freeing their memory. Or maybe use a canonical "dummy" key, and occasionally check for that key in freshly-allocated memory as an indication that a leak has occurred.