OAuth Account Linking Bypass Leading to Full Account Takeover and
The platform allowed an attacker to pre-register a local account using a victim's email address without verification, and later auto-linked the victim's OAuth identity to that unverified account. This gave the attacker full access to the victim's account, including the ability to delete it.
Published on medium.com
During my ongoing upskilling in bug bounty methodologies, I came across a disclosure detailing an“OAuth Account Linking Bypass Resulting in Full Account Takeover and Deletion.” The analysis immediately resonated, as it aligned with behavior I had previously observed while assessing another program. Recognizing the…
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 system did not require email verification before activating an account and automatically linked OAuth identities to existing unverified accounts with the same email.
Impact
An attacker could gain complete control of the victim's account, impersonate them, and permanently delete the account, with zero user interaction required.
What the attacker needed
Victim's email address; victim later signs up via OAuth
The fix
The platform should enforce email verification before activating accounts, block OAuth auto-linking to unverified accounts, and require a confirmation step before binding OAuth identities.
How it was found
- Attacker creates a local account using the victim's email address without any verification.
- Attacker optionally changes the username for plausible deniability.
- Victim later signs up via Facebook or Google OAuth using the same email address.
- Platform automatically binds the OAuth identity to the attacker-controlled local account.
- Attacker retains full access with their local credentials and can operate or delete the victim's account.
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 an email, the site should check that you really own it. Here, it did not, so an attacker could create an account with someone else's email. Later, when the real owner logged in with Facebook, the site linked their account to the attacker's, letting the attacker log in as them.
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.