Advisories

Coder from 2.38.0 before 2.38.6 CSRF Bypass via Unanchored Exemption Patterns

Go back
Severity
low
Date
Affecting
  • coder >= 2.38.0, < 2.38.6

  • coder >= 2.37.0, < 2.37.10

  • coder >= 2.30.0, < 2.34.18

  • coder >= 2.6.0, < 2.29.26

  • coder >= 2.35.0, < 2.37.0

CWE
  • CWE-352 Cross-Site Request Forgery (CSRF)
CVSS
2.3
CVSS V4 Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Credit
BobbyHo
Description
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.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.