The Sweetest Hack: How a ₹100 Cake Discount Gave Me a Panic Att
The cake shop's checkout accepted price and total values sent from the browser without checking them against the server's own price data. An attacker could edit those values and pay less than the real price for an order.
One fine evening, me and my wife, after enjoying a glorious plate of biryani (and promising to cut sugar for the month), decided to order our “last cake” for a while. It was a small celebration, and we convinced ourselves that one last bite of sweetness wouldn’t hurt.
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
An attacker could pay less than the listed price for an order, causing a small financial loss to the shop.
What the attacker needed
Ability to place an order on the site; browser developer tools
The fix
The server should ignore client-sent prices, look up the real price from its database, and reject requests where the total does not match.
How it was found
- Open the browser developer tools and go to the Network tab.
- Place an order and find the checkout request containing the order details.
- Change the price and total values in the request payload.
- Replay the request and complete payment at the lower amount.
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 buy something online, your browser sends the order details to the shop's server. Here, the server trusted the price that the browser sent instead of looking up the real price itself. So someone could change the number in the request and pay a smaller amount.
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.