IDOR Vulnerability Allowed the Deletion of Any User from an Administrator Account.
A user-deletion endpoint accepted a user identifier supplied by the client and did not check that the identifier belonged to the caller's own account. An attacker with an administrator account could delete users belonging to another account by swapping in their identifier.
.بِسْ� ِ اللَّهِ الرَّحْ� َٰنِ الرَّحِي� ِ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَىٰ رَسُولِ اللَّهِ
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 delete endpoint authorised the request only by the caller's admin role and never verified that the target user ID belonged to the caller's own account.
Impact
An administrator of one account could delete users belonging to any other account, and the text notes the bug was not yet resolved at the time of writing.
What the attacker needed
An admin account on the platform; a second account to target; ability to intercept requests
How it was found
- Create two accounts, one acting as attacker and one as victim, each with an admin role.
- Add a user in each account and note the user IDs.
- Trigger Delete User in the attacker account and intercept the request.
- Change the ID in the request body to the victim account's user ID and send it.
- Observe that the victim account's user was 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.
An application often refers to records by a number or identifier, like a user ID. If it trusts whatever identifier the browser sends without checking that the record belongs to you, you can change the number and act on someone else's data. Here, changing the ID in a delete request removed a user from a different 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.