Coder vulnerable to unauthenticated SSRF via Azure Instance Identity Endpoint
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 2.33.3, 2.32.2, 2.31.12, 2.30.8, 2.29.13, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- coder coder
From 2.33.0-rc.0 · fixed in 2.33.3; From 2.32.0-rc.0 · fixed in 2.32.2; From 2.31.0 · fixed in 2.31.12; From 2.30.0 · fixed in 2.30.8; From 2.29.0 · fixed in 2.29.13; fixed in 2.24.5
- github.com/coder/coder/v2Go
From 2.33.0-rc.0 · fixed in 2.33.3
- github.com/coder/coder/v2Go
From 2.32.0-rc.0 · fixed in 2.32.2
- github.com/coder/coder/v2Go
From 2.31.0 · fixed in 2.31.12
- github.com/coder/coder/v2Go
From 2.30.0 · fixed in 2.30.8
- github.com/coder/coder/v2Go
From 2.29.0 · fixed in 2.29.13
- github.com/coder/coder/v2Go
fixed in 2.24.5
- github.com/coder/coderGo
through 0.27.3
- github.com/coder/coderGo
All versions
- github.com/coder/coder/v2Go
fixed in 2.24.5; From 2.29.0 · fixed in 2.29.13; From 2.30.0 · fixed in 2.30.8; From 2.31.0 · fixed in 2.31.12; From 2.32.0-rc.0 · fixed in 2.32.2; From 2.33.0-rc.0 · fixed in 2.33.3