Skip to content
Account takeover Write-up Intermediate

Critical Full Organization Takeover via Email Verification Bypass

The email verification endpoint trusted the email address in the URL without checking that the token was issued for that address. An attacker could change their unverified account's email to a corporate address, then reuse the original verification link with the new email to verify the account and gain admin access to all organisations under that domain.

0xEsso Follow

Published on medium.com

Hey, what’s up everyone! I’m Eslam Gamal, better known online as 0xEsso.

Eslam Gamal, 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

The verification endpoint did not bind the token to the email address it was issued for, and the application allowed changing the email on an unverified account without re-verification.

Impact

An attacker could gain full admin access to every organisation under the targeted domain, exposing thousands of customers' data, chats, files, invoices, and API keys.

What the attacker needed

A free account; ability to intercept and modify requests; knowledge of a corporate email address

The fix

The verification endpoint should validate that the token was issued for the specific email address, and changing email on an unverified account should require re-verification.

How it was found

  1. Sign up with a personal email address, leaving the account unverified.
  2. Capture the verification link containing the account ID, token, and email.
  3. While still unverified, send a request to change the account email to a corporate address.
  4. Modify the original verification link by replacing the email parameter with the corporate address.
  5. Visit the modified link to verify the account.
  6. Log in and access all organisations under the corporate domain with admin privileges.

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, the site sends a link to prove you own your email. This site's link included the email address, but the server didn't check that the link was actually meant for that address. By changing the email on the account and then editing the link, the attacker could verify an account with a company email and get admin rights.

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.