$1,500 PII Leak via GraphQL Field-Level Permission Bypass
A low-privileged user could query private webhooks and sensitive user data from other projects by accessing them through the organization object in GraphQL, bypassing field-level permission checks. The attacker could retrieve PII such as emails, names, and roles for all users in the organization.
medium.com
Published on medium.com
This is an AI platform designed for model management. Inside the workspace, you can deploy models, invite collaborators, and assign roles.
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
The application lacked field-level permissions on nested fields, so permissions were enforced on direct queries but not when the same objects were accessed through a parent object like Organization.
Impact
The attacker could steal sensitive PII for all registered users (emails, names, roles, etc.) and gain access to confidential project and user information.
What the attacker needed
A low-privileged user account
The fix
The application should enforce field-level permissions consistently, including on nested fields accessed through parent objects.
How it was found
- As a low-privileged user, attempt to query webhooks for a project you are not assigned to; the API returns a permission error.
- Instead, use the GetOrgWebhooks query, which starts from the Organization object and includes projects and their webhooks.
- Observe that the query returns webhooks for all projects, including those you are not assigned to.
- Try to add the members field under the organization to get user data; this fails with a permission error.
- Inspect the bundled JavaScript file and find the GetSuggestedCollaborators query, which includes a suggestedCollaborators field under Project.
- Nest the suggestedCollaborators field under the Project object within the GetOrgWebhooks query to retrieve member IDs and emails.
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, you can only see your own data. Here, the app checked permissions when you asked for a project directly, but forgot to check when you asked for the same project through a different path (the organization). This let a normal user see private information about other users and projects.
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.