Skip to content
Business logic Write-up Intermediate

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.

Mahmoudelsadany Follow

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.

Mahmoudelsadany, 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

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

  1. Generate multiple trial checkout sessions.
  2. Save every Stripe Checkout URL.
  3. Activate the trial using the first checkout session.
  4. Return to one of the previously generated checkout URLs.
  5. 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.

More by Mahmoudelsadany

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.