Skip to content
Business logic Write-up Beginner

How I Found an Email Verification Bypass on an AI Freelance Platform

The registration API returned a JWT that was also accepted by the email verification endpoint, so an attacker could verify any account without accessing the email inbox. This allowed bypassing email ownership verification.

infosecwriteups.com

Published on infosecwriteups.com

A few weeks ago, I was browsing LinkedIn looking for freelance opportunities when I came across an AI-powered platform looking for freelancers. The platform looked interesting, so I decided to create an account and see how everything worked.

Hangga Aji Sayekti, on infosecwriteups.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 application reused the same JWT for both registration response and email verification, so the token was not secret to the user.

Impact

An attacker could verify accounts without access to the registered email, undermining any feature that relies on verified email ownership, though the actual impact depends on how the platform uses verified status.

What the attacker needed

A free account; ability to register; Chrome DevTools or similar

The fix

The verification token should be generated separately and sent only to the user's email, not exposed in the registration response.

How it was found

  1. Register a new account while watching network traffic in Chrome DevTools.
  2. Observe the registration response contains a JWT token.
  3. Note that the verification email contains a URL with the same JWT token.
  4. Register another account and copy the JWT from the registration response.
  5. Manually construct the verification URL with that JWT and visit it.
  6. The account is verified without opening the verification email.

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 verification link to your email to prove you own that address. Here, the site also gave the same secret token in the sign-up response, so anyone could verify an account without ever checking the email.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.