From a Duplicate to a Bounty: How Digging Deeper Led to a More Im
The application allowed a workspace to request multiple Stripe Checkout sessions for a trial without invalidating previous ones. An attacker could complete several checkouts to stack trials, and after the trial expired, the backend still granted premium features despite the API marking the subscription as expired.
Published on medium.com
While testing a subscription system, I discovered two business logic vulnerabilities related to the Business trial workflow. The first issue turned out to be a duplicate, but instead of moving on, I continued investigating the same functionality.
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 application did not invalidate previously generated checkout sessions and failed to synchronise subscription state between frontend and backend.
Impact
Any user could repeatedly reactivate the Business trial and continue using premium Business features without ever purchasing a subscription, and after trial expiry, premium features remained accessible despite the API marking the subscription as expired.
What the attacker needed
A free account; access to trial endpoint
How it was found
- Generate multiple trial checkout sessions.
- Save every Stripe Checkout URL.
- Activate the trial using the first checkout session.
- Return to one of the previously generated checkout URLs.
- Complete the checkout process again.
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 trial is a free period to use paid features. The website let a user start the trial many times by creating several payment checkout links before finishing any. Even after the trial ended, the system still gave premium access because it did not properly update the subscription status.
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.