Hi,
I would like to propose an additional fix addressing Debian bug #1126960,
which has already been fixed unstable.
For stable/oldstable, this is implemented as a configuration-level
workaround in the *_params files (proxy/fastcgi/scgi/uwsgi), replacing
"$http_host" with "$host”.

Changelog entry:
  * d/conf/*_params: use "$host" instead of "$http_host"
    * "$http_host" forwards the Host header exactly as supplied by the client
      and may not match the effective request target (e.g. absolute-form
      requests with a conflicting Host header)
      this can expose inconsistent or attacker-controlled host values to
      backend applications (uwsgi, fastcgi, scgi, proxy) and affect URL
      generation, redirects, routing, or security checks
    * switch to "$host" as a safer, normalized alternative
    * note: this changes behaviour, as "$host" does not preserve the
      client-supplied port; deployments relying on "$http_host" including
      a port number may be affected
    * it is workaround for Debian bug #1126960 for stable/oldstable release


Attachment: nginx_1.26.3-3+deb13u3.debdiff
Description: Binary data

Jan

Reply via email to