Advisories

Coder 2.38.0 before 2.38.4 Authorization Bypass via External Agent Credentials Endpoint

Go back
Severity
high
Date
Affecting
  • coder >= 2.38.0, < 2.38.4

  • coder >= 2.37.0, < 2.37.8

  • coder >= 2.36.0, < 2.36.11

  • coder >= 2.30.0, < 2.34.16

  • coder >= 2.26.0, < 2.29.24

  • coder >= 2.35.0, < 2.36.0

CWE
  • CWE-863 Incorrect Authorization
CVSS
8.5
CVSS V4 Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Credit
Habib0x0
Description
Coder 2.26.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 contains an improper authorization flaw in the external agent credentials endpoint, which returns the workspace agent token to users with only workspace read access rather than ssh permission. Authenticated users with roles such as Template Admin or Organization Admin can use the token to read the owner's private Git SSH key and Git provider OAuth tokens, and impersonate the agent to receive the owner's sessions.

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.