Skip to content
Business logic Write-up Intermediate

A Pen worth 80K (BBP#2)

The payment flow accepted a client-supplied currency and country code, so an attacker could change the currency to one with a much lower exchange rate and pay a fraction of the intended fee. The same flaw affected both the large admission fee and the smaller registration fee, and the payment gateway recorded the lower amount while the university's system showed the full fee.

infosecwriteups.com

Published on infosecwriteups.com

In 2021, I was testing on some Program, and my brother asked me to fill out his University Application Form. So I started the process and in the background, all the traffic was going through my Proxy Tool(Burpsuite).

Devender Rao, on infosecwriteups.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 currency and country code parameters without validating them against the expected fee amount, allowing the payment amount to be manipulated.

Impact

An attacker could pay a much smaller amount than required for university fees, and the issue affected over 400 other universities using the same software, though the report notes the university's system initially showed the full fee while the payment gateway showed the lower amount.

What the attacker needed

Access to the payment flow; ability to intercept and modify requests

The fix

The bug was fixed after the report, as verified by the author.

How it was found

  1. Intercept the payment request in a proxy tool.
  2. Change the currency parameter to a different currency code.
  3. Observe the payment gateway redirect with a different amount.
  4. Choose a currency with a very low exchange rate compared to the original.
  5. Complete the payment with the reduced amount.

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, the website sends details like the amount and currency to a payment processor. If the website trusts whatever currency the user's browser sends, a person can switch to a currency that is worth much less, so the same number of units costs far less in real money. Here, the attacker changed the currency code and paid only a tiny fraction of the required fee.

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.