Skip to content
Business logic Write-up Beginner

Price Manipulation Vulnerability: How a small logic flaw turned orders into ₹1 checkouts

The website allowed a negative quantity value to be submitted, which made the product price negative and reduced the cart total to almost nothing. An attacker could order items for a token amount.

xormium Follow

Published on xormium.medium.com

Some bug — hunting days are quiet. You scan, you test, you hope for something interesting, but nothing clicks.

Xormium, on xormium.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 that the quantity was a positive number, trusting the value sent by the browser.

Impact

An attacker could purchase items for a token amount, causing financial loss to the business.

What the attacker needed

A user account; ability to intercept HTTP requests

The fix

The server should validate that quantities are positive and recalculate totals on the backend.

How it was found

  1. Log in and add items to the cart.
  2. Intercept the request that changes quantity.
  3. Modify the quantity parameter to a negative value and forward it.
  4. Observe the cart total drop to a very low amount.

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 shop online, the website usually checks what you type before sending it to the server. Here, the server did not check if the quantity was a sensible number, so a negative quantity was accepted. That made the price go negative and lowered the total, letting someone 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 xormium

View all

2 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.