IDOR: Payment Fraud
The payment request's currency parameter could be changed from the original currency to another accepted currency, causing the charged amount to be recalculated at a much lower rate. An attacker could pay far less than the intended price for a high-value order.
Published on medium.com
#### Vibhurushi Chotaliya
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 accepted a client-supplied currency parameter without validating it against the original order currency or recalculating the price securely.
Impact
An attacker could pay a much smaller amount than the intended price for a high-value order, causing financial loss to the company.
What the attacker needed
A user account on the site; ability to add items to a cart; PayPal payment option available
How it was found
- Add a product worth 100001 MXN to the cart and proceed to the address and transaction tabs.
- Choose the PayPal payment option to trigger a popup request containing a currency parameter.
- Change the currency parameter to USD, which the server accepts.
- Try other currencies and find that PHP is also accepted.
- Change the currency to PHP and observe the payable amount drops from about 5286.70 USD to 1944.22 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 price is sent to the payment system along with a currency code. This report shows that the website trusted a currency code supplied by the browser, so a buyer could swap it for a cheaper currency and pay much less. That is an insecure direct object reference (IDOR): the server accepts a value from the user without checking it should be allowed.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.