Skip to content
Business logic Write-up Beginner

Revealing a Critical Vulnerability: The Price Manipulation Flaw

The checkout API accepted client-supplied price parameters without server-side validation, allowing an attacker to change the amount paid. An attacker could buy a product for a fraction of its listed price.

pawarpushpak36 Follow

Published on medium.com

In the vibrant city of Pune, renowned for its rich cultural heritage and bustling streets, I embarked on a quest to procure an air purifier for myself. Little did I know that my journey would lead me to uncovering a critical vulnerability on a popular Indian startup’s website.

Pushpak Pawar, 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 trusted price values sent by the client instead of recalculating them from its own database.

Impact

An attacker could reduce the price of a product from Rs. 49000.00 to 1 INR, causing financial loss to the company.

What the attacker needed

A user account on the website; ability to intercept HTTP requests

The fix

The server should validate prices on the server-side, cross-verify with the database, and not rely on pricing information sent via HTTP requests.

How it was found

  1. Visit the website and select a product for purchase.
  2. Fill in the necessary details for the transaction.
  3. Intercept the request using Burp Suite.
  4. Modify parameters such as “amount,” “price,” and “accPrice” to lower values.
  5. Forward the manipulated request.
  6. Complete the checkout process.

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 should be checked by the shop's computer, not trusted from your browser. Here, the website believed whatever price the browser sent, so someone could edit the request and 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 pawarpushpak36

View all

1 more disclosed report, 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.