Hacking Workspace for Fun & Profit: Part II
A workspace deletion endpoint accepted a client-supplied workspace ID without verifying that the requesting user had admin rights over that workspace. A low-privileged member could change the ID to another workspace's ID and delete it.
medium.com
Published on medium.com
Peace be upon you! I’m Md Saikat, an independent security researcher and bug hunter at Yogosha.
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 trusted the client-supplied workspace ID and did not verify that the authenticated user had admin privileges over that specific workspace before deleting it.
Impact
A low-privileged member could delete any workspace by supplying its ID, causing destructive loss of data.
What the attacker needed
A member-level account; knowledge of victim workspace ID; ability to intercept requests
The fix
The server should verify that the authenticated user has admin rights over the workspace identified by the supplied ID before performing the deletion.
How it was found
- Create two workspaces: one where the attacker is a member and one where the victim is admin.
- Intercept the request sent when the attacker tries to delete their own workspace.
- Note the POST request contains a numeric id for the workspace.
- Change the id to the victim's workspace id and send the request.
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 app let users delete their own workspace by sending its ID number. The server did not check whether the user actually owned or administered the workspace whose ID was sent. So a normal member could swap in someone else's ID and delete their workspace.
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.