Re:Avoiding the top Nginx configuration mistakes
by cosmiccrisp on Tuesday February 22, 2022 @07:48PM
(#30436084)
I remember someone posting an article of common nginx config security mistakes but can't find it. Does anyone remember? I would like to read through that again as well.
[ Parent
| on HN ]
Re:Avoiding the top Nginx configuration mistakes
by iancarroll on Tuesday February 22, 2022 @09:25PM
(#30436839)
Not a comprehensive article, but the worst security footgun, by far (IMO), is $uri. It’s completely unsafe to use $uri in basically any directives! You cannot redirect using it, proxy_pass using it, or you will have a bad time.
https://reversebrain.github.io/2021/03/29/The-story-of-Nginx...
Re:Avoiding the top Nginx configuration mistakes
by cosmiccrisp on Wednesday February 23, 2022 @09:31AM
(#30441341)
Thanks! That is good info.