Skip to main content

What it flags

An Nginx proxy_pass whose upstream host is a variable the client controls: $host, $http_host, any other $http_* header, $arg_* query arguments or $cookie_* values, with or without a scheme (proxy_pass $scheme://$http_x_forwarded_host, proxy_pass $arg_url). A numbered capture of a regex location that forms the whole host (location ~ ^/go/(.+)$ { proxy_pass https://$1; }) counts too, because it holds part of the request path. The client can then make Nginx forward requests to internal services or arbitrary hosts. OWASP: SSRF Variables in the path only (proxy_pass http://backend$request_uri) and proxy_set_header Host $host are not reported. A $host or $http_host upstream in a server block that lists only literal server_name values and is not marked default_server is reported as contextual, because Nginx routes only matching Host values there unless the block is the default server for its port.
No automatic fix: a human decides.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: