Skip to content
Business logic Write-up Beginner

Price Tampering in WooCommerce Checkout API (Flutter App)

The WooCommerce checkout backend accepted a client-supplied invoice amount and forwarded it to the payment gateway without recalculating the price from the cart. An authenticated attacker could intercept the payment request and change the amount to a much lower value, receiving a valid payment link for the reduced price.

medium.com

Published on medium.com

During the penetration test of the Flutter app’s checkout process (in its testing environment), we discovered a critical price manipulation vulnerability. An authenticated user can intercept the payment initialization request, modify the invoiceValue field (e.g., from 153.4 KD to 0.1 KD), and receive a legitimate…

Youssefhussein, 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 a client-supplied invoice amount and did not recalculate or verify it against server-side cart data before creating the payment.

Impact

An attacker could pay a much lower amount for high-value items, causing direct financial loss; the report notes this was demonstrated in a testing environment and that a production integration would charge only the tampered amount.

What the attacker needed

A valid customer account; testing environment access; a proxy tool such as Burp Suite

The fix

The server should recalculate the total from the cart, reject any client-supplied amount that does not match, and sign the order details with an HMAC that the payment gateway verifies.

How it was found

  1. Add a product to the cart in the Flutter app.
  2. Proceed to checkout and select a payment method.
  3. Intercept the payment initialisation request with a proxy.
  4. Modify the invoice value in the request to a lower amount.
  5. Forward the modified request and receive a payment link for the lower amount.
  6. Open the payment link and complete payment at the reduced 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 app sends the price to the payment system. Here, the server trusted the price sent by the app instead of checking it against the real price stored on the server. So someone could change the price in the request and pay almost nothing for an expensive item.

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.