Security warnings - #284
Conversation
NGINX does not try to protect itself against untrusted upstream servers. Document this.
It's a severe security vulnerability in misconfigured NGINX instances.
It is a severe vulnerability affecting misconfigured NGINX instances.
|
While I generally support the idea to explicitly document a concept of trusted backends (and other similar origins) to address the progressively decreasing entry level, this should be done is a more correct and fine-grained way, avoiding bold / unsubstantiated statements and other FUD. I will keep it open in order to not forget to do this properly. |
|
Not sure if this is the right place to report, but since the topic of this PR is similiar: it would be nice if the alias path traversal miss configuration (https://mailman.nginx.org/pipermail/nginx-devel/2023-July/C36V7SJGRTJRN5JOLBCULA3EAFDTHJDJ.html) could be mentioned in the docs. I didn't know about this, which now caused a 10/10 security issue in my project (ZoeyVid/NPMplus#3626) |
This is a well-known misconfiguration of prefix locations, notably when using together with the alias directive. As for improving the documentation, IMHO, all the necessary parts are given. 8<------------------------------------------------- ------------------------------------------------->8 The example is intentionally given with a trailing slash as part of best-current practices. Next, the concept of prefix locations is explained in http://nginx.org/r/location. 8<------------------------------------------------- In your case, If this is not intended, the configuration should be adjusted appropriately. If reading the documentation doesn't make it clear for some reason, |
Proposed changes
Nginx has various security limitations:
Checklist
Before creating a PR, run through this checklist and mark each as complete:
README.mdand/orCHANGELOG.md).