Coderに認可不備の脆弱性、権限のないユーザーがSSHキーやトークンを取得可能
Summary
Coderの外部エージェント認証情報エンドポイントに認可の不備があり、ワークスペースの読み取り権限しかないユーザーでも、エージェントのトークンを取得できます。そのトークンでオーナーのGit用SSHキーやOAuthトークンが読み取られ、セッションを乗っ取られるおそれがあります。影響を受けるのはcoder 2.35.0以上2.36.0未満で、修正版は2.36.0です。修正版への更新をお急ぎください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Coderの外部エージェント認証情報エンドポイントに認可の不備があり、ワークスペースの読み取り権限しかないユーザーでも、エージェントのトークンを取得できます。そのトークンでオーナーのGit用SSHキーやOAuthトークンが読み取られ、セッションを乗っ取られるおそれがあります。影響を受けるのはcoder 2.35.0以上2.36.0未満で、修正版は2.36.0です。修正版への更新をお急ぎください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| codercoder |
≥ 2.35.0, < 2.36.0→ 2.36.0 |
2.36.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com