How I was able to buy t-shirt for €1 — Payment Price Manipulation
The web shop's checkout request included price fields (subtotal, shipping, total) that the client could edit. By setting most price fields to zero and the subtotal and total to €1, the author bought a product for €1 instead of its real price.
Published on medium.com
{{media:0}}
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 server accepted client-supplied price and total fields from the checkout request without recalculating them from the product catalogue.
Impact
An attacker could buy products at an arbitrary low price, here €1, causing financial loss to the shop.
What the attacker needed
A shopper account on the site; ability to intercept and edit HTTP requests
How it was found
- Add a product to the cart and capture the request.
- Increment the quantity by one unit and capture the request again.
- Notice price parameters such as subtotal, shipping and total in the request.
- Change all price parameters to 0.00 except sub_total and total, which are set to €1.
- Forward the request, get redirected to the payment page, pay and confirm 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, your browser sends the order details to the shop's server. Here the server trusted the price numbers sent by the browser instead of looking up the real price itself. So the buyer could simply rewrite the price before the order was placed.
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.