Coder
Coder before 2.35.4 Credential Theft via Workspace Proxy Hostname Prefix Match
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.35.0, < 2.35.4
Fixed in 2.35.4
- >= 2.34.0, < 2.34.8
Fixed in 2.34.8
- >= 2.33.0, < 2.33.12
Fixed in 2.33.12
- < 2.29.20
Fixed in 2.29.20
Mitigation
Upgrade coder to 2.35.4 or later.
Upgrade coder to 2.34.8 or later.
Upgrade coder to 2.33.12 or later.
Upgrade coder to 2.29.20 or later.
References
- Vendor advisory github.com/coder/coder/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.