Coder before 2.35.4 Credential Theft via Workspace Proxy Hostname Prefix Match
coder
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
coder
| Product | Affected | Fixed in |
|---|---|---|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
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.
From the CVE record · VulnCheck
Affected coder versions improperly trust a domain that is a string prefix of a workspace-proxy access URL. An attacker who owns such a domain can lure an authenticated victim to a crafted auth-redirect link, capture the redirected application_connect API key, and replay it to access the victim’s workspace apps.
Operators of coder versions before 2.29.20, 2.33.0 through 2.33.11, 2.34.0 through 2.34.7, or 2.35.0 through 2.35.3 should check their deployments.