Skip to content
IDOR Write-up Beginner

How I Managed to Check Anyone’s SBI Bank Balance Using Just Phone Numbers

The 'Get Balance' feature of the SBI Securities demat portal accepted an account number parameter without verifying ownership, so any logged-in user could change it to another SBI account number and read that account's balance. An attacker who obtained a victim's account number, for example from a payment statement, could check the balance of any SBI account holder.

infosecwriteups.com

Published on infosecwriteups.com

Hope your bounties💸 are treating you well. Recently, I opened a bank account with SBI (I usually prefer private banks, but needed this for specific reasons).

Aziz Al Aman, on infosecwriteups.com

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 used the client-supplied AccountNo parameter to fetch the balance without checking that the account belonged to the authenticated user.

Impact

An attacker could read the bank balance and account type of any SBI account holder, including people without a demat account, if they knew or could obtain the account number.

What the attacker needed

A demat account with SBI Securities; victim's SBI account number; ability to send a small payment to obtain details

How it was found

  1. Obtain the victim's bank account number, for example from a payment statement that shows the receiver's full account details.
  2. Log in to the demat account and open the 'Get Balance' feature.
  3. Intercept the POST request that contains the AccountNo parameter.
  4. Replace your own account number with the victim's account number and send the request.
  5. Read the response, which returns the account type and 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.

A web app often uses a number or ID in a request to decide which record to show. If it does not check that the logged-in user owns that record, changing the number lets you see someone else's data. Here, the balance lookup trusted whatever account number was sent, so a user could read balances of accounts they did not own.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.