Re:Nginx and SSL root key security
by hafabnew on Monday September 02, 2013 @05:35PM
(#6317318)
For a site that's (apparently) hosting an article about a security vulnerability, they _really_ need to turn debug mode off.
For those wondering what I'm on about when the site starts functioning again, I got an error page akin to a Django page with `DEBUG = True`, listing useful information as the full path to the PHP script being run, the user it's being run as, , etc.
Re:Nginx and SSL root key security
by janvidar on Monday September 02, 2013 @05:32PM
(#6317304)
I am all for security in depth, but the www-data processes still has the private key in memory.
Makes it slightly harder to get at, through other vectors though.
Re:Nginx and SSL root key security
by e12e on Monday September 02, 2013 @11:42PM
(#6318696)
One approach is to let one process do the ssl termination, and only that -- that raises the bar some. That process might be nginx -- running under a different uid -- or one of the many ssl-proxies.
Re:Nginx and SSL root key security
by bigiain on Tuesday September 03, 2013 @01:21AM
(#6319149)
I guess that's a big advantage of terminating SSL at the load balancers – dedicated hardware which is unlikely to end up with exploitable RoR/PHP or SQLi vulnerabilites – is probably somewhat less likely to lose your private TLS certs to an automated WordPress/Rails/cPanel/whatever zero-day scan...
Re:Nginx and SSL root key security
by ppierald on Monday September 02, 2013 @09:53PM
(#6318278)
You are really protecting against local, non-root access to your box, especially when that user is the nginx child process. This can manifest itself in a number of ways, but most roads lead back to improper input sanitization and/or using user input in shell command execution.
Using the Unix file permissions to our advantage and the properties of fork'd child processes, you can scope your risk to a highly skilled adversary rather than the common adversary.
Note that not only is your SSL certificate at risk, but every file the web-server needs to read including configuration files containing passwords, API keys, and crypto keys.
For those wondering what I'm on about when the site starts functioning again, I got an error page akin to a Django page with `DEBUG = True`, listing useful information as the full path to the PHP script being run, the user it's being run as, , etc.
Using the Unix file permissions to our advantage and the properties of fork'd child processes, you can scope your risk to a highly skilled adversary rather than the common adversary.
Note that not only is your SSL certificate at risk, but every file the web-server needs to read including configuration files containing passwords, API keys, and crypto keys.