Skip to content
Business logic Write-up Intermediate

The $2,000 Bug That Changed My Life: How a Tiny URL Parameter Broke Web-Store Pricing !!

A URL parameter controlling a product feature set could be set to a negative value, causing the price calculation to default to zero. An attacker could then purchase a paid product for free.

Helmiriahi Follow

Published on infosecwriteups.com

https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F12908384644153191582&displayname=Tenor&url=https%3A%2F%2Ftenor.com%2Fview%2Fsung-jin-woo-gif-12908384644153191582&image=https%3A%2F%2Fmedia.tenor.com%2FsyPLcTrbrJ4AAAAN%2Fsung-jin-woo.png&type=text%2Fhtml&schema=tenor

Helmiriahi, on infosecwriteups.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 `id_product_feature_set` parameter and used a fallback of zero when the lookup failed, leading to a zero total price.

Impact

An attacker could purchase a paid product for free, as the price was reduced to zero.

What the attacker needed

Access to the web store; ability to intercept and modify requests

How it was found

  1. On a product page, click the price to see a request that returns an ID and the price.
  2. Attempt to tamper with the price parameter directly; this does not work.
  3. Proceed through payment steps until just before the final payment API call.
  4. Notice another request that fetches the product ID again, containing the parameter `id_product_feature_set`.
  5. Change the value of `id_product_feature_set` to `-1`.
  6. The product price becomes 0 EUR.

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 website often uses hidden values in the URL to work out the price. Here, changing one of those values to a negative number made the website think the extra cost was zero, so the total price became zero. The attacker could then buy the item 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.

More by Helmiriahi

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.