Skip to content
Access control Write-up Intermediate

بسم الله الرحمن الرحيم

A member-level user could add a group to a workspace with owner-level permissions by first removing themselves from that group, bypassing a server-side check that only blocked the action when the attacker was a group member. This allowed the attacker to gain full owner access to the workspace.

medium.com

Published on medium.com

First of all, let me introduce myself. My name is Rahmat Hidayat, but I’m commonly known as “AMR” because my username on HackerOne is amrid.

Abu Maryam Rahmat, 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 server validated the 'type' parameter only when the attacker was a member of the group, but failed to enforce the same restriction when the attacker was not a member, allowing the group to be added with owner privileges.

Impact

A member-level user could add a group to a workspace with owner-level access, giving all users in that group full control over the workspace.

What the attacker needed

Attacker has a member account; attacker belongs to a group; attacker can remove themselves from the group; attacker can rejoin the group or has a second account

How it was found

  1. Log in as a member-level user and go to the workspace.
  2. Click 'Add Member' and select the group the attacker belongs to.
  3. Observe that the group can only be added with member permissions, not owner.
  4. Remove the attacker from the group.
  5. Send the request to add the group to the workspace with owner permissions, which now succeeds.
  6. Rejoin the group or use a second account in the group to gain owner access to the workspace.

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.

In many apps, users have roles like member or owner. A member should not be able to give themselves owner powers. Here, the app tried to stop this by rejecting a request when the attacker was in the group, but the check was flawed: if the attacker left the group first, the same request succeeded, and then rejoining the group gave them owner access.

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.

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.