Skip to content
Business logic Write-up Beginner

Price manipulation(How a Simple OTP Flaw Could Lead to Full Accou

A checkout request sent the item price and totals from the client, so the server trusted them. By swapping the price of an expensive item for the price of the cheapest item, an attacker could buy a high-priced subscription for a much lower amount.

blackmambaa001 Follow

Published on blackmambaa.medium.com

Read Part 1 here — https://blackmambaa.medium.com/how-a-simple-otp-flaw-could-lead-to-full-account-takeover-12220a10a63b

blackmambaa001, on blackmambaa.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 trusted the client-supplied price and totals in the order request instead of looking up the item's real price from its own records.

Impact

An attacker could obtain a high-priced item for the price of the cheapest one, causing a financial loss to the business.

What the attacker needed

A registered account; ability to intercept requests

The fix

The server should calculate prices and totals from its own catalogue rather than accepting them from the client; the author states the issue was fixed.

How it was found

  1. Log in and go through checkout to the point of making a full payment.
  2. Inspect the order history and find the POST request that creates the order.
  3. Note that the request body carries the item price and totals.
  4. Try changing the price for the same item id and observe the server rejects it.
  5. Take the request for a higher-priced item and replace its price with the cheapest item's price.
  6. Send the request and the order is accepted at the lower price.

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 should look up the real price itself. Here the browser sent the price along with the order, and the server believed it. So someone could edit that number before sending and pay far less than the real cost.

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.