Skip to content
Business logic Write-up Beginner

How I Found a Business Logic Vulnerability in SaaS applicationThat Allowed Unlimited Trial…

The subscription creation endpoint accepted a client-supplied trial duration parameter, so any user could set their free trial to an arbitrary length instead of the standard 30 days. An attacker could extend their trial period by modifying a single value in the request.

sreejihkn43073 Follow

Published on medium.com

Hey everyone, I’m Sreejith, a security researcher. In this writeup I’ll walk you through how I discovered a business logic vulnerability in widely used online PDF editing and form-filling platform that allowed any user to manipulate their trial period duration from the standard 30 days to any arbitrary value — I…

Sreejihkn, 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 a client-supplied value for the trial duration instead of computing it from the plan configuration on the server side.

Impact

Any user could extend their trial from 30 days to an arbitrary value, breaking the core business rule for subscription-based SaaS.

What the attacker needed

A free account; ability to intercept HTTP requests

The fix

The server should compute the trial duration from the plan configuration rather than accepting it from the client.

How it was found

  1. Start the normal free trial signup flow.
  2. Intercept the subscription creation request with a proxy.
  3. Find the trial duration parameter in the JSON body.
  4. Change the trial duration value to a larger number.
  5. Forward the request and observe the successful subscription creation.

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 for a free trial, the website usually decides how long it lasts. Here, the website asked your browser how many days you wanted and simply believed the answer. By changing that number before it was sent, a user could give themselves a much longer free trial.

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.

More by sreejihkn43073

View all

1 more disclosed report, best first.

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.