Giteaの認証連携に脆弱性、他人のアカウントへ乗っ取られるおそれ
概要
Giteaでは、OAuth2のアカウント自動連携を有効にしていると、登録フォームから別のユーザーのアカウントに外部ID を連携され、パスワードなしでサインインされるおそれがあります。影響するのは28.3.0より前のバージョンで、28.3.0で修正されています。修正版へのアップデートをおすすめします。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Giteaでは、OAuth2のアカウント自動連携を有効にしていると、登録フォームから別のユーザーのアカウントに外部ID を連携され、パスワードなしでサインインされるおそれがあります。影響するのは28.3.0より前のバージョンで、28.3.0で修正されています。修正版へのアップデートをおすすめします。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| GiteaGitea |
28.3.0 未満→ 28.3.0 |
28.3.0 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
When [oauth2_client].ACCOUNT_LINKING is set to auto (not the default) and registration is enabled, the link-account sign-up form looked up the existing account to link by the user name or email submitted in the form instead of the identity asserted by the OAuth2 provider. An attacker with an account on a configured OAuth2 provider could submit another user's name, link their external identity to that Gitea account and be signed in as it without its password, including as an administrator. The link persisted for later sign-ins. Automatic linking now only happens when the existing account matches the provider's email or provider-derived user name; otherwise the account password is required.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory blog.gitea.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com