How I got $250 for IDOR via Business Logic Error
The web application allowed a user to download account statements and proof of account files by sending another user's e-wallet ID in the request, without proper authorisation checks. An attacker could obtain these files for any user, though the downloaded files did not contain the victim's account balances.
Published on medium.com
I hope you all are doing well. This write-up focuses on how I recently got my first bounty from a Bugcrowd program.
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 verify that the e-wallet ID in the request belonged to the authenticated user before generating and returning the account statement and proof of account files.
Impact
An attacker could download account statement and proof of account files belonging to other users, although the files did not contain the victim's account balances.
What the attacker needed
A free account; victim's wallet ID known
The fix
The server should verify that the e-wallet ID in the request belongs to the authenticated user before returning the files.
How it was found
- Create two accounts for testing purposes.
- Search for another user's wallet ID using the search feature.
- Capture the requests for downloading account statement and proof of account files.
- Replace your own e-wallet ID in the request with the victim's e-wallet ID.
- Send the request and observe a 200 OK response with the files downloaded.
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.
This is an IDOR (Insecure Direct Object Reference) bug, where a website uses an identifier like a wallet ID to fetch data but does not check if the person making the request is allowed to access that data. The attacker simply changed their own wallet ID to someone else's in the request and received files that should have been private. The files did not contain sensitive balances, but the server still returned them, which is a security flaw.
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.