Skip to content
Access control Write-up Beginner

Privilege Escalation via GraphQL: Editors Can Become Owners Through the “Share” Flow

An Editor could change the role variable in a GraphQL share request from Editor to OWNER, and the backend accepted it, granting Owner privileges to all workspace members. This allowed full project takeover, including changing settings, adding or removing users, and deleting or exporting data.

B14ck Follow

Published on medium.com

I’m back with a new writeup from my bug‑hunting notes.While reviewing the project‑sharing logic of a web app, I discovered a mismatch between the UI and the API. The UI prevents an Editor from granting Owner privileges, but by tampering with a GraphQL request, I was able to promote an Editor to OWNER.

black, 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

Impact

An Editor could grant Owner privileges to all workspace members, leading to full project takeover including changing settings, adding or removing users, and deleting or exporting data.

What the attacker needed

An account with Editor role in the organisation; access to the project share feature

How it was found

  1. Log in as a user with Editor permissions in the target organisation.
  2. Open the project page and use the share with workspace members feature.
  3. Capture the GraphQL request and change the role from Editor to Owner.
  4. Resubmit the request; all workspace members become Owners.

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 web app lets people share a project with different permission levels, like Editor or Owner. The screen only offered Editor or Viewer to non-owners, but the server did not check the role value it received. By changing the role in the request to Owner, an Editor could give everyone Owner rights.

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 B14ck

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.