Skip to content
Business logic Write-up Beginner

Unlimited Coupon Abuse → A Critical Business Logic Flaw

The checkout flow allowed multiple discount coupons to be stacked on one order and the same coupon codes to be reused indefinitely across sessions and accounts, with no server-side usage limits. An attacker could automate this to obtain unlimited discounts, causing direct financial loss.

MianHammadx0root Follow

Published on medium.com

Hello Everyone , My Name is Mian Hammad, And today I’m sharing Unlimited Coupon Abuse.

Mian Hammad, 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

The backend did not enforce any server-side limits on coupon usage, such as a maximum number per order, a per-user redemption cap, or cross-session validation of prior redemptions.

Impact

An attacker could automate unlimited coupon reuse and stacking across accounts, causing direct and unbounded financial loss, with no rate limiting or detection to stop it.

What the attacker needed

A free account; ability to create new accounts; no CAPTCHA or rate limiting

The fix

Coupon validation should be enforced server-side, tied to persistent user identity, with limits on stacking and per-user redemption counts.

How it was found

  1. Add a product to the cart.
  2. Apply a percentage coupon to reduce the price.
  3. Apply a fixed-value coupon on top to reduce the price further.
  4. Open a new session or create a throwaway account.
  5. Repeat the coupon applications with the same codes and complete checkout.

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 coupon is a code that gives money off an order. The website checked the code was valid but never remembered that you had already used it, so you could use the same code again and again, and combine several codes on one order. An attacker could write a simple script to do this endlessly and buy products very cheaply.

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 MianHammadx0root

View all

2 more disclosed reports, 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.