From GraphQL Enumeration to Cross-Workspace Takeover
A leaked workspace identifier from frontend JavaScript allowed unauthenticated GraphQL mutations and IDOR queries to read and write data in other organisations' workspaces. An attacker could access API keys, secrets, payment data, and invite members to foreign workspaces.
medium.com
Published on medium.com
Chaining unauthenticated mutations, GraphQL batching abuse, and IDOR into full cross-tenant compromise
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 the GraphQL API trusted a client-supplied workspace identifier without verifying that the caller was a member of that workspace, and some mutations required no authentication at all.
Impact
An attacker could read another organisation's API keys, secrets and payment data and create keys or invite members in that workspace, leading to full cross-tenant compromise.
What the attacker needed
A low-privileged account; a leaked workspace identifier; GraphQL endpoint reachable
The fix
The API should enforce authentication and per-workspace authorisation on every query and mutation, and should not expose internal workspace identifiers in client-side code.
How it was found
- Extract a valid workspace identifier from the frontend JavaScript bundles.
- Use the identifier in GraphQL queries with a low-privileged account to read members, access keys and payments.
- Use the same identifier in mutations to create access keys and invite members to the foreign workspace.
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 workspace is a private area belonging to one organisation. The website's code accidentally revealed the name of another organisation's workspace, and the server never checked whether the person asking actually belonged to it. So anyone could read that organisation's secrets and even add themselves as a member.
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.