Skip to content
IDOR Write-up Beginner

Api Endpoint Revealed Transaction Details Of About Millions Of Users

A payment status API endpoint accepted a numeric transaction identifier and returned transaction details without any authentication. An attacker could enumerate identifiers to retrieve bank account details and mobile numbers of many users.

Aadeshnamdev Follow

Published on infosecwriteups.com

Today i will be talking about my one of finding which reveals transaction details of millions of users …..

Aadeshnamdev, 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

Impact

An unauthenticated attacker could enumerate numeric transaction ids and retrieve the bank account details and mobile numbers of millions of users.

What the attacker needed

No account needed; guessable numeric transaction id

The fix

JWT authentication was added to the payment-related API endpoints.

How it was found

  1. Refresh the cancelled transaction page and observe the API request in the proxy.
  2. Remove the encoded identifier and send a null value, which returns a bad request hinting a transaction id is required.
  3. Change the request to use a numeric transaction id instead of the encoded internal id.
  4. Receive other users' bank account details and mobile numbers in the response.

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 API is a way for one program to talk to another and fetch data. This payment API handed back a user's transaction details to anyone who asked, as long as they supplied a guessable transaction number, with no login check at all. That means someone could simply try many numbers and collect other people's banking information.

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.