Testing Process
The fintech app trusted a user ID supplied in the request body instead of checking it against the logged-in session, so changing that ID debited another customer's account. An attacker could brute force valid account numbers, which were derived from Unix timestamps, and move or spend money from other users' accounts.
medium.com
Published on medium.com
Good day, guys, It’s been a while I blogged about my security findings but today I will be talking about a vulnerability I found in a fintech company that would have allowed me to steal money from any customer of the company.
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 took the sender's user ID from the request body rather than from the authenticated session, and never verified that the caller owned that account.
Impact
An attacker could debit other customers' accounts to buy airtime or send money, and by brute forcing IDs could eventually reach an admin account; the text does not say whether the issue was fixed.
What the attacker needed
A free account; account funded to test debits; no rate limiting on the target
How it was found
- Log in, fund the account, and open the send-money feature.
- Notice the recipient account number is sent in the request body and the sender ID in the URL.
- Work out that the numeric part of the account number is a Unix timestamp of account creation.
- Brute force a valid timestamp, since no rate limiting was in place.
- Change the sender ID in the airtime purchase request to a victim's ID.
- Repeat the same change on the send-money features to other accounts.
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.
Every user has a unique number that identifies their account. This app let the person sending a request say which account to charge, and it believed them without checking that the account belonged to them. So by swapping in someone else's number, a user could spend that stranger's money.
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.