How I Exploited a Business Logic Flaw to Slash Product Prices in
The checkout flow accepted a client-supplied price parameter, allowing an attacker to change the amount paid for a product. The attacker could purchase items at a lower price than intended.
Published on medium.com
أَوَلَ� ْ يَعْلَ� ُوا أَنَّ اللَّهَ يَبْسُطُ الرِّزْقَ لِ� َن يَشَاءُ وَيَقْدِرُ ۚ إِنَّ فِي ذَٰلِكَ لَآيَاتٍ لِّقَوْ� ٍ يُؤْ� ِنُونَ [ الز� ر: 52]
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 trusted the client-supplied price parameter without validating it against the actual product price.
Impact
An attacker could buy products at a reduced price, causing financial loss to the store.
What the attacker needed
A user account; ability to intercept HTTP requests
The fix
The server should validate the price and other critical values on the server side, not relying on client input.
How it was found
- Add a product to the cart and go to checkout.
- Select PayPal as the payment method and intercept the request.
- Modify the price parameter to a lower value.
- Forward the request and complete payment at the manipulated 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, the price is usually sent from your browser to the server. If the server trusts that price without checking it, you can change it to whatever you want. This report shows someone doing exactly that to pay less for a product.
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.