Skip to content
Access control Write-up Intermediate

Broken Access Control leads to full team takeover and privilege escalation

The GraphQL invite-user endpoint processed requests without authentication or authorization, relying only on client-supplied parameters. A team member could escalate to admin by obtaining the admin's user ID and sending an invite request with the admin role, leading to full team takeover.

Abdelhameed Ghazy Follow

Published on abdelhameedghazy.medium.com

Today I will share one of the most finding that I was interested in while finding it.

Abdelhameed Ghazy, on abdelhameedghazy.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 GraphQL invite mutation lacked authentication and authorization checks, trusting client-supplied parameters such as inviterId and roleName.

Impact

A team member could escalate to admin and take over the team, accessing sensitive data such as credit cards, with zero clicks from the victim.

What the attacker needed

A member account in the target team; ability to invite the admin to another team

How it was found

  1. Remove cookies and authorization header from the invite request and observe it still succeeds.
  2. As a member, find the admin's email in the team members section.
  3. Invite the admin to the attacker's own team to trigger a request that leaks the admin's user ID.
  4. Send a new invite request with the admin's user ID and roleName set to admin.
  5. Accept the invitation to become an admin and take over the victim team.

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 website let people invite others to a team, but it did not check who was making the request. By changing the details in the request, a normal team member could make themselves an admin and take over the team.

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.