Small type of Classic idor i find
The author describes a classic insecure direct object reference and broken access control issue in a user API, where a request could create a user with an admin role and other endpoints allowed enumeration, deletion and editing of users. The text claims an attacker could gain admin access and manipulate other users' records, but gives no real target, no verified response and no reproduction detail.
medium.com
Published on medium.com
I have been trying to find vulnerabilities since long time and I have been able to identify data breaches while searching in Apis and other stuff.
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
Impact
An attacker could create an administrator account and could enumerate, edit or delete other users' records through the API.
What the attacker needed
An account or token; access to the API endpoints
The fix
The server should enforce role checks on every user endpoint, strip privileged fields such as role from input unless the caller is an admin, and return a forbidden response for unauthorised attempts.
How it was found
- Look through the web application's endpoints using the browser developer tools.
- Inspect the API URL for user-related endpoints.
- Send a request to the user creation endpoint with a role field set to admin.
- Observe that admin access was obtained.
- After the issue was patched, look for endpoints on a site under development.
- Send a delete request to a user endpoint using a user identifier.
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 API is the part of a website that the page talks to behind the scenes. Here the site checked permissions in the browser but not on the server, so someone could send requests directly and do things they should not, such as creating an admin account or deleting another user. This is called broken access control.
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.