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.
Published on web.archive.org
{{media:0}}
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
- Go to the login page.
- Log in with Google OAuth using the victim's email.
- Log out and go to the registration page.
- Register with the victim's email and a new password.
- Close the email verification tab (no access to victim's email).
- 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.