Chainguard SDKのAWS認証で認証情報を再利用され別のサービスに認証される脆弱性
Summary
Chainguard SDKのauth/aws.VerifyTokenに脆弱性があり、攻撃者が被害者の署名済みAWSリクエストを流用して、別の連携先に被害者のAWS IDとして認証させられるおそれがあります。影響するのは0.1.107より前のバージョンで、0.1.107で修正されています。auth/aws.GenerateTokenだけを使っている場合は影響を受けないと案内されています。SDKを使っている場合は、0.1.107以降へ更新してください。
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.
Chainguard SDKのauth/aws.VerifyTokenに脆弱性があり、攻撃者が被害者の署名済みAWSリクエストを流用して、別の連携先に被害者のAWS IDとして認証させられるおそれがあります。影響するのは0.1.107より前のバージョンで、0.1.107で修正されています。auth/aws.GenerateTokenだけを使っている場合は影響を受けないと案内されています。SDKを使っている場合は、0.1.107以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| chainguard-devsdk | — | Not listed |
| Gochainguard.dev/sdk |
< 0.1.107→ 0.1.107 |
0.1.107 |
Original description The description as published by the source.
The Chainguard SDK is a public Go SDK for integrating with the Chainguard platform. Prior to 0.1.107, auth/aws.VerifyToken trusts the Chainguard-Audience and Chainguard-Identity headers without requiring those headers to be covered by AWS SigV4 SignedHeaders. An attacker with a fresh STS GetCallerIdentity request signed by a victim can rewrite the unsigned binding headers and replay the proof to another relying party, causing the relying party to authenticate the victim’s AWS identity for an attacker-chosen audience and identity. Code that only uses auth/aws.GenerateToken is unaffected because the generator signs the binding headers, and exploitation requires a signed request within its validity window. This issue is fixed in version 0.1.107.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com