Skip to content
Business logic Write-up Beginner

How to Bypass Phone Number Validation for Unlimited Free Trials

The free trial system only checked phone number format on the client side, so an attacker could intercept the request and alter the number to bypass the one-trial-per-number limit. This allowed unlimited free trials and fake account creation.

medium.com

Published on medium.com

Imagine signing up for a free trial over and over with the same phone number. It’s not just a dream — I found a flaw in a Free Trial registration system that makes it possible.

Yousseff, 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 server trusted the client-side validation and did not re-validate or normalise the phone number before checking if it had already been used.

Impact

Attackers could obtain unlimited free trials, causing financial loss and enabling mass fake account creation, potentially automated by bots.

What the attacker needed

Access to the free trial page; ability to intercept HTTP requests (e.g., Burp Suite); a phone number to receive OTP

The fix

The fix should move validation to the server, normalise phone numbers, block repeats, and limit requests.

How it was found

  1. Go to the Free Trial page and enter a new phone number.
  2. Click 'Send Verification Code' to pass client-side validation.
  3. Use Burp Suite to intercept the request before it reaches the server.
  4. Change the phone number to one already used, altering its format.
  5. Send the request; the server sends an OTP to the old number.
  6. Enter the code to get the trial and repeat.

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, your browser checks that the phone number looks right, but the server doesn't double-check. By using a tool to change the number after the browser check, you can trick the server into giving you another free trial. This means the company loses money and one person can make many fake accounts.

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.