Skip to content
Business logic Write-up Beginner

Breaking the Checkout: Price Manipulation

The checkout API trusted a client-supplied price in the request body, so an attacker could change the amount from $329.88 to $1.88 and the server generated a valid PayPal checkout session for the lower amount.

medium.com

Published on medium.com

Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.

Parth Narula, 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 server did not recalculate the price from trusted product data and instead used the amount supplied in the client request.

Impact

An attacker could potentially purchase a subscription for a much lower price than intended, causing financial loss to the business.

What the attacker needed

Access to the checkout flow; ability to intercept HTTP requests

The fix

The server should calculate the final price from product or plan details and ignore any client-supplied amount.

How it was found

  1. Open the product checkout page.
  2. Intercept the checkout request in Burp Suite.
  3. Change the amount in the request body from 329.88 to 1.88.
  4. Forward the request and observe a success response with a PayPal redirect URL.
  5. Follow the redirect and see the PayPal page showing 1.88 USD.

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 always calculate the final price on its own server, not trust what your browser sends. Here, the server accepted a price sent by the browser, so someone could pay much less than the real price.

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.