Skip to content
Business logic Write-up Intermediate

Payment Bypass That Let Me Get a Premium Course for $0 [Business Logic Flaw] P2

A group-discount checkout flow returned a URL to an order-processing endpoint that could be reached directly, and a discount code from the confirmation email reduced the total to zero. An attacker could obtain a premium course without paying.

wanqais007 Follow

Published on medium.com

Bug bounty hunting always starts the same way for me: I open the target, explore the visible features, and click around like a normal user. Sometimes the most interesting bugs don’t hide deep inside the application.

El Professor Qais, 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 discount code was not tied to a genuine bulk order and the order-processing endpoint could be reached without completing the intended purchase flow.

Impact

A premium course could be acquired for free, and the account showed the item as paid.

What the attacker needed

Access to the group-discount feature; an email address to receive the code; ability to intercept web traffic

How it was found

  1. Open the group-discount feature on the front page and add more than five premium products.
  2. Intercept the form traffic and inspect the responses for order-processing endpoints.
  3. Open the returned URLs and follow the purchase flow.
  4. Use the discount code received by email at checkout, which brings the total to zero.
  5. Complete checkout without entering card details and confirm the purchase in the account history.

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 business logic flaw means the website follows its own rules in a way the designers did not intend. Here, a discount meant for group purchases could be used on a normal checkout, and a step in the buying process could be opened directly, so the price dropped to nothing and the order still completed.

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 wanqais007

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.