How i Found Pre Account Takeover in 3 Minutes
The application allowed manual registration with an email address without verifying ownership, and then signing in with Google using the same email linked to that pre-created account. An attacker could therefore create an account with a victim's email before the victim registered, and later retain access even after the victim verified the email via OAuth.
medium.com
Published on medium.com
Attackers take your leaked email from past breaches, create a fake account on a service you haven’t used yet, and sit tight until you eventually join. Surprise: the account’s already theirs
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 did not verify email ownership during manual registration and then automatically linked an OAuth login with the same email to the existing unverified account.
Impact
An attacker could pre-create an account with a victim's email and retain access even after the victim verified the email via OAuth, allowing the attacker to change the password and control the account.
What the attacker needed
Victim's email address known; victim has not yet registered; attacker can access registration page
How it was found
- Go to the registration page and manually sign up using the victim's email address.
- Log out of the manually created account.
- From another browser, go to the login page and choose 'Sign in with Google' using the same email address.
- Observe that the application redirects to the previously created account.
- Log in via OAuth, verify the email through the settings, then log out and confirm the attacker session still has access.
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 for a website, it usually sends a link to your email to prove the address is yours. This site did not check that before letting someone create an account with any email address. Later, if the real owner used 'Sign in with Google' with that same email, the site treated them as the same person and let the attacker keep access.
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.