One Endpoint, One Mistake, One Catastrophe
An endpoint for deleting user files used predictable object IDs and lacked authorisation checks, allowing any user to delete others' files. Deeper reconnaissance revealed a related endpoint that returned other users' personal information, including names and uploaded file paths, when given their object IDs.
medium.com
Published on medium.com
Today, I want to talk about a “Broken Authorization” vulnerability that I discovered on a website. It was an IDOR (Insecure Direct Object Reference) vulnerability that led to the exposure of all users’ information on the platform.
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 application relied on predictable object identifiers and failed to verify that the requesting user owned or was authorised to access the referenced object.
What the attacker needed
A user account on the platform; knowledge of predictable object IDs
How it was found
- Discover an endpoint that allows users to delete their uploaded files.
- Observe that the endpoint uses predictable object IDs.
- Test the deletion endpoint with several accounts and confirm it affects all users.
- Perform deeper reconnaissance to gather endpoints from HTML and JavaScript files.
- Find the endpoint /users/user_file_datatable/ID and test it with your own object ID.
- Test the same endpoint with another user's object ID to retrieve their data.
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.
This is an IDOR (Insecure Direct Object Reference), where a website uses a simple number or identifier to refer to a user's data but does not check that the person asking is allowed to see or change it. By changing the number in the request, an attacker can access or delete another person's information. Here, the same mistake appeared in two places: a file-deletion feature and a data-listing endpoint.
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.