Easy P2 — Pre account takeover via Facebook OAuth misconfiguration
When a user signs in with Facebook and does not share their email address, the target site asks for an email but does not verify it. An attacker can enter a victim's email address and gain access to that victim's account.
The original lives on sudosuraj.medium.com
We do not hold its text, 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 application trusts an unverified email address supplied by the user during OAuth registration and links it to an existing account without verification.
Impact
An attacker could take over a victim's account by supplying the victim's email address during Facebook OAuth login when email sharing is disabled.
What the attacker needed
Victim's email address known; Attacker can disable email sharing on Facebook; Target site allows Facebook login
How it was found
- Visit the target site and log in using the 'Login with Facebook' option.
- Disable email sharing by unchecking the email address during the Facebook login process.
- Enter the victim's email address when prompted by the target site.
- The system grants access to the victim's account without email verification.
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 you use 'Login with Facebook', the site usually gets your email from Facebook. If you choose not to share your email, the site asks you to type one in. This report says the site then trusts whatever email you type without checking that it belongs to you, so someone could type another person's email and get into their account.
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.