Would You Mind To Tell Me What Your Bank Balance Is No Okay Ill Hack It
An API endpoint that returned a user's bank balance accepted an account number in the request body without checking that the caller owned that account. An authenticated attacker could change the account number and read the balance of any other customer.
Published on infosecwriteups.com
I’m Manav Bankatwala, and I’m a security researcher. I’m not sure what kind of radioactive spider bit me, but it gave me the power to see security vulnerabilities everywhere.
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 balance API trusted the account number supplied by the client and did not verify that it belonged to the authenticated user.
Impact
An authenticated user could enumerate the bank balance of any account number; the bank classified this as low severity because no other customer details were exposed.
What the attacker needed
An authenticated bank account; knowledge of a target account number; an interception proxy
How it was found
- Capture the statement download traffic in an interception proxy.
- Search the captured requests for the researcher's own account number.
- Identify the balance API endpoint that takes the account number in a POST body.
- Send the request to Repeater and change the last two digits of the account number.
- Observe that the response returns another user's balance instead of an error.
- Use Intruder to iterate over a list of account numbers and collect balances.
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.
An IDOR (Insecure Direct Object Reference) happens when a website lets you ask for a record by its identifier but forgets to check that the record belongs to you. Here, the bank's balance API took an account number and returned the balance without verifying ownership, so changing the number showed someone else's balance.
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.