Skip to content
Account takeover Write-up Beginner

Easy 3 Digit Bounty: A Silent Takeover Flaw $$

An application that let users sign up with Google OAuth also generated a password for the new account and emailed it to the user in plaintext. Anyone who could read that email, for example after an inbox compromise, could log in with the password, change it and take over the account.

vansh_51476 Follow

Published on medium.com

Most people trust OAuth logins. “Sign in with Google” feels safer than passwords — no credential reuse, no password storage, no exposure. During a recent security assessment, I came across a case where that trust quietly collapsed.

Jimmy, on 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 a design flaw: the system generated a password for OAuth-created accounts, emailed it in plaintext, and allowed password login without the user ever choosing a password.

Impact

An attacker who gains access to the user's email inbox could read the emailed password, log in, change it and lock the legitimate user out, achieving full account takeover.

What the attacker needed

Account created via Google OAuth; attacker can read the user's email inbox

The fix

The system should not generate or email passwords for OAuth accounts; if password login is wanted later, it should offer a one-time set-password link and never send credentials by email.

How it was found

  1. Sign up through Google OAuth and complete onboarding.
  2. Wait for an automated email titled like 'Your Login Credentials'.
  3. Note that the email contains the account email and a plaintext password.
  4. Log in on the standard username-password page using that password.
  5. Change the password to take full control of the 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.

OAuth is a way to sign in to a site using another account, such as Google, so the site never needs your password. Here the site quietly created a password anyway and sent it to the user's email in readable text. If someone got into that email inbox, they could use the password to log in and take over the account.

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.

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.