github.com/coder/coder/v2
Affected
- introduced
2.16.0, fixed2.16.1(semver)
Fixed versions
2.16.1
Fix
- Fixed version
2.16.1go get github.com/coder/coder/[email protected]
Advisory
Also known as: CVE-2024-58398, GO-2024-3228
Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect')
Summary
An issue on Coder's login page allows attackers to craft a Coder URL that when clicked by a logged in user could redirect them to a website the attacker controls, e.g. https://google.com.
Details
On the login page, Coder checks for the presence of a redirect query parameter. On successful login, the user would be redirected to the location of the parameter. Improper sanitization allows attackers to specify a URL outside of the Coder application to redirect users to.
Impact
Coder users could potentially be redirected to a untrusted website if tricked into clicking a URL crafted by the attacker. Coder authentication tokens are not leaked to the resulting website.
To check if your deployment is vulnerable, visit the following URL for your Coder deployment:
https://<coder url>/login?redirect=https%3A%2F%2Fcoder.com%2FdocsPatched Versions
This vulnerability is remedied in
All versions prior to 2.3.1 are not affected.
Thanks
References
https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c
https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6
Medium Basis: The source's own band: MODERATE
2.16.0, fixed 2.16.1 (semver)2.16.1
2.16.1go get github.com/coder/coder/[email protected]2.15.0, fixed 2.15.3 (semver)2.15.3
2.15.3go get github.com/coder/coder/[email protected]2.3.1, fixed 2.14.4 (semver)2.14.4
2.14.4go get github.com/coder/coder/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0