How I Bought a $1400 Jacket for Free Using a Business Logic Flaw
An e-commerce checkout only validated the most recently applied coupon and did not track earlier discounts, so applying two coupons in sequence recalculated the total incorrectly. An attacker could stack a new-customer coupon and a newsletter coupon to reduce a high-value item to zero and place the order without payment.
medium.com
Published on medium.com
Business logic flaws are some of the most dangerous yet overlooked vulnerabilities in modern web applications. They don’t rely on complex payloads or advanced tools—just understanding how the application is supposed to work and finding where it doesn’t.
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
Impact
This could lead to complete revenue loss on high-value products and abuse by automated scripts, and the text states the order was confirmed with no payment required.
What the attacker needed
A standard customer account; access to the newsletter signup
The fix
The application should reject multiple coupons, validate whether discounts exceed the product value, or restrict coupon combinations.
How it was found
- Log in with a standard customer account and add the leather jacket to the cart.
- Apply the new-customer coupon at checkout.
- Subscribe to the newsletter to receive a signup coupon.
- Apply the signup coupon after the first coupon.
- Observe that the cart total is recalculated to zero.
- Place the order and receive confirmation without payment.
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 is a mistake in how a website's rules work, rather than a technical bug in its code. Here, the checkout was supposed to allow only one discount coupon, but it forgot about the first coupon when the second one was added, so the price dropped to zero. The attacker simply used the site the way it was meant to be used, but in an order the developers did not expect.
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.