r/programming •

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

[deleted] — view deleted post

0 Upvotes

661 comments sorted by

View all comments

Show parent comment

2

u/FUZxxl Apr 10 '14

Yeah, the first point is true. Loading the key is not a real problem however. You can proceed like this:

  1. The webserver starts a crypto process which is connected to it (and only to it) using a pipe.
  2. The webserver reads in the private key from a file
  3. The webserver sends an "Add key" command with the private key attached to the crypto process
  4. The webserver deletes all traces of the private key from its memory and drops the capability (e.g. root permissions) needed to read the key from disk.
  5. The webserver starts serving pages. If it needs to perform a crypto operation, it uses the pipe to send a message with the requested operation to the crypto process.

In the order described above, there is never a time where the webserver holds both a private key and could have been compromised remotely.