A Business Logic Bug That Let Me Remove Platform Fees During Checkout
The checkout system trusted a client-supplied flag to decide whether a convenience fee was applied to the cart. By changing that flag from true to false, an attacker could remove the fee and place an order at the lower price.
Published on medium.com
E-commerce platforms often implement small convenience fees to cover operational costs such as logistics processing, payment handling, or platform services. These fees are typically applied automatically during checkout and are expected to be enforced server-side.
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 server used a client-controlled flag to decide whether to apply the convenience fee instead of calculating charges server-side.
Impact
An attacker could remove the convenience fee and complete checkout at a lower price, as demonstrated with both UPI and cash on delivery.
What the attacker needed
A user account; ability to intercept HTTP requests; items in the cart
The fix
The server should calculate and enforce all pricing and fees server-side, ignoring any client-supplied flag.
How it was found
- Intercept the reward-point application request and note the header controlling cart charges.
- Change the header value from true to false and forward the request.
- Observe that the convenience fee disappears from the cart total.
- Repeat the same header change on the address confirmation request.
- For cash on delivery, change the payload field applyCartCharges to false and place the order.
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, the website's server should calculate the final price. Here, the website asked the user's browser whether to add a small fee, and the browser could simply say no. That let a shopper pay less than the intended price.
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.