Google::Auth for Perlに認証を回避される脆弱性、ローカルの攻撃者が自分のアカウントを紐付け
概要
Google::Auth for Perlの0.11から0.12までの版では、gcloud-authのログイン処理がOAuthのstateを確認しないため、同じPC上の攻撃者が自分のGoogleアカウントの認証コードを送り込めます。CLIはそれを交換して更新トークンを利用者の認証情報として保存するため、利用者のツールが攻撃者のアカウントで動いてしまいます。修正版の有無は公表されていないため、最新の情報を確認してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Google::Auth for Perlの0.11から0.12までの版では、gcloud-authのログイン処理がOAuthのstateを確認しないため、同じPC上の攻撃者が自分のGoogleアカウントの認証コードを送り込めます。CLIはそれを交換して更新トークンを利用者の認証情報として保存するため、利用者のツールが攻撃者のアカウントで動いてしまいます。修正版の有無は公表されていないため、最新の情報を確認してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| CPANGoogle-Auth |
0.11 〜 0.12→ 記載なし |
記載なし |
この記録には修正版の版が載っていません。修正版の有無と版は、本文か参照URLのベンダーの勧告で確かめてください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Google::Auth versions from 0.11 through 0.12 for Perl accept an authorization code from any local process because the gcloud-auth login callback does not check the OAuth state.
The gcloud-auth login and application-default login commands send a state parameter with the authorization request, then take the code from the first request to reach their loopback listener without comparing the returned state.
A local attacker can submit an authorization code for their own Google account. The CLI exchanges it and stores the refresh token as the user's credentials, so the user's tools then act as the attacker's account.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- web metacpan.org
- web nvd.nist.gov
- web github.com