Skip to content
Access control Write-up Intermediate

Discovered a Unique Email Verification Bypass

An unverified account could perform actions that should require email verification, such as changing account details or inviting users, because the API returned an edit-enabled flag for all accounts. An attacker could create accounts without verifying their email and still use account management features.

mo9khu93r Follow

Published on mo9khu93r.medium.com

Email verification is a fundamental security measure that ensures only verified users access their accounts and interact with essential features. However, during a recent bug bounty effort, I discovered a vulnerability on Example.com that allowed users to bypass email verification and perform unauthorized actions on…

viperx9, on mo9khu93r.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 API set the edit-enabled flag to true for all accounts, including unverified ones, instead of only after email verification.

Impact

Unverified users could perform account actions such as changing settings or inviting users, and attackers could create multiple accounts without legitimate verification.

What the attacker needed

Ability to create an account; ability to intercept HTTP requests; a second verified account

The fix

The site should set the edit-enabled flag to false until email verification is complete and add backend validation for actions that require verification.

How it was found

  1. Sign up for an account but do not verify the email.
  2. Log in with the unverified account and intercept the traffic.
  3. Capture the cookie and CSRF token from the verify-email request.
  4. Create and verify a second account, then log in with it.
  5. Intercept a request to change account details or invite users.
  6. Replace the cookie and CSRF token with those from the unverified account and replay the request.

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, a site usually sends an email link to prove the address is yours. This site marked every account as allowed to edit settings, even before that proof was done. So someone could skip the email step and still change account details or invite other people.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by mo9khu93r

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.