IDOR and Excessive Data Exposure in Mobile Application — The Tale of an IDOR # 02
The mobile application's API allowed an authenticated user to edit another company's information by changing the company ID in the request, and also exposed private company details such as email and phone number. An attacker could modify victim company data without consent and view sensitive information.
Published on medium.com
I was testing an android application in which I found an IDOR leading to victim’s account information edit.
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 API lacked proper authorisation checks on the company ID, allowing any authenticated user to modify or view other companies' data.
Impact
An attacker could edit another company's information without consent and view private details such as email address and phone number.
What the attacker needed
A free account; victim has a company
How it was found
- Create two accounts, each with a company.
- Edit company information in account A and capture the request in Burp Proxy.
- Send the request to Burp Repeater and replace the company ID with that of account B.
- Enter the desired changes and send the request.
- Check that account B's company information was edited without consent.
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 uses an identifier like a number to access a resource but does not check if the user is allowed to access that specific resource. Here, the app let a user change the company ID in the request to edit another company's details. The API also returned private information that should have been hidden.
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.