Skip to content
IDOR Write-up Beginner

Mobile Security

Several mobile app APIs returned other users' profile and bonus data based on a user-supplied identifier, and a card-number endpoint generated a payment barcode without proper authorisation. An attacker could enumerate users, read personal and card details, and create barcodes to spend other people's bonus balances.

medium.com

Published on medium.com

I’ve been conducting security research on Android and mobile applications for a long time, exploring Android internals to uncover vulnerabilities in apps. Recently, I analyzed an international finance + retail mobile app.

Murad Sadigov, on medium.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 APIs looked up records by a client-supplied identifier (user ID or card number) without checking that the caller owned that record or was authenticated.

Impact

An attacker could read other users' personal and card details and generate barcodes to spend their bonus balances; the author notes brute-forcing all card numbers is possible but does not demonstrate it.

What the attacker needed

Access to the mobile app; ability to intercept app traffic; a valid user account

The fix

The APIs should authenticate callers and check that the requested record belongs to them before returning data or generating a barcode.

How it was found

  1. Monitor the app's network traffic to find its API endpoints
  2. Change the user ID in the profile request to view another user's data
  3. Query the bonus details endpoint using a card number to read bonus information
  4. Use the card number generation endpoint to produce a barcode for another user's card

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.

The app trusted a number the user sent to decide whose data to show, instead of checking that the person asking owned that record. Because the numbers were simple and sequential, someone could try many of them and read other people's details. A separate endpoint then turned a card number into a scannable barcode, so a guessed number could be used to spend someone else's bonus points.

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.