Skip to content
Account takeover Write-up Beginner

Quick & Easy $100 Bug That You Can Find In 5 minutes

The registration API response included the email verification code, so an attacker could verify any unregistered email address without access to its inbox. This allowed creating accounts on behalf of victims, potentially leading to account takeover if the platform was used as an SSO service.

levelup.gitconnected.com

Published on levelup.gitconnected.com

Discover how I was able to find multiple cross-site scripting attacks by bypassing uppercase-only restriction and shortening the payload in 4 XSSs With A Simple & Optimized Payload — Shortening Uppercase Bypass.

Hamza Avvan, on levelup.gitconnected.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 registration endpoint returned the verification code in its response instead of only sending it by email.

Impact

An attacker could verify any unregistered email address without user interaction, potentially taking over accounts or authenticating via SSO on other subdomains.

What the attacker needed

Target uses email verification; attacker can register an account

The fix

The registration response should not include the verification code; it should only be sent to the email address.

How it was found

  1. Register an account with your email.
  2. Check the server response for a leaked verification code.
  3. Copy the verification URL from the email.
  4. Search for the leaked code within the verification URL.
  5. If the code matches, the verification bypass works.

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 usually sends a code to your email to prove the address is yours. Here, the site also put that secret code in the reply it sent back to the browser, so anyone could read it and finish verification for an email they do not own.

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.