Skip to content
Account takeover Write-up Intermediate

$500 OAuth Account Fusion Pre-Takeover Attack

An account created with an email and password stayed unverified, but signing up with OAuth using the same email automatically fused the two accounts and marked the email as trusted. An attacker who pre-registered a victim's email could then log in through the password channel once the victim signed up with OAuth.

medium.com

Published on medium.com

This app offers two ways to sign up: the standard email/password route or a quick OAuth sign-up using Google or GitHub.

tinopreter, on medium.com

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 account fusion logic treated a successful OAuth login as proof of ownership for any existing password account with the same email, clearing its unverified state without notifying or requiring consent from that account's owner.

Impact

An attacker who pre-registers a victim's email could gain access to the same account once the victim signs up via OAuth, giving a pre-account takeover; the write-up does not show what data or actions were reachable beyond the dashboard.

What the attacker needed

Attacker registers victim's email first; victim later signs up via OAuth; no email verification required

The fix

The app should not silently mark an existing password account as verified when an OAuth sign-up uses the same email; it should require the original account owner to confirm the link, for example by email, before fusing the accounts.

How it was found

  1. Register a normal email/password account using the victim's email address and a password the attacker controls.
  2. Observe that the account is blocked behind a 'Verify your account' wall.
  3. In a separate private browsing session, complete the OAuth sign-up with the same email address.
  4. Return to the first session and refresh the page.
  5. See that the pending session is now redirected straight to the dashboard without any 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 sign up with an email and password, many apps ask you to click a link to prove the email is yours. This app also lets you sign up with Google or GitHub instead, and it trusts those providers to have already checked the email. The bug is that signing up with Google for an email that someone else had already registered with a password silently marked that password account as verified, so the person who made the password account got in too.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.