Accidental IDOR that Deleted Admin Account.
A team member deletion feature accepted a user ID without checking ownership, so an attacker could delete any account. The author accidentally deleted the admin account by sending a delete request with user_id=1.
Published on medium.com
{{media:0}}
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 did not verify that the requesting user had permission to delete the target user ID.
Impact
An attacker could delete any user's account, including the admin's, causing denial of service and data loss.
What the attacker needed
A user account on the site; ability to intercept and modify requests
How it was found
- Find the feature to add and delete team members on your account.
- Capture the delete request in Burp.
- Change the user_id parameter to 1 (the admin's ID) and send the request.
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) is when a website lets you change a number or name in a request to access something that isn't yours. Here, the delete request used a user ID, and the server didn't check if the person sending it was allowed to delete that user. So by changing the ID to 1, the author deleted the admin'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.