IDOR (Insecure Direct Object Reference) leads to listing all valid Users and edit their Profiles
The web application used a sequential user ID in the URL to identify profiles, and the server did not check whether the requesting user was authorised to access that ID. An attacker could change the ID to view other users' email addresses and names, and also edit their profile information.
Published on medium.com
Hello friends :) I am happy to write a blog again after finding an Insecure Direct Object Reference Vulnerability in Drexel University Subdomain.
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 trusted the user ID supplied in the URL without verifying that the authenticated user owned that ID, allowing direct object reference to any user record.
What the attacker needed
A free account; ability to change URL parameter
The fix
The application should verify that the authenticated user is authorised to access or modify the requested user ID, for example by checking ownership on the server side.
How it was found
- Create an account and register with an email address.
- Notice the ID parameter at the end of the URL that identifies the user.
- Change the ID number in the URL to another value and load the page.
- Observe that another user's profile is displayed with their email address and name.
- Use Burp Intruder to enumerate many ID numbers automatically.
- Collect all valid users' email addresses and usernames, and confirm the ability to change their 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.
When you log in to a website, the site often puts a number in the web address to say which user's page to show. If the site does not check that you are allowed to see that number, you can simply change it to another number and see someone else's page. Here, changing the number let the author see other people's email addresses and names, and even change their details.
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.