Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
coder coder
Default version status: unaffected
2.34.0 to < 2.34.2affected2.34.2unaffected
pkg:golang/github.com/coder/coder/v2coder coder
Default version status: unaffected
2.33.0 to < 2.33.8affected2.33.8unaffected
pkg:golang/github.com/coder/coder/v2coder coder
Default version status: unaffected
2.30.0 to < 2.32.7affected2.32.7unaffected
pkg:golang/github.com/coder/coder/v2coder coder
Default version status: unaffected
0 to < 2.29.17affected2.29.17unaffected
pkg:golang/github.com/coder/coder/v2