Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS13Y3g5LWNjcGotaHgzY84ABAuW
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%2Fdocs
Patched Versions
This vulnerability is remedied in
- v2.16.1
- v2.15.3
- v2.14.4
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
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS13Y3g5LWNjcGotaHgzY84ABAuW
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 9 days ago
Updated: 9 days ago
CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Identifiers: GHSA-wcx9-ccpj-hx3c
References:
- https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c
- https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6
- https://github.com/advisories/GHSA-wcx9-ccpj-hx3c
Blast Radius: 1.0
Affected Packages
go:github.com/coder/coder/v2
Dependent packages: 4Dependent repositories: 0
Downloads:
Affected Version Ranges: >= 2.3.1, < 2.14.4, >= 2.15.0, < 2.15.3, = 2.16.0
Fixed in: 2.14.4, 2.15.3, 2.16.1
All affected versions: 2.3.1, 2.3.2, 2.3.3, 2.4.0, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.9.4, 2.10.0, 2.10.1, 2.10.2, 2.10.3, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.11.4, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.12.4, 2.12.5, 2.12.6, 2.13.0, 2.13.1, 2.13.2, 2.13.3, 2.13.4, 2.13.5, 2.14.0, 2.14.1, 2.14.2, 2.14.3, 2.15.0, 2.15.1, 2.15.2, 2.16.0
All unaffected versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.2.0, 2.2.1, 2.3.0, 2.15.3