Price Manipulation in Payment Gateway / Shopping Cart
The shopping cart sent order details, including the price, as JSON to the backend, which accepted the client-supplied values without checking them against the real product price. An attacker could intercept the checkout request and lower the amount so a high-value course was bought for the payment gateway's minimum, causing financial loss.
medium.com
Published on medium.com
My name is Sebastian Vargas Paez, an independent Colombian cybersecurity researcher who usually participates in VDP and Bug Bounty programs on platforms such as HackerOne and YesWeHack.
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 backend trusted client-supplied price fields in the checkout JSON instead of recalculating the order total from server-side product data.
Impact
An attacker could obtain paid courses for the gateway's minimum amount, causing financial loss and fraud, though the price could not go below the gateway's 1,500 COP floor.
What the attacker needed
A user account on the platform; ability to intercept HTTP traffic; a valid payment method
The fix
The backend should recalculate the order total from its own stored product prices and ignore any price values sent by the client.
How it was found
- Log in, open the product catalogue and pick a product.
- Go to the shopping cart and start checkout.
- Intercept the HTTP request with Burp Suite.
- Change the amount and selling price fields to the minimum accepted value.
- Forward the request and finish the payment.
- Return to the app and confirm the course is now accessible.
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 believed whatever price the browser sent instead of looking up the real price itself. So someone could edit the price in the request and pay almost nothing for an expensive course.
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.