Coder vulnerable to unauthenticated SSRF via Azure Instance Identity Endpoint
coder
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/coder/coder/v2 Go |
|
|
coder
| Product | Affected | Fixed in |
|---|---|---|
| github.com/coder/coder/v2 Go |
|
|
2.31.122.30.82.29.132.24.5| github.com/coder/coder Go |
| No fix yet |
Coder allows organizations to provision remote development environments via Terraform. Versions prior tp 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3 are vulnerable to unauthenticated semi-blind Server-Side Request Forgery (SSRF) via the Azure instance identity endpoint (`POST /api/v2/workspaceagents/azure-instance-identity`). An external attacker can force the Coder server to issue HTTP GET requests to arbitrary internal or external hosts by submitting a crafted PKCS#7 signature. The server does not return the target's response body, but error messages in the API response reveal whether the target is reachable and what type of failure occurred. Versions 2.24.5, 2.29.13, 2.30.8, 2.31.12, 2.32.2, and 2.33.3 patch the issue. As a workaround, if the Azure identity-auth mechanism is not being used then restrict access to the corresponding endpoint (`/api/v2/workspaceagents/azure-instance-identity`) using ingress firewall and/or proxy ACLs.
From the CVE record · GitHub_M
Coder’s Azure instance identity endpoint is vulnerable to semi-blind server-side request forgery. An unauthenticated external attacker can submit a crafted PKCS#7 signature to make the server send HTTP GET requests to internal or external hosts; API errors can reveal whether a host is reachable, but not its response body.
Operators of Go package github.com/coder/coder/v2 in the listed affected ranges, or github.com/coder/coder at version 0.27.3 or earlier, should check their deployments.