Skip to content
Account takeover Write-up Beginner

Google SSO misconfiguration leading to Account Takeover

The login flow with Google SSO matched users by the first letter of their email address instead of the full address, so logging in with an unregistered email could land the attacker in another user's account. An attacker could access any account whose email started with the same character, potentially taking over accounts.

0x4KD Follow

Published on 0x4kd.medium.com

0x4KD

0x4KD, on 0x4kd.medium.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 backend used a partial match (first character) on the email when looking up users during SSO login, instead of an exact match, and did not verify that the email was registered.

Impact

An attacker could access and potentially take over any account whose email address starts with the same character as the attacker's email, affecting up to 36 accounts (a-z0-9).

What the attacker needed

A Google account; access to the login page

The fix

The issue was fixed by the developers, as confirmed by the support team.

How it was found

  1. Go to the website and log in using Google SSO with an email that is not registered.
  2. Observe that you are logged into an account belonging to a different user whose email starts with the same character.
  3. Try with different Google accounts to confirm the pattern: the first letter of the email determines which account you access.
  4. To access your intended account, go to the registration page and register with the email that previously led to the wrong account, then log in again.

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.

Single sign-on (SSO) lets you log in with an existing account like Google instead of a separate password. Here, the website's login code looked up users by only the first character of the email, so any email starting with the same letter as a real user's email would log you into that user's account. This is like a hotel giving you a room key because your name starts with the same letter as the guest's.

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 0x4KD

View all

1 more disclosed report, 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.