How I Bypassed Premium Subscription & Escalated Privileges Using
The API accepted a client-supplied license change to the Enterprise plan without server-side validation, and the backend then granted Enterprise privileges during a payment grace period even though the payment failed. An attacker could upgrade a free account to the highest tier at zero cost, exceeding user and storage limits.
Published on medium.com
Business logic flaws are arguably some of the most fascinating vulnerabilities in the bug bounty landscape. Unlike standard injection flaws, they cannot be detected by automated scanners; they require a deep understanding of how an application’s architecture and backend processes interact.
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 server accepted client-supplied license parameters without validating them against the user's actual entitlements, and the grace-period logic granted premium features before confirming a successful payment.
Impact
An attacker could bypass the paywall and gain Enterprise-tier privileges, including higher user and storage limits, at zero cost, and could automate this to create many such accounts.
What the attacker needed
A free account; ability to intercept and modify API requests; a virtual credit card with $0 balance
The fix
The server should validate license changes against the user's actual entitlements and only grant premium features after a successful payment authorization, not during a grace period for new upgrades.
How it was found
- Intercept the PUT request to /api/update-license when updating the plan.
- Modify the payload to request the Enterprise plan with parameters like license, plan_group, and preview.
- Add a virtual credit card with a $0 balance as the billing method.
- Observe that the payment fails but the Enterprise plan is temporarily activated due to the grace period.
- Verify the privilege escalation by adding more users than the free plan allows and checking the storage quota.
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.
The website trusted the user's browser to say which subscription plan they wanted, and the server changed the plan without checking if the user was allowed. Then, when the payment failed, the system still gave the paid features for a short time. This let someone get the most expensive plan for free.
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.