Exploiting Business Logic — Wallet Money
The wallet redemption feature accepted a negative withdrawal amount, so instead of deducting coins it added them while still issuing a gift card. An attacker could repeatedly redeem negative amounts to gain unlimited coins and gift cards.
Published on medium.com
{{media:0}}
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 did not validate that the withdrawal amount was a positive number, so a negative value reversed the debit into a credit.
Impact
An attacker could obtain unlimited gift cards and increase their coin balance without spending real coins.
What the attacker needed
A user account with some coins; ability to intercept and modify requests
How it was found
- Intercept the redemption request.
- Change the amount parameter from a positive value to a negative value.
- Submit the request and observe that the gift card is issued and the coin balance increases.
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.
A website let you swap points for gift cards. It checked that you had enough points but did not check that the number you asked to swap was positive. By asking to swap a negative number, the site added points to your balance instead of taking them away, and still gave you a gift card.
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.