When “Sign in with Google” Signed Me Into Someone Else’s A
The application allowed adding a secondary email address without verifying ownership, and then signing in with Google using that email logged the user into the account that had added it. An attacker could add a victim's email to their own account and later log in as the victim via Google, achieving account takeover.
At first glance, everything worked as expected. But a few clicks later, I realized something terrifying:
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 failed to verify ownership of a secondary email address before linking it, and then trusted that unverified email during OAuth login to identify the account.
Impact
An attacker could take over a victim's account by linking the victim's email and then logging in via Google, gaining full control.
What the attacker needed
A free account; victim's email address known; victim uses Google sign-in
How it was found
- Create a normal account with email and password.
- Go to Account Settings → Email Management and add a secondary email address (the victim's Google email).
- Log out from the attacker account.
- Click 'Sign in with Google' and authenticate using the victim's Google email.
- Observe that the application logs the user directly into the attacker'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.
This is about a login system that lets you link multiple email addresses to one account. The site didn't check that you actually own an email before linking it, so an attacker could link someone else's email. Later, when that person used 'Sign in with Google', the site treated them as the attacker's account, giving the attacker control.
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.