Bypassing Email Verification via OAuth Misconfiguration
The e-commerce platform allowed registration with an already-registered email by omitting the email from Facebook OAuth or by editing a disabled email field during Google Sign-In. An attacker could create a second account with a victim's email, bypassing email verification and potentially enabling account takeover.
medium.com
Published on medium.com
OAuth is designed to make logins seamless, but when the integration isn’t handled carefully, it can lead to serious logic flaws. Today, I’ll share how I bypassed email verification on an e-commerce platform using Facebook OAuth and a simple HTML tweak during a Google Sign-In.
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 application failed to validate that the email provided during OAuth registration was unique and verified, and it relied on client-side restrictions (disabled field) that could be bypassed.
Impact
This could lead to full account takeover, but in this case it allowed two accounts with the same email, a database logic flaw.
What the attacker needed
Facebook or Google account; Victim's email address known; No email verification required
How it was found
- Initiate Facebook login and toggle Email Address access to Off.
- When prompted, enter an already registered email address.
- Submit the form, creating a second account with the same email without verification.
- For Google Sign-In, select a Google account and reach the profile completion page.
- Use browser developer tools to change the disabled email field to enabled.
- Change the email to the victim's address and submit the form.
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 sign up with Facebook or Google, the site trusts the email those services provide. Here, the site let users manually enter an email if Facebook didn't share one, and it didn't check if that email was already used. Also, a disabled email field could be re-enabled in the browser, letting users change it to someone else's email. This meant someone could register with another person's email without proving they own it.
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.