Traefik: BasicAuth Middleware Timing Attack Allows Username Enumeration
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 2.11.41, 3.6.11, 3.7.0-ea.2
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
Traefik is an HTTP reverse proxy and load balancer. Versions 2.11.40 and below, 3.0.0-beta1 through 3.6.11, and 3.7.0-ea.1 comtain BasicAuth middleware that allows username enumeration via a timing attack. When a submitted username exists, the middleware performs a bcrypt password comparison taking ~166ms. When the username does not exist, the response returns immediately in ~0.6ms. This ~298x timing difference is observable over the network and allows an unauthenticated attacker to reliably distinguish valid from invalid usernames. This issue is patched in versions 2.11.41, 3.6.11 and 3.7.0-ea.2.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- traefik traefik
fixed in 2.11.41; From 3.0.0-beta1 · fixed in 3.6.11; From 3.7.0-ea.1 · fixed in 3.7.0-ea.2
- github.com/traefik/traefikGo
All versions
- github.com/traefik/traefik/v2Go
fixed in 2.11.41
- github.com/traefik/traefik/v3Go
fixed in 3.6.11; From 3.7.0-ea.1 · fixed in 3.7.0-ea.2
- github.com/traefik/traefikGo
through 1.7.34
- github.com/traefik/traefik/v3Go
fixed in 3.6.11
- github.com/traefik/traefik/v3Go
From 3.7.0-ea.1 · fixed in 3.7.0-ea.2