Forgejoの脆弱性によりメールアドレスを偽装されアカウントを乗っ取られるおそれ
Summary
Forgejoには、認証済みの利用者が未確認のメールアドレスを主メールアドレスに設定できる脆弱性があります。Forgejoを認証に使う外部サービスでアカウントを乗っ取られるおそれがあり、CVSSは7.7です。影響を受けるのは15.0.12未満と16.x、17.0.2未満の版で、修正版は15.0.12と17.0.2です。
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.
Forgejoには、認証済みの利用者が未確認のメールアドレスを主メールアドレスに設定できる脆弱性があります。Forgejoを認証に使う外部サービスでアカウントを乗っ取られるおそれがあり、CVSSは7.7です。影響を受けるのは15.0.12未満と16.x、17.0.2未満の版で、修正版は15.0.12と17.0.2です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ForgejoForgejo |
≥ 9.0.0, < 15.0.12→ 15.0.12 ≥ 16.0.0, < 17.0.2→ 17.0.2 |
15.0.12 17.0.2 |
Original description The description as published by the source.
In Forgejo before 15.0.12 and 16.x and 17.x before 17.0.2, email_verified can be spoofed, sometimes leading to account takeover in external services that rely on Forgejo for authentication. It allows an authenticated user to set an unverified secondary email address as their primary email address when [service] REGISTER_EMAIL_CONFIRM is enabled. Although the web UI hides the "Make primary" button for unverified addresses, the backend POST /user/settings/account/email handler (EmailPost in routers/web/user/setting/account.go) and MakeEmailAddressPrimary in services/user/email.go did not check whether the email address was activated. Because Forgejo's OpenID Connect (OIDC) provider derives the email_verified claim from user.IsActive rather than the primary email address's activation state, an attacker can obtain signed ID tokens asserting email_verified: true for an arbitrary unverified email address, and potentially take over accounts on external relying parties that match users by verified email.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web cve@mitre.org
- web cve@mitre.org
- web cve@mitre.org
- web cve@mitre.org
- web cve@mitre.org
- web cve@mitre.org
- web cve@mitre.org
- web nvd.nist.gov
- web github.com