Description
Nginx Proxy Manager through 2.16.0 fails to restrict the advanced_config field to administrators, allowing non-admin users with manage permissions to inject arbitrary nginx directives. Attackers can inject malicious nginx configuration such as alias directives to serve arbitrary files or control routing for their assigned hosts.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| NginxProxyManager | nginx-proxy-manager | ≤ 2.16.0 | — |
References
- https://github.com/NginxProxyManager/nginx-proxy-manager/issues/5749 issue-tracking
- https://github.com/NginxProxyManager/nginx-proxy-manager/pull/5908 patch issue-tracking
- https://github.com/NginxProxyManager/nginx-proxy-manager/blob/v2.16.0/backend/internal/user.js#L52-L62 technical-description
- https://github.com/NginxProxyManager/nginx-proxy-manager/blob/v2.16.0/backend/templates/proxy_host.conf#L28 technical-description
- https://github.com/NginxProxyManager/nginx-proxy-manager/blob/v2.16.0/README.md#L36 technical-description
- https://github.com/NginxProxyManager/nginx-proxy-manager product
- VulnCheck Advisory: Nginx Proxy Manager through 2.16.0 Improper Authorization via advanced_config third-party-advisory