Skip to content
Account takeover Write-up Intermediate

PRE-ACCOUNT TAKEOVER through Oauth misconfiguration on a mailing

The site allowed signup with an unverified email and gave partial access, and its Google OAuth login did not check for an existing account, so an attacker could register the victim's email and later gain full access once the victim verified it. An attacker could read and send emails in the victim's name.

Harish Follow

Published on infosecwriteups.com

If an application allows users to authenticate with their Gmail address using Google SSO, the system must check if the email has existing account or not. If the Oauth authorization is misconfigured, it is able to create an account with victim’s email without verifying the email.

Harish, on infosecwriteups.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 OAuth signup flow did not check for an existing account with the same email and did not require email verification before granting access.

Impact

An attacker could read and send emails in the victim's name, but the attack requires the victim to sign up with Google and verify their email.

What the attacker needed

Victim signs up with Google OAuth; victim verifies their email; attacker knows victim's email

How it was found

  1. Sign up with the victim's email in one browser and do not verify the email.
  2. In a second browser, sign up using Google OAuth with the victim's email.
  3. In the second browser, send the verification email and verify the email.
  4. Observe that the first browser's session is now active with full 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 with Google, the site should check if that email already has an account. Here it did not, so someone could create an account with your email first. Later, when you signed up with Google and verified your email, the attacker's earlier session became fully active, letting them read your mail.

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 Harish

View all

2 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.