How I Discovered 1,400+ Users’ PII Through a GraphQL Query — and Uncovered 5 More Bugs Using the Same Logic
A GraphQL query intended to return only the user's own workspace data accepted additional nested relations, allowing the attacker to traverse from connections to companies to users and retrieve PII for over 1,400 users across all companies. The same technique revealed five more bugs.
Published on ayaa101.medium.com
I hope you’re giving yourself space to pause when you need to, and strength to continue when you can. The road may be uneven, but your effort is always meaningful.
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 authorization checks on nested GraphQL relations, allowing a low-privilege user to traverse from their own workspace to platform-wide connections, companies, and users.
Impact
An attacker with a low-privilege account could retrieve PII (including names and emails) of over 1,400 users across all companies on the platform.
What the attacker needed
A low-privilege user account; ability to create a personal workspace
How it was found
- Observe a normal GraphQL query that returns connection IDs for the entire company, not just the user's workspace.
- Add the name field under each connection ID and execute the modified query to retrieve all connection names in the company.
- Modify a generic runtime configuration query to accept the connections relation, returning IDs for all connections across the platform.
- Nest the company relation inside the connections relation to retrieve company information.
- Nest the users relation inside the company relation to retrieve user IDs.
- Add fields such as email, firstname, and lastname to retrieve full PII for over 1,400 users.
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.
GraphQL is a way for apps to ask a server for exactly the data they need, using a query language. Here, a query that should have been limited to one user's workspace could be extended to ask for linked data from other companies and then all users, because the server did not check who was asking for what. This let the researcher see personal information like names and emails of many users.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.