W3 Total Cache Nginx – Root Escalation
blog.tarq.io
blog.tarq.io
Yes, htaccess is ugly but at least a server operator can restrict the users from pwning the machine and only allow rewrite-configs.
Htaccess sucks for various reasons, but most of the suck can be worked around.
Also, there is no reason to start nginx under root on linux, just give the binary required net bind capability and start under normal user.
Other plugins like iThemes Security will populate the nginx.conf with banned IP and the such, so it can update on a fairly regular basis.
http://serverfault.com/questions/441235/maintaining-redirect...
Seems like NGINX logic should be, if the path exists, it must have correct permissions already. If not, just fail to start.
I am sure there are other ones but I have not had a chance to investigate further. Another commented mentioned this particular problem is in ngx_create_paths so that would be a good place to start looking.
The key is to find paths that happen in the master process, not the workers.
Does SElinux mitigate this? App armour? Dockerised WP and NGiNX?