One Request, Two Parameters, Zero Validation
The purchase request contained two parameters, value and amount, that the server did not validate. By tampering with both, an attacker could buy products at a much lower price than intended, causing direct financial loss to the platform.
While my friend and I were exploring the store section of test.com, we started intercepting requests during the product purchase flow. One request got all our attention — the request responsible for initiating a purchase request which contained two interesting parameters value and amount.
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 buy any product in the store for much less than its real price, causing direct financial loss to the platform.
What the attacker needed
Access to the store purchase flow; ability to intercept and modify requests
How it was found
- Intercept the request that initiates a purchase in the store.
- Modify the value parameter to an arbitrary number and observe the charge.
- Modify the amount parameter to a negative value while also tampering with value.
- Submit the request and complete the purchase at a reduced price.
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 request to the shop's server with details like the price. If the server trusts the price sent by the browser instead of checking it against its own records, a user can change the price before sending. Here, the server accepted a changed price and charged far less than the real cost.
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.