Unauthorized Users Could Disclose Information and Execute GraphQL Operations After Permission…
A staff user's WebSocket connection to Shopify's GraphQL subscriptions remained active after their permissions were revoked, allowing them to continue receiving store events and executing GraphQL operations for a short time. The program considered this informative because the token had a short lifespan, limiting the exposure window.
Published on medium.com
In this post, I will show you how I discovered a Broken Access Control vulnerability at the GraphQL Subscriptions. Due to this vulnerability, a malicious actor could disclose & execute GraphQL operations after their permission was revoked via WebSocket in a limited attack time window.
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 server did not invalidate existing WebSocket sessions or re-check permissions when a user's role or permissions changed.
Impact
A revoked staff user could continue to receive store event data and execute some GraphQL operations for a short window, but the program limited the risk by using short-lived tokens.
What the attacker needed
A staff account with permissions; ability to run a script; owner revokes permissions
The fix
The program did not change the code; it relies on short-lived tokens to limit exposure, though the reporter suggests immediate session invalidation on permission changes.
How it was found
- Create two users: one owner and one staff.
- As owner, give the staff user all permissions.
- As staff, confirm access to all store features.
- As staff, retrieve the shop ID and set it in the PoC script.
- As staff, retrieve the Argus token and set it in the PoC script.
- As staff, run the PoC script.
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.
When you remove someone's access to a system, you expect them to be locked out immediately. Here, the live connection (WebSocket) that the staff member had open kept working for a short while after their permissions were removed, so they could still see new orders and even run some actions. The company decided the risk was small because the connection token expired quickly.
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.