Buy Any Product for Free via Price Tampering
The backend trusted the frontend's claim that payment was legitimate, so an attacker could tamper with a single piece of data in an API request to make an order without paying. The author tested with a cheap item and the order went through without payment.
Published on medium.com
Imagine adding a shiny new gadget to your online cart, hitting “Buy Now,” and getting it delivered — without spending a dime. Sounds like a dream, right?
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 obtain products without paying, potentially emptying the store's shelves.
What the attacker needed
A user account on the store; ability to intercept and modify API requests
The fix
The backend should verify payments properly with the payment gateway rather than trusting the frontend; the text says the bug was fixed by adding strict payment checks.
How it was found
- Use your own account to avoid trouble.
- Pick a cheap item, like a $5 phone case.
- Tweak a single piece of data in an API request during checkout.
- Observe the order going through 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.
When you buy something online, your browser sends a message to the store's server saying what you want and whether you paid. The server should check with the payment provider that the money actually arrived. Here, the server simply believed the browser's message, so someone could change that message to say 'paid' and get the item for free.
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.