Description (CNA)
Coder before 2.29.20, 2.33.0 before 2.33.12, 2.34.0 before 2.34.8, and 2.35.0 before 2.35.4 contains an improper hostname validation flaw in GetWorkspaceProxyByHostname whose SIMILAR TO pattern performs a prefix match, so any domain that is a string prefix of a workspace-proxy access URL is trusted as a proxy. Attackers owning such a domain can lure an authenticated victim to a crafted /api/v2/applications/auth-redirect link, capture the redirected application_connect API key, and replay it to access the victim's workspace apps.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| coder / coder | affected 2.35.0 before 2.35.4; unaffected 2.35.4 |
| coder / coder | affected 2.34.0 before 2.34.8; unaffected 2.34.8 |
| coder / coder | affected 2.33.0 before 2.33.12; unaffected 2.33.12 |
| coder / coder | affected 0 before 2.29.20; unaffected 2.29.20 |
CWE
CWE-522
References
- https://github.com/coder/coder/security/advisories/GHSA-h58h-qvv5-xvwg
- https://www.vulncheck.com/advisories/coder-before-2.35.4-credential-theft-via-workspace-proxy-hostname-prefix-match
ADP enrichment
No English description supplied.
No references supplied.