Endless Cashback Glitch:How I Unlocked Unlimited Free Orders with One Simple Trick
The order cancellation flow failed to revoke promotional credit that was granted when an order was placed. An attacker could repeatedly place and cancel orders to accumulate unlimited credit, which could be used for free purchases.
Published on strangerwhite.medium.com
Hey hardworking people 👋 Welcome back to my Finding Bugs Without Tools series. Today, we’re diving into a logic flaw in the order processing flow that essentially gives out free credit (money), leading to unlimited financial loss for an e-commerce platform.
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 order cancellation process did not include a step to revoke the promotional credit that was granted at order placement.
Impact
Attackers could convert the accumulated wallet credit into real purchases, causing direct financial loss to the platform, and the low skill barrier could lead to widespread abuse.
What the attacker needed
A user account; ability to place orders with COD or eligible payment
How it was found
- Log in to your account.
- Add any item to the cart.
- Place an order using Cash on Delivery or another eligible payment method.
- Observe the wallet balance increase by the promotional amount.
- Immediately cancel the order.
- Check the wallet balance; the credit remains, and repeating steps 2–5 accumulates more credit.
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.
When you place an order, the site gives you a small bonus credit. Normally, if you cancel the order, that bonus should be taken back. Here, the site forgot to take it back, so you could keep the bonus and repeat the process to get free money for shopping.
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.