Breaking the Checkout: Price Manipulation
The checkout API trusted a client-supplied price in the request body, so an attacker could change the amount from $329.88 to $1.88 and the server generated a valid PayPal checkout session for the lower amount.
medium.com
Published on medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 did not recalculate the price from trusted product data and instead used the amount supplied in the client request.
Impact
An attacker could potentially purchase a subscription for a much lower price than intended, causing financial loss to the business.
What the attacker needed
Access to the checkout flow; ability to intercept HTTP requests
The fix
The server should calculate the final price from product or plan details and ignore any client-supplied amount.
How it was found
- Open the product checkout page.
- Intercept the checkout request in Burp Suite.
- Change the amount in the request body from 329.88 to 1.88.
- Forward the request and observe a success response with a PayPal redirect URL.
- Follow the redirect and see the PayPal page showing 1.88 USD.
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 should always calculate the final price on its own server, not trust what your browser sends. Here, the server accepted a price sent by the browser, so someone could pay much less than the real 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.