Skip to content
Access control Write-up Intermediate

Unlocking Restricted Features: A Vulnerability Analysis of Organization’s Role Management

An invited user with a custom role could modify an API request to grant themselves the advanced moderation permission, which is normally restricted to the owner. They could then manage moderator groups and assign any user as a moderator, bypassing role restrictions.

0xmatrix Follow

Published on 0xmatrix.medium.com

بِسْ� اللَّه الرَّحْ� ن الرَّحِي� . . اللَّه� َّ صَلِّ وَسلَّ� وبارك على نَبِينَا � ُح� َّد

Mo2men Elmady, on 0xmatrix.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

Impact

An invited user with a custom role could escalate their privileges to manage all aspects of channels and advanced moderation, including rules, ticket management, moderation management, and moderation logs.

What the attacker needed

Attacker is invited to the organisation; attacker has a custom role; attacker can intercept API requests

How it was found

  1. As the owner, invite the attacker to the organisation with the Admin role.
  2. As the attacker, accept the invitation and sign in with the Admin role.
  3. Create a custom role with all permissions except advanced moderation.
  4. Intercept the request to edit the role and change the permission from basic to advanced moderation.
  5. Send the modified request and receive a 200 OK response.
  6. Assign the modified role to yourself and access the previously restricted moderator group features.

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 application lets organisation owners give other people limited roles. The server checked which permissions were shown in the interface but did not check whether the person sending the request was allowed to grant the advanced moderation permission. By changing the request, a low-privileged user could give themselves extra powers.

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 0xmatrix

View all

2 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.