Skip to content
vetkitChecksChangelogDocumentation

vetkit.nginx.proxy.host-header-upstream

nginx proxy_pass uses the request's Host header ($host / $http_host) as the upstream. In a default or wildcard server block the client chooses where the server connects (SSRF / open proxy).

Last updated:

Suite: Security

regex

nginx proxy_pass uses the request's Host header ($host / $http_host) as the upstream. In a default or wildcard server block the client chooses where the server connects (SSRF / open proxy).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Proxy to a named upstream instead of the Host header, or restrict the server block to explicit server_name values and add a default server that returns 444.

References

Source: packages/engine/rules/sast/config.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.