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.
Published on medium.com
Hello Everyone , My Name is Mian Hammad, And today I’m sharing Unlimited Coupon Abuse.
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
- Add a product to the cart.
- Apply a percentage coupon to reduce the price.
- Apply a fixed-value coupon on top to reduce the price further.
- Open a new session or create a throwaway account.
- 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.