Bug Bounty Response Manipulation Leading To Payment Bypass
The server response containing the payment amount could be modified by the client before being sent to the payment gateway, allowing an attacker to set the amount to zero and bypass payment. This enabled purchasing items for free.
Published on infosecwriteups.com
It’s me Krishnadev P Melevila, After my first account takeover blog, I am back with a new Response manipulation bug.
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 payment amount was taken from a client-side response without server-side validation, allowing tampering.
Impact
An attacker could buy all items for free, causing financial loss to the company.
What the attacker needed
Ability to intercept HTTP responses
How it was found
- Choose any package and click on buy now.
- Intercept the response from the server.
- Change the amount_to_pay parameter value to 0 in the response.
- Forward the request to the browser.
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 website's server, which replies with details like the price. Normally you can't change that reply, but here the reply could be altered before it reached the payment system. By changing the price to zero, the attacker could get items without paying.
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.