Insufficient Access Controls in GraphQL Enables Unauthorized User
A GraphQL query intended for CRM contact search did not check the caller's seat type, so a view-only user could retrieve internal employee names, emails, roles and permission flags. The attacker could use this data for reconnaissance and to map which staff hold elevated privileges.
Published on medium.com
قَالَ اللَّهُ تَعَالَى: {يَرْفَعِ اللَّهُ الَّذِينَ آ� َنُوا � ِنكُ� ْ وَالَّذِينَ أُوتُوا الْعِلْ� َ دَرَجَاتٍ ۚ وَاللَّهُ بِ� َا تَعْ� َلُونَ خَبِيرٌ} (سورة ال� جادلة، الآية 11).
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 backend GraphQL resolver for the CRM search query did not enforce object-level authorisation or restrict sensitive fields based on the authenticated user's seat type.
Impact
Low-privileged users could read internal staff names, emails, roles and permission flags, which could aid social engineering and privilege-escalation planning; the report notes the issue was triaged as informative with no security impact.
What the attacker needed
A view-only account; valid session and CSRF token
The fix
The resolver should enforce object-level authorisation and restrict sensitive fields according to the authenticated user's seat type; the text does not say it was fixed.
How it was found
- Log in with a view-only user account and note the restricted users page.
- Send a crafted POST request to the GraphQL endpoint using that session and CSRF token.
- Use the ListingLibCrmSearchQuery operation with the CRM object type identifier.
- Observe the response containing internal employee data despite the low privilege.
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 GraphQL API lets a client ask for exactly the data it wants in one request. Here the server checked that the user was logged in but not whether that user's low-privilege 'view-only' role was allowed to see staff records. So a normal user could ask for hidden employee details and the server returned them.
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.