GHSA-qq9h-g4jm-xgf3: Better Auth: Account takeover via pre-account hijacking on magic-link and email-OTP sign-in
An attacker can keep password access to a victim’s account after the victim starts using it. The attack runs in three steps. First, with open registration, the attacker signs up using the victim’s email and a password the attacker picks. The account stays unverified, so the attacker cannot use it yet. Later the real owner signs in with a magic link or an email OTP. That step marks the account verified, and the attacker’s password now works on it.
References
- github.com/advisories/GHSA-qq9h-g4jm-xgf3
- github.com/better-auth/better-auth/commit/c06a56d83a40bbaeac12d3a8b8b67e59f92a9110
- github.com/better-auth/better-auth/pull/10239
- github.com/better-auth/better-auth/releases/tag/v1.6.22
- github.com/better-auth/better-auth/releases/tag/v1.7.0-beta.10
- github.com/better-auth/better-auth/security/advisories/GHSA-qq9h-g4jm-xgf3
Code Behaviors & Features
Detect and mitigate GHSA-qq9h-g4jm-xgf3 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →