Better Auth にOAuthのメール未検証アカウントを乗っ取られる脆弱性
Summary
Better Authには、OAuthでのサインイン時に未検証のメールアドレスを検証済みとして扱う脆弱性があります。攻撃者は被害者のアドレスを未検証のまま持つ認証プロバイダーでサインインし、被害者のローカルアカウントに連携してセッションを取得できるおそれがあります。影響を受けるのは1.8.0-beta.0以降1.8.0-beta.5未満で、修正版の1.8.0-beta.5で解消されています。該当バージョンを使っている場合は、速やかに修正版へ更新してください。
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.
Better Authには、OAuthでのサインイン時に未検証のメールアドレスを検証済みとして扱う脆弱性があります。攻撃者は被害者のアドレスを未検証のまま持つ認証プロバイダーでサインインし、被害者のローカルアカウントに連携してセッションを取得できるおそれがあります。影響を受けるのは1.8.0-beta.0以降1.8.0-beta.5未満で、修正版の1.8.0-beta.5で解消されています。該当バージョンを使っている場合は、速やかに修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| better-authbetter-auth |
≥ 1.8.0-beta.0, < 1.8.0-beta.5→ 1.8.0-beta.5 |
1.8.0-beta.5 |
Original description The description as published by the source.
Better Auth 0.4.9 before 1.7.16 and 1.8.0-beta.0 before 1.8.0-beta.5 contains an OAuth sign-in authentication flaw that treats unverified provider emails as verified, including string "false" email_verified claims, unchecked generic OAuth profile/ID-token subject mismatches, and ignored Zoom provider options. Attackers holding a victim's address unverified at an affected provider can sign in, link to the victim's local account, and obtain its session.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com