Securing an HTTPS server
daemonology.net
daemonology.net
Nonsense. This configuration both keeps other parts of my system safe from bugs in OpenSSL and keeps the SSL certificate safe from bugs in Apache.
I can't find any statistics right now but AFAIK security breach sources are mostly not the servers but user applications running over them.
Quite true, in general. But in my particular case I have far more confidence in my (very simple) CGI scripts than I have in Apache.
Additionally, most interesting attacks on OpenSSL aren't done to root the system, but to subvert the level of authentication/privacy afforded by TLS.
I've had to write or be involved in writing 7 FreeBSD security advisories related to OpenSSL in the past six years. History indicates that OpenSSL is the most likely part of the stack to have a vulnerability.
Further, out of all of the advisories for OpenSSL, how many would be mitigated using the technique from the article? Few or none, because most security issues in OpenSSL are about the way it implements the protocols (problems in the PRNG, problems parsing X.509, etc.).
It's funny that you're arguing this though, since, given your marketing message, I can understand making ineffective cost/security tradeoffs. I'm at some pains to say you're not crazy for doing it.
Believe me, if there was a good alternative to OpenSSL, I'd be recommending it. Running OpenSSL in a jail is a horrible solution; but at least it's better than anything else.
That doesn't make Colin crazy; it just makes this not general-purpose advice.
Not true. There have been potential code execution bugs in OpenSSL which have received very little attention in the past. One which comes to mind is a 'free an arbitrary pointer' bug -- in an application like Apache, if you can free the right pointer, it's not hard to get code execution. (I didn't produce an exploit for this OpenSSL bug, so it's possible that it was unexploitable for some reason -- I just saw 'bogus pointer being freed' and said 'wow, this really needs to be fixed'.)
That doesn't make Colin crazy
Thanks, I think.
it just makes this not general-purpose advice.
This is an easy step to take, and prevents a class of attacks. Why not err on the side of caution?