Privilege Escalation via Invite Request Manipulation — $150 Bug
An Admin user could invite a new member with the Owner role by changing the role value in the invitation request, even though the frontend only offered lower roles. This let the Admin create a second Owner with full control of the workspace, and the original Owner could not remove that account.
This write-up describes a Privilege Escalation vulnerability I discovered in a business-focused web application, where an Admin user was able to create a new Owner account by manipulating an invitation request.
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 trusted the role value sent by the client and did not check whether the requester was allowed to assign the Owner role.
Impact
An Admin could gain full Owner control of the workspace, and the original Owner could not remove the new Owner, giving permanent unauthorised access.
What the attacker needed
An Admin account in a workspace; ability to intercept and edit requests
The fix
The server should check the requester's role and reject any invitation that assigns a role above what that requester is allowed to grant; the text says the team started working on a fix but does not confirm it was completed.
How it was found
- Create two accounts: one as Workspace Owner and one as Admin.
- Have the Owner invite the Admin account normally.
- Log in as the Admin and start inviting another member.
- Intercept the invitation request and change the role value to owner.
- Forward the request; the server accepts it and creates an Owner account.
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 shared area where people work together, and each person has a role that decides what they can do. The website's buttons only let an Admin pick lower roles, but the server behind it did not check the role again. By changing the role in the request, the Admin gave themselves the highest role, 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.