IDOR Leads to Unauthorized Deletion: How I Earned $500 in Bug Bou
A low-privileged user could send a DELETE request with another user's retail chain ID and the backend would delete it without checking ownership. This allowed unauthorised deletion of resources across accounts within the same tenant.
Friend link: https://infosecwriteups.com/idor-leads-to-unauthorized-deletion-how-i-earned-500-in-bug-bounty-335bd6a2c75d?sk=b632ac6a52a019452e14eb54b9e5a060
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
The backend relied only on the supplied ID for authorisation and did not verify that the requesting user owned the resource.
Impact
A low-privileged user could delete other users' retail chain IDs within the same tenant, and because IDs are small and predictable, this could be done at scale.
What the attacker needed
A low-privileged account; knowledge of a target resource ID; ability to send crafted requests
The fix
The application should enforce server-side ownership checks so that a user can only delete resources they own, and use non-sequential identifiers.
How it was found
- Create two accounts with different privilege levels: one full, one read-only.
- Identify the DELETE endpoint for retail chain IDs that takes a numeric ID.
- Capture a delete request from the high-privilege account using a proxy.
- Log in as the low-privilege account, capture its token, and replace the high-privilege token in the request.
- Send the request with the low-privilege token without changing the ID.
- Observe that the delete succeeds, confirming the IDOR.
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 lets you change an identifier like a number in a request to access or change something that belongs to someone else, because it does not check if you are allowed. Here, a user with limited rights could delete another user's data just by changing the ID in the request. The server should have checked that the user owned the item before deleting it.
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.