Skip to content
IDOR Write-up Intermediate

Found an URL in the android application source code which lead to an IDOR

An endpoint found in the Android app source code accepted a loginToken parameter that was not properly validated, allowing an attacker to retrieve other customers' personal information by brute-forcing the token value.

Vengeance Follow

Published on vengeance.medium.com

I was testing the target which had its web application and mobile application in scope. Let’s say the target is example.com

Vengeance, on vengeance.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 server did not verify that the loginToken belonged to the requesting user, allowing any valid token to access other users' data.

Impact

An attacker could access personal information of all customers by brute-forcing the loginToken parameter.

What the attacker needed

Access to the Android APK; ability to send HTTP requests

How it was found

  1. Decompile the Android APK using apktool.
  2. Search the source code for hardcoded URLs and find the getCustomerInfo endpoint with a loginToken parameter.
  3. Send a request with a random loginToken value and observe a 500 error.
  4. Check Burp history for a previous response containing an id parameter from /user/get-finance-user.
  5. Use that id value as the loginToken parameter to retrieve personal information.
  6. Brute-force the loginToken value using Burp Intruder to access all customers' information.

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 tester looked inside the Android app's code and found a web address that wasn't used in the normal website. That address had a parameter called loginToken, and by guessing different values for it, the tester could see other people's private data. This is called an IDOR, where a program uses a simple identifier that can be changed to access someone else's 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.

More by Vengeance

View all

1 more disclosed report, best first.

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.