Skip to content
Business logic Write-up Beginner

️ I Discovered a Parameter Pollution Vulnerability in a Payment

The payment QR generation request accepted a client-supplied amount, so the server issued a valid payment QR for whatever value the user typed instead of the real product price. An attacker could therefore place orders while paying a token amount, or nothing at all.

Nimit Shyara Follow

Published on medium.com

While exploring a random e-commerce website (let’s call it xyz.com), I unexpectedly found a critical flaw in their payment flow. just casually checking the system But what I discovered could allow anyone to pay any amount they want, including ₹1 or even ₹0, for any product. ⚠️💸

Nimit Shyara, 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

Likely the server trusted the amount value sent by the client when generating the payment QR, instead of looking up the real order total on the server side.

Impact

An attacker could place orders while paying an arbitrary low amount, potentially causing financial loss to the merchant at scale.

What the attacker needed

A shopper account on the site; ability to intercept HTTP requests

The fix

The server should calculate the payable amount from the order on its side and reject any client-supplied amount that does not match it.

How it was found

  1. Add an item to the cart and go to checkout so the site generates a payment QR code.
  2. Intercept the QR generation request in an intercepting proxy.
  3. Change the amount parameter in the request to a lower value.
  4. Forward the request and observe the server returning a successful response with a new QR code.
  5. Scan the new QR code in a UPI app and see the edited amount displayed.

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 usually asks a payment server to create a code your phone scans to pay. Here the website let the shopper's own browser decide the price in that request, and the payment server believed it. So a shopper could tell the system 'I am paying one rupee' and get a real payment code for that tiny amount.

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.