Skip to content
Business logic Write-up Intermediate

When the Price Goes Wrong: $9K Bounty from 2 Price Manipulation Bugs.

The checkout process blindly merged user-supplied metadata into cart item properties, including price fields, allowing an attacker to set a negative price and obtain items for free. A second bug in a buy-one-get-one-free offer let an attacker inject a price field to reduce the cart total.

r00t_ak Follow

Published on medium.com

In this post, I’ll walk you through two price manipulation vulnerabilities I discovered in a public bug bounty program. These issues allowed me to purchase any item on the website for free — yes, really.

Reacher Ak, 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

The backend blindly merged user-supplied metadata into cart item properties, including price-related fields, without validating or sanitising them.

Impact

An attacker could purchase any item for free by manipulating the price to a negative value; a second bug allowed reducing the cart total via a free-item offer.

What the attacker needed

No authentication required; ability to intercept and modify requests

The fix

The issues were patched within a day, likely by validating and sanitising user-supplied metadata before merging it into cart item properties.

How it was found

  1. Intercept the request that modifies cart item data.
  2. Add meta- prefixed fields to the JSON body, including price-related fields with negative values.
  3. Send the request and observe the metadata injected into the cart response.
  4. Proceed to checkout and see the price updated to a negative value, allowing a free order.

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 stores details about your cart, like the price of each item. The site trusted extra information sent by the user and used it to set the price, so a malicious user could change the price to a negative number and get items for free.

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.

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.