Skip to content
Account takeover Write-up Beginner

Account Takeover via Email Verification Logic Flaw

The email verification flow accepted an old verification link from the user's primary email to verify any newly added secondary email address. An attacker could add an arbitrary email, verify it without inbox access, set it as the primary login email, and take over that account.

medium.com

Published on medium.com

In this post, I’ll walk you through an interesting vulnerability I discovered in a web application — a logic flaw that allowed me to take over any email address, including support and CEO emails, without accessing their inbox or verification links.

Rolextital, 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 verification token was not bound to the specific email address it was issued for, so any valid token verified all pending emails on the account.

Impact

An attacker could verify and take control of login for any email address, including support and CEO addresses, without access to the target inbox.

What the attacker needed

A free account; an old verification link from signup

The fix

The company patched the vulnerability after responsible disclosure.

How it was found

  1. Log in to the account with its primary email address.
  2. Add a secondary email address; the app marks it inactive and sends a verification email.
  3. Reuse the old verification link from the original signup email.
  4. Observe that all added emails, including the inactive one, become verified.
  5. Switch the newly verified email to primary and log in with it.

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 add an email address to an account, the site usually sends a link to that address to prove you own it. Here, the site accepted a link that was meant for a different, older email address and used it to confirm the new one. That meant someone could claim an email address they did not control and then log in as it.

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.