Skip to content
Account takeover Write-up Beginner

Account Takeover Using Re-Register [ Bug Bounty ]

A user could re-register an email address that was already linked to a Google OAuth account, and then log in with the new password without email verification, gaining access to the original account. This allowed an attacker to take over another user's account.

Myo Min Thu Follow

Published on web.archive.org

Bounty$2,048 View original

{{media:0}}

Myo Min Thu, on web.archive.org

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 registration endpoint did not check whether the email was already associated with an existing account (such as one created via OAuth), and the login flow did not require email verification for the newly registered account.

What the attacker needed

Victim has an account via Google OAuth; attacker knows victim's email; no email verification required

The fix

The registration process should check if the email is already in use and require email verification before allowing login with the new password.

How it was found

  1. Go to the login page.
  2. Log in with Google OAuth using the victim's email.
  3. Log out and go to the registration page.
  4. Register with the victim's email and a new password.
  5. Close the email verification tab (no access to victim's email).
  6. Log in with the new credentials and access the victim's account without 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 in with Google, the site creates an account using your email but doesn't set a password. The site also lets anyone register with any email and a password, but it doesn't check if that email already belongs to an account. So an attacker can register the victim's email with a new password and then log in as the victim without needing access to their email.

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.

More by Myo Min Thu

View all

7 more disclosed reports, best first.

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.