Coder
Coder: Workspace agent API insecure redirect handling allowed cross-agent file read and write
Coder allows organizations to provision remote development environments via Terraform. Prior to 2.29.19, 2.32.9, 2.33.10, and 2.34.4, agentConn.apiClient() follows redirects while its custom transport accepts the host from the redirected request URL when the port is the workspace agent HTTP API port 4. An authenticated user who controls a modified workspace agent and knows another online agent's UUID can derive the victim's tailnet address and redirect control-plane requests to that agent. HTTP 301, 302, and 303 redirects can redirect read requests, while HTTP 307 and 308 preserve replayable write and process-start requests. The redirected workspace agent file APIs can read or write files as the victim workspace user, and affected versions exposing the workspace agent process API can execute commands after a redirected file write, crossing workspace and tenant boundaries. This issue is fixed in versions 2.29.19, 2.32.9, 2.33.10, and 2.34.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.27.0, < 2.29.19
- >= 2.30.0, < 2.32.9
- >= 2.33.0, < 2.33.10
- >= 2.34.0, < 2.34.4
Fixed in 2.29.19, 2.32.9, 2.33.10, 2.34.4
Mitigation
Upgrade coder to 2.29.19 or 2.32.9 or 2.33.10 or 2.34.4 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.