Skip to content
Business logic Write-up Beginner

Parameter Tampering on a Govt. site

The payment amount sent from the browser to the server could be edited by the user, so the author changed the price of an electricity connection payment from the original figure to a much smaller one. The payment still went through and a receipt was issued, meaning the attacker could pay less than owed.

bagade1122 Follow

Published on medium.com

One day I received an email to make payment for my home electricity connection. I had 2 options to make the payment of ₹ 610via UPI or their own website I decided to make the payment via website and test for “Parameter Tampering” Vulnerability on the website to manipulate the price.

Parag Bagade, 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 supplied by the client instead of recalculating the price from its own records before charging.

Impact

An attacker could pay a reduced amount and still receive a successful payment confirmation and receipt, causing a direct financial loss to the service.

What the attacker needed

Access to the payment page; a proxy tool to edit requests

The fix

The server should recalculate the payable amount from its own records and ignore any amount supplied by the client; the author states the issue was fixed after reporting.

How it was found

  1. Capture the payment request with a proxy tool.
  2. Search the request for the amount field or the original amount value.
  3. Change the amount to a lower value.
  4. Confirm the new value is carried into the following requests.
  5. Complete the payment and check whether it succeeds.

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 pay online, your browser sends the price to the shop's server. If the server trusts that number instead of checking it against its own records, you can edit it before sending. Here the author lowered the amount and the site accepted the smaller payment as complete.

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.