Skip to content
Business logic Write-up Beginner

Exploiting URL-Based Price Manipulation on a Third-Party E-Commer

The shop's cart system accepted the product price as a plain query parameter in a GET request, so an attacker could change the price to a lower value and complete checkout at that reduced amount. The report claims this allowed purchases at manipulated prices and could be automated for mass abuse.

Mrflash Follow

Published on medium.com

While reviewing the checkout behavior of a product listed in an online shop, I discovered that the platform leverages a third-party cart system which accepts product details — including price — via query parameters in a GET request.

Mrflash, 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 application trusted a client-supplied price parameter instead of looking up the price server-side from a product identifier.

Impact

An attacker could complete purchases at manipulated, drastically reduced prices, and the issue could be automated for mass abuse, leading to direct financial loss.

What the attacker needed

Access to the online shop; ability to intercept or edit a URL

The fix

The shop should stop trusting client-side pricing, validate all transaction-critical data server-side, use product identifiers to fetch prices from a secure backend, and sign cart payloads.

How it was found

  1. Open a product page on the online shop.
  2. Click the Add to Cart or Buy Now button, which redirects to an external cart system.
  3. Intercept or inspect the redirect URL, which contains the product name and price as query parameters.
  4. Change the price parameter in the URL to a lower value.
  5. Load the modified URL in the browser and observe the cart shows the altered price.
  6. Proceed to checkout and the reduced price remains in effect.

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 shop should decide the price, not your browser. Here the shop passed the price in the web address itself, so anyone could edit that number before paying. The site trusted whatever price the browser sent back.

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.