Coder from 2.38.0 before 2.38.6 CSRF Bypass via Unanchored Exemption Patterns
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.34.18, 2.37.0, 2.37.10 and 2 more.
Coder 2.6.0 before 2.29.26, 2.30.0 before 2.34.18, 2.35.0 before 2.37.10, and 2.38.0 before 2.38.6 contains a cross-site request forgery vulnerability because CSRF exemption patterns in coderd/httpmw/csrf.go are matched as unanchored regular expressions, letting affected API routes skip CSRF token and same-origin checks. Attackers controlling a page same-site with the deployment can make signed-in users' browsers send forged POST requests that recreate dev containers or add users whose names contain derp to organizations.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| coder | >=2.30.0 <2.34.18, >=2.35.0 <2.37.0, >=2.37.0 <2.37.10, >=2.38.0 <2.38.6, >=2.6.0 <2.29.26 | 2.34.18, 2.37.0, 2.37.10, 2.38.6, 2.29.26 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket