Traefik: ForwardAuth identity spoofing via dot-form header alias
traefik
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v2 Go |
|
|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
traefik
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v2 Go |
|
|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
|
| No fix yet |
Traefik is an open source HTTP reverse proxy and load balancer. Prior to 2.11.56, and from 3.0.0 until 3.7.12, a client-supplied dot-form header such as X.Authenticated.User survives ForwardAuth replacement and underscoreHeadersStrategy because Go treats it as distinct from X-Authenticated-User while normalization-prone CGI, WSGI, PHP, and NGINX backends collapse both names. A backend can consequently consume the client value instead of the identity Traefik asserted, allowing identity spoofing for any header managed by Traefik. The aliasHeadersStrategy protection is disabled by default and must be configured as delete or reject. The mitigation is available in 2.11.56 and 3.7.12.
From the CVE record · GitHub_M
Traefik can preserve a client-supplied dot-form header alongside an identity header set by ForwardAuth. When a backend normalizes the two names to the same header, a network client can cause the backend to consume the client-supplied value instead, spoofing an identity.
Check deployments using github.com/traefik/traefik/v2 before 2.11.56, github.com/traefik/traefik/v3 from 3.0.0 before 3.7.12, or any version of github.com/traefik/traefik.