Skip to content
Access control Write-up Intermediate

Deleting a folder led to the deactivation of the company’s accounts.

A standard user could delete the main parent folder that holds all team folders by replacing the folder ID in a delete request with the parent folder ID. This deleted all team folders and deactivated all company accounts, including admin accounts, preventing login.

hossam_hamada Follow

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

Hossam Hamada, on medium.com

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 did not check that the folder being deleted belonged to the user or that it was not the protected parent folder, allowing any authenticated user to delete the shared parent folder.

Impact

Deleting the main folder deleted all team folders and deactivated all accounts within the company, including admin accounts, preventing login; the attack is limited to the attacker's own company and requires an internal account.

What the attacker needed

An internal company account; ability to create and delete folders

The fix

The issue should be fixed by restricting deletion of the main parent folder and enforcing authorisation checks on folder deletion; the text notes a quick fix is to restore the main folder, but this does not fix the vulnerability.

How it was found

  1. Log in with a standard account and create a folder while intercepting the request.
  2. Examine the response to find the folder ID and parent folder ID parameters.
  3. Create another folder and confirm the parent folder ID stays the same while the folder ID changes.
  4. Intercept the delete request for a folder and replace its folder ID with the parent folder ID.
  5. Send the modified request, which deletes the main folder and all team folders.
  6. Try to log in with other accounts, including admin, and observe that login fails.

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.

The platform gave each company a shared main folder that contained all the folders made by its users. A normal user could send a delete request for that main folder instead of their own folder, which wiped out all the company's folders and locked everyone out of their accounts.

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.

More by hossam_hamada

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.