API based IDOR to leaking Private IP address of 6000 businesses
An API endpoint that returned user access logs accepted a user-supplied UserID without checking ownership, so changing that identifier returned other businesses' logs. By iterating the identifier, the researcher retrieved access logs belonging to 6000 businesses.
Published on rafi-ahamed.medium.com
Myself, Rafi Ahamed. I am a Cyber Security Researcher from Bangladesh.
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 looked up access logs by the client-supplied UserID without verifying that the requester owned that identifier.
Impact
An attacker could read the access logs of other businesses, with the researcher retrieving logs for 6000 businesses.
What the attacker needed
Access to the logs page; interception proxy
The fix
The company fixed the bug within 48 hours, presumably by enforcing ownership checks on the UserID.
How it was found
- Open the page that shows the user's access logs with interception enabled.
- Notice the intercepted API request that fetches the access logs.
- Observe that the POST data contains a UserID parameter.
- Send the request to Intruder and brute-force the UserID to retrieve other users' logs.
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.
Many websites fetch data through an API, a behind-the-scenes request the page makes to the server. Here that request included a number identifying which user's logs to show, and the server trusted whatever number was sent instead of checking that it belonged to the logged-in person. Changing the number let the researcher read other companies' logs.
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.