Skip to content
Business logic Write-up Beginner

Exploiting Business Logic Flaws: How I Bought Products for $1 (Et

The checkout endpoint accepted item prices and the total amount from the client and processed payment without re-checking them against the product catalogue. An attacker could tamper with the request to buy expensive products for an arbitrary low amount.

Be nice insabat Follow

Published on medium.com

Assalam o alaikum for muslim brothers and hello for non muslims, i hope all of you are doing well and learning new things day by day.

Be nice insabat, 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 trusted client-supplied price and total values and never compared them with the stored catalogue prices before charging the card.

Impact

An attacker could buy products at arbitrary low prices, causing direct financial loss, and could also deplete stock or bypass purchase limits.

What the attacker needed

Authorised test on an e-commerce platform; ability to intercept HTTP requests

The fix

The server should look up each product's price from its own database and reject any request whose submitted price does not match, ideally using signed price tokens.

How it was found

  1. Add a product to the cart and go through the normal checkout to see the payment request.
  2. Intercept the checkout POST request with a proxy tool.
  3. Change the item price and the total amount to a much lower value.
  4. Forward the request and observe the payment confirmation.

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, your browser sends the order details to the shop's server. Here the server believed the price the browser sent instead of looking up the real price itself, so someone could edit that number 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 Be nice insabat

View all

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