Misconfigured OAuth = Instant Account Takeover (Even Before Signu
The platform allowed signing up with an email address without verifying ownership, and later allowed OAuth login with the same email without linking or checking existing accounts. An attacker could pre-register a victim's email, set a password, and retain access even after the real owner signed up via OAuth.
Published on medium.com
Imagine being able to log into someone’s account before they even create it. Sounds like fiction?
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the platform failed to verify email ownership during password signup and did not properly link or check existing accounts when the same email was used via OAuth.
Impact
An attacker could take over a victim's account before they even register, and retain access even after the real owner signs up via OAuth.
What the attacker needed
Victim's email address known; no email verification on signup; OAuth login enabled
The fix
The platform should verify email ownership during password signup and properly link or check existing accounts when the same email is used via OAuth.
How it was found
- Sign up with the victim's email address using the regular email-password method.
- Set a password for that account.
- Wait for the real owner to sign up using Google login with the same email.
- The platform allows the OAuth login without detecting the existing account.
- Both users end up in the same account, and the attacker retains password access.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a website lets you log in with Google or another service, it trusts that service to confirm your email. If the site also lets you create a normal password account without proving you own the email, someone else can grab that email first. Later, when the real owner logs in with Google, the site may treat both as the same account, letting the attacker keep access.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.