Business Logic Error — Deleting the Project Owner by Manipulating a GraphQL Request
The backend GraphQL API did not enforce the same restriction as the web UI, allowing an Editor to delete the project Owner by changing the user ID in a permission removal request. An attacker with Editor privileges could remove the Owner and take control of the project.
Hey everyone 👋 I’m Black, a security researcher and bug bounty hunter passionate about uncovering logical flaws hidden deep inside modern web applications. In this write-up, I’ll share a Business Logic vulnerability I discovered during testing — a subtle yet impactful bug that allowed a user with Editor privileges to…
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 backend GraphQL API did not validate that the requesting user had sufficient privileges to remove the project Owner, relying only on the UI to enforce the restriction.
Impact
An Editor can remove the project Owner, effectively taking control of the project, leading to loss of ownership, privilege escalation, and complete project takeover.
What the attacker needed
Editor privileges on a project; Ability to intercept and modify requests
The fix
The backend GraphQL API should enforce the same validation as the UI, preventing removal of the project Owner unless ownership is transferred first.
How it was found
- Log in as a user with Editor privileges.
- In the UI, perform a normal deletion of a low-privileged user to trigger a GraphQL request.
- Intercept the request using a proxy such as Burp Suite.
- Replace the userId of the low-privileged user with the userId of the Owner.
- Forward the modified request.
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, the website interface stops you from doing something you shouldn't, but the server behind it might not check properly. Here, an Editor (a user with limited rights) could send a request directly to the server to delete the project Owner, even though the website would not let them do it through the normal buttons. This is a business logic flaw: the server trusted the request without verifying if the user was allowed to remove the Owner.
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.