How I could delete Every User from a Website Using a Simple Broke
The account deletion endpoint trusted a user_id supplied in the JSON request body, so any authenticated user could delete another user's account by changing that value. Because user IDs were sequential, an attacker could have deleted every account on the site.
Published on medium.com
NOTE:i have submitted vulnerabilities to this company before, but they do not accept low or medium severity vulnerabilities. So i focused on this company for a month to finally get a high severity vulnerability
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
Every user account could be permanently deleted, causing data loss and business harm; the report does not mention any defence that limited the attack.
What the attacker needed
A free account; ability to send a modified API request
The fix
The endpoint should derive the account to delete from the authenticated session and verify authorisation, rather than trusting a user_id from the request body; the report says a fix is being deployed.
How it was found
- Sign up and explore the site while inspecting requests in Burp history.
- Notice the API call made when clicking 'Delete my account'.
- Register a second account to obtain a different user_id and confirm IDs are sequential.
- Change the user_id in the delete request to the other account's ID and observe that it is deleted.
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 delete your own account, the website sends a request to its server. This request included a number identifying which account to delete, and the server did not check that the number belonged to the person making the request. By changing the number, the researcher could 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.