Skip to content
Account takeover Write-up Intermediate

Zero Click Account Takeover via Secondary Email Feature

The application allowed adding a secondary email without verifying that email, and the confirmation link logged the user in without credentials. An attacker could add a victim's email, wait for the victim to reset their password, then use the confirmation link to access the victim's account.

medium.com

Published on medium.com

I’d like to share my experience in finding account takeover bug which might be a good attack scenario if you come across a similar app.

AWesome, 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 the secondary email was not verified as belonging to the account owner, and the confirmation link authenticated the user without requiring credentials.

Impact

An attacker could take over a victim's account without any action from the victim beyond trying to register or reset their password.

What the attacker needed

Attacker has an account; victim's email is not yet registered; victim attempts to register or reset password

How it was found

  1. The attacker adds the victim's email address as a secondary email via the account settings feature
  2. The attacker receives an email confirmation link
  3. The victim attempts to register for an account using their email address but finds that their email is already associated with an existing account
  4. The victim uses the password reset feature to regain access to the account
  5. After resetting their password, the victim successfully logs into their account
  6. The attacker clicks the confirmation link they initially received, granting them direct access to the victim’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 app lets you add a backup email address. The app never checked that the backup email actually belonged to the person adding it, and clicking the confirmation link logged you straight in. So an attacker could add someone else's email, and later use that link to get into that person's 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.