> ***How I Discovered a Critical Unauthorized Balance Top-Up Vulnerability Worth $3,000***
The server accepted a client-supplied amount and threshold when topping up credits, without verifying that a payment had been made. Any authenticated user could increase their account balance arbitrarily and use paid API services for free.
I hope you all are okay by the Blessings of Almighty Allah and Also Take my salam. I started Bug Bounty in December 2022.
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 client-supplied amount and threshold values and did not verify that a successful payment had occurred before updating the balance.
Impact
Any authenticated user could arbitrarily increase their account balance and consume paid API services without paying, potentially causing significant financial loss to the company.
What the attacker needed
An authenticated account; a credit card added to enable the API
The fix
The vulnerability was resolved after the report was validated.
How it was found
- Add a credit card to the billing section to enable the API service.
- Inspect the request to /api/credits and note the amount and pending fields.
- Find the POST /api/credits/top-up request with amount and threshold in the body.
- Intercept the request and increase the amount and change the threshold.
- Forward the request without completing any payment.
- Refresh the billing page and observe the increased balance.
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 credits on a website, the server should check that your payment went through before adding the credits. Here, the server trusted numbers sent by the browser, so someone could just change the number and get free credits.
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.