Skip to content
Access control Write-up Beginner

Hi ReadMe.io

The application did not enforce server-side role checks, so a normal user could invite and remove team members, actions meant only for the owner. An attacker with a normal account could therefore manage team membership without authorisation.

medium.com

Published on medium.com

It was observed that the application allows users to create projects and invite members to the project where i observed the user roles are of two types one is owner and second is Normal user.

shesha sai_c, 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 trusted the client-side interface and did not verify the user's role before allowing team management actions.

Impact

A normal user could invite or remove team members, which could disrupt the team or allow unauthorised access.

What the attacker needed

A normal user account; access to the team settings page

The fix

The server should check the user's role before allowing team management actions, so only owners can invite or remove members.

How it was found

  1. As the owner, invite users to the team.
  2. Log in as a normal user and go to the team settings.
  3. Perform invite and delete user actions as the normal user.

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, different users have different permissions: an owner can manage the team, while a normal user should not. Here the server did not check who was asking, so a normal user could do owner-only things like adding or removing people from the team. This is a broken access control problem.

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.