Traefik: BasicAuth singleflight key collision allows authenticated identity spoofing
traefik
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
| No fix yet |
traefik
| Product | Affected | Fixed in |
|---|---|---|
| github.com/traefik/traefik/v3 Go |
|
|
| github.com/traefik/traefik Go |
| No fix yet |
| github.com/traefik/traefik/v2 Go |
|
| No fix yet |
Traefik is an open source HTTP reverse proxy and load balancer. From 3.6.11 until 3.6.25 and 3.7.10, Traefik's BasicAuth middleware in pkg/middlewares/auth/basic_auth.go deduplicates concurrent password checks with a singleflight key built from the delimiter-free concatenation of password and secret, allowing an attacker who has a valid credential and the stored hash to authenticate as an unconfigured username when headerField trusts the forwarded identity. This issue is fixed in 3.6.25 and 3.7.10.
From the CVE record · GitHub_M
Traefik’s BasicAuth middleware can conflate concurrent password checks because its deduplication key joins the password and secret without a delimiter. An attacker with a valid credential and the stored hash can authenticate as an unconfigured username when headerField trusts the forwarded identity.
Teams running Traefik v3 versions 3.6.11 through 3.6.24 or 3.7.0 through 3.7.9, or any version of the unversioned or v2 Go packages, should check their deployments.