r/linuxadmin • u/OilOverall4190 • Aug 14 '26
Learn to secure your NGINX - Damn Vulnerable NGINX Proxy
Hello all,
If you do bug bounty hunting or pentests you surely came across many hosts served from an NGINX server, in this lab (published to OWASP) I combined over 20 misconfigurations found in real world bug disclosures and both classic and novel security research, with an extensive blog where I explained everything you need to level up your NGINX hunting game.
Feel free to check it out, give it a star on Github if you like it, and suggest any ideas you want me to add/fix...
https://vwad.owasp.org/app/damn-vulnerable-nginx-proxy-dvnp
Happy hunting!
9
u/eltear1 Aug 14 '26
I read only the first 2 findings. While what you write is not wrong, if nginx is doing a reverse proxy like in the configuration you show, why is nginx itself that has to have lot of configuration to cover issues that should be covered by the backend directly? Like .. if /secrets should be always blocked, why not to do that in the backend itself instead to let it open and expect a layer in front to worry about security?
2
u/notthedefaultnam Aug 14 '26
Oooh interesting, I'll take a look.
Also fyi the whole thing got turned into a link so you have a double link in one which doesn't work. Here is a working link for anyone stumbling upon this before op fix: https://vwad.owasp.org/app/damn-vulnerable-nginx-proxy-dvnp/
2
u/moonwork Aug 19 '26
I take it you took down the full guide?
https://blog.oussmess.me/posts/damn-vulnerable-nginx-proxy-full-guide is linked from your link and the github page, but just returns 404.
Or am I missing something?
2
u/moonwork Aug 19 '26
I didn't know about the potential vulnerabilities that come from leaving out a trailing slash with the nginx proxy_pass. As I was patching up the few such instances I have in my configurations, I did notice that I've used the same syntax for it as Mattermost suggests using in their own Nginx documentation.
Have you noticed a lot of these types of errors in the documentation coming from the software providers?
1
u/JRubenC Aug 14 '26
Right link https://vwad.owasp.org/app/damn-vulnerable-nginx-proxy-dvnp/