Coder before 2.34.2 User Enumeration via Login Placeholder Hash
coder
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/coder/coder/v2 Go |
|
|
coder
| Product | Affected | Fixed in |
|---|---|---|
| github.com/coder/coder/v2 Go |
|
|
| github.com/coder/coder Go |
| No fix yet |
Coder before 2.29.17, 2.30.0 before 2.32.7, 2.33.0 before 2.33.8, and 2.34.0 before 2.34.2 contains a user enumeration vulnerability because userpassword.Compare() substitutes a placeholder hash derived from the string "hunter2" when a stored password hash is empty. Unauthenticated attackers can submit logins with the password "hunter2" and distinguish HTTP 403 from 401 responses to enumerate valid accounts and reveal the authentication provider of SSO-only users.
From the CVE record · VulnCheck
Coder uses a placeholder hash derived from "hunter2" when a stored password hash is empty. An unauthenticated attacker can submit login attempts using that password and distinguish HTTP 403 from 401 responses to enumerate valid accounts and reveal the authentication provider of SSO-only users.
Check Coder deployments using github.com/coder/coder/v2 in versions >=2.34.0 <2.34.2, >=2.33.0 <2.33.8, >=2.30.0 <2.32.7, or <2.29.17, and any deployments using github.com/coder/coder, for which no fixed version is listed.