A Critical IDOR That Allowed Me to Delete Any User Account
A user deletion endpoint lacked authorization checks, allowing an attacker to delete other users' accounts by changing a numeric user ID. The attacker could delete users belonging to other accounts.
Hi, I’m mrxw (Adem Ziane Berroudja), a bug bounty hunter on Bugcrowd.
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 delete any user account, including those belonging to other accounts, without authorization.
What the attacker needed
A free account; knowledge of a target user ID
The fix
The endpoint should verify that the authenticated user has permission to delete the specified user ID before performing the deletion.
How it was found
- Create an account on the public registration page of the subdomain.
- Open a user profile and trigger the delete action from there.
- Intercept the request to the bulkPeopleUpdate endpoint.
- Change the numeric user ID in the request to another user's ID.
- Send the request, which deletes the other user's account.
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 a simple identifier, like a number, to refer to a user's data but does not check that the person making the request is allowed to access that data. Here, the delete action used such a number, so changing it let the attacker delete someone else's account.
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.