Skip to content
Account takeover Write-up Beginner

Email Verification Bypass Worth $$$

The email verification link contained a token that was just the base64 encoding of the user's email address, so an attacker could craft a verification link for any email without access to that inbox. This allowed registering an account with an arbitrary email, such as a company address, and verifying it to log in.

the_unluck_guy Follow

Published on vijetareigns.medium.com

Hello Geeks, Hope you guys are hacking well. In this blog i am going to share a small story of bypassing email verification.

the_unlucky_guy, on vijetareigns.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 predictable because it was derived directly from the email address using base64 encoding instead of a random, server-side secret.

Impact

An attacker could verify an account for any email address without access to that inbox, potentially impersonating the owner of that address on the application.

What the attacker needed

Access to the registration page; ability to receive one verification email; knowledge of the target email address

The fix

The verification token should be replaced with a random, unpredictable value that is stored server-side and tied to the pending registration, rather than being derived from the email address.

How it was found

  1. Find the registration page on the subdomain.
  2. Create an account with a random email address.
  3. Receive the verification email and inspect the verification link.
  4. Decode the token parameter and notice it is the base64 encoding of the email.
  5. Register a new account using an email address you do not control.
  6. Craft a verification link using the base64-encoded email and visit it to verify the 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.

When you sign up, a website often sends a link to your email to prove you own it. Here, the secret code in that link was simply your email address scrambled in a common format (base64), which anyone can unscramble. So an attacker could make a valid verification link for any email address, even one they do not control.

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.

More by the_unluck_guy

View all

6 more disclosed reports, best first.

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.