Skip to content
Access control Write-up Intermediate

GraphQL Role Escalation and Data Exposure

A Publisher role could create workspace invites with an ADMIN role, allowing privilege escalation, and an Editor could retrieve full billing and subscription details that should be restricted to Owners/Admins.

omerasraan Follow

Published on medium.com

.بس� الله الرح� ن الرحي� , الله� صلي وسل� وزد وبارك على سيدنا � ح� د وعلى آله وصحبه وسل�

Omer Mohsen, 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 missing server-side authorization checks on GraphQL mutations and queries, allowing users with lower roles to perform actions and access data reserved for higher roles.

Impact

A Publisher could escalate privileges by inviting themselves as an admin, and an Editor could access sensitive billing data such as customer IDs, invoices, and payment methods.

What the attacker needed

A free account; Burp Suite with InQL extension

How it was found

  1. Use the program as a normal user to understand its logic.
  2. Intercept requests with Burp Suite and notice the program uses GraphQL.
  3. Use the InQL extension to gather all GraphQL mutations.
  4. Find the createWorkspaceInvites mutation.
  5. Send a request as a Publisher with the createWorkspaceInvites mutation and an ADMIN role.
  6. Observe that the invite is created successfully.

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 website uses GraphQL, a way for apps to ask a server for specific data. The server did not check properly whether the person asking had the right role, so a lower-level user could invite themselves as an admin and also see private billing information.

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 omerasraan

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.