How I Discovered a Business Logic Vulnerability That Bypassed a P
The backend trusted a client-supplied boolean parameter when deciding whether to activate a paid plan, so a free user could create a fourth model beyond the free-tier limit without paying. An attacker could bypass subscription enforcement and use premium functionality for free.
Published on medium.com
My name is Montaser Mohsen, and I’m a web security researcher with a strong interest in web application security, particularly business logic flaws, authorization issues, and vulnerabilities that can have a real-world business impact.
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 backend trusted a client-controlled parameter (activatePaidPlan) instead of checking the user's actual subscription status and quota in its own records.
Impact
An attacker could bypass subscription enforcement, access premium functionality without paying, create unlimited models, consume platform resources, and cause direct financial losses; no sensitive user data was exposed.
What the attacker needed
A free account; ability to intercept and modify requests
The fix
Subscription validation should be enforced entirely on the backend, ignoring client-supplied subscription parameters and checking the user's status and quota from the database.
How it was found
- Create models until the free-tier limit of three is reached.
- Intercept the request sent when attempting to create a fourth model.
- Change the activatePaidPlan value from true to false.
- Forward the request and observe that a fourth model is created without upgrading.
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.
A website has a free plan that lets you make three items, and a paid plan for more. The server was asking the browser 'should I turn on the paid plan?' and believing the answer. By changing that answer to 'no', a free user could keep making items without paying.
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.