Skip to content
Business logic Write-up Beginner

#BugBounty — “How I was able to shop for free!”- Payment Price Manipulation

The payment request included a client-controlled amount parameter that the server did not validate against the actual product price. An attacker could tamper with this amount to pay a minimal sum for any product.

Avinash Jain Follow

Published on medium.com

{{media:0}}

Avinash Jain (@logicbomb_1), on medium.com

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 did not validate the price sent in the HTTP request against the actual product price stored in the database.

Impact

An attacker could buy any product at a minimal cost, causing financial loss to the shop.

What the attacker needed

Ability to intercept HTTP requests; a product to purchase

The fix

The server should validate the price by retrieving it from the database and comparing it with the submitted amount, and ideally only send product IDs in requests.

How it was found

  1. Capture the payment request before it reaches the payment gateway.
  2. Note the amount parameter containing the price to be paid.
  3. Tamper the price value to a lower amount and forward the request.
  4. Complete the payment and place the order successfully.

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 you pay should be decided by the shop's server, not by your browser. Here, the price was sent in the request and the server trusted it, so changing it let the attacker pay almost nothing.

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.

More by Avinash Jain

View all

29 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.