Unauthorized Deletion of Reports via Folder Manipulation
Any user could delete a folder regardless of ownership, and deleting a folder also deleted the reports inside it. By moving another user's report into their own folder, an attacker could then delete that folder and indirectly delete the victim's report.
Published on medium.com
Hello everyone , I’m Hossam Hamada, Today I would like to share with you one of my discoveries in HackerOne ’s program
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
Any user could delete reports owned by others, causing unauthorised loss of important reports.
What the attacker needed
A user account on the platform; knowledge of the target report ID
How it was found
- Delete a folder that contains another user's report and observe that the report is also deleted.
- Obtain the target report's ID by intercepting the request from the copy button.
- Create a new report and a new folder, then intercept the move request containing the report ID and folder ID.
- Replace your report's ID with the victim's report ID and send the request to move the victim's report into your folder.
- Delete the folder, which deletes the victim's report inside it.
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.
On this report-management page, folders could be deleted by anyone, not just their owner. Deleting a folder also removed every report inside it. So an attacker could put someone else's report into their own folder and then delete the folder, wiping out the other person's report.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.