IDOR in Bug Bounty Program
The website allowed deletion of other users' documents by relying on two cookie parameters (grauth and csrf-token) for authorisation without verifying the user's permissions. An attacker who obtains these cookies could delete any document belonging to the victim.
Published on medium.com
A vulnerability has been discovered on the targeted website that allows users to delete documents without permission by exploiting the IDOR (Insecure Direct Object Reference) vulnerability. This vulnerability occurs because the website does not properly verify user permissions when processing document deletion…
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 used cookie parameters (grauth and csrf-token) as the sole authorisation check for document deletion, without verifying that the authenticated user owned the document.
Impact
An attacker who obtains the victim's cookies could delete any of the victim's documents, and the text notes that direct access to the cookies is currently not possible.
What the attacker needed
Two accounts on the target site; ability to intercept HTTP requests; obtain victim's cookies (grauth and csrf-token)
How it was found
- Create two accounts on the target site.
- Create a document on the victim's account.
- Delete a document on the attacker's account and intercept the request.
- Extract the grauth and csrf-token parameters from the victim's cookies.
- Use those values with the victim's document ID to delete the document.
- Optionally, permanently delete the document from the Recycle Bin by repeating the steps.
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.
This is an IDOR (Insecure Direct Object Reference) bug: the website uses identifiers (like document IDs) to decide what you can access, but it doesn't check if you're allowed to access that specific document. Here, the site also trusted two cookie values to prove who you are, so if someone steals those cookies, they can delete your documents.
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.