Hacking Workspace for Fun & Profit: Part I
A member of a workspace could change the workspace avatar of another workspace by swapping the workspace ID in the request, due to an IDOR vulnerability. This allowed a low-privileged member to tamper with settings they should not control.
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 did not check that the user making the request had admin rights over the workspace identified by the ID parameter, allowing any member to update any workspace's avatar.
Impact
A member could change the avatar of any workspace they were not an admin of, potentially affecting other users' workspaces.
What the attacker needed
Attacker must be a member of the victim's workspace; attacker must have their own workspace to initiate the…
The fix
The server should verify that the requesting user has admin permissions for the workspace identified by the ID before allowing the avatar update.
How it was found
- Create two accounts in the same workspace: one Admin and one Member.
- As Admin, intercept the request to update the workspace avatar and note the workspace ID.
- As the Member (attacker), create your own separate workspace and change its avatar, intercepting that request.
- Replace your own workspace ID with the victim's workspace ID in the request.
- Send the modified request; the victim's workspace avatar is updated.
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.
A workspace is like a shared online space for a team. The bug meant that someone who was only a regular member could change the picture (avatar) of a different workspace, even though only admins should be able to do that. They did this by changing a number in the request that identifies which workspace to update.
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.