Coder 特定の条件で認証を回避される脆弱性 ワークスペースのセッション取得のおそれ
Summary
Coderには、GCPのインスタンスID認証でJWTの対象者(audience)を検証していない脆弱性があります。ほかの連携先向けに発行された有効期限内のトークンを再利用されると、ワークスペースエージェントのセッショントークンを取得され、次回のビルドまで有効なままになるおそれがあります。影響を受けるのは2.29.21未満などのバージョンで、修正版は2.29.21・2.34.12・2.35.9・2.36.7・2.37.4です。
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には、GCPのインスタンスID認証でJWTの対象者(audience)を検証していない脆弱性があります。ほかの連携先向けに発行された有効期限内のトークンを再利用されると、ワークスペースエージェントのセッショントークンを取得され、次回のビルドまで有効なままになるおそれがあります。影響を受けるのは2.29.21未満などのバージョンで、修正版は2.29.21・2.34.12・2.35.9・2.36.7・2.37.4です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| codercoder |
< 2.29.21→ 2.29.21 |
2.29.21 |
Original description The description as published by the source.
Coder before 2.29.21, 2.30.0 before 2.34.12, 2.35.0 before 2.35.9, 2.36.0 before 2.36.7, and 2.37.0 before 2.37.4 does not validate the audience claim of GCE instance-identity JWTs at the POST /api/v2/workspaceagents/google-instance-identity endpoint. Attackers who obtain an unexpired format=full identity token minted for another relying party can replay it to obtain that workspace agent's session token, which remains valid until the workspace's next build.
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