IDOR Leads to Deletion of Organization Owner
The team management endpoint accepted a MemberUID from another organization without checking it belonged to the caller's organization. An attacker could promote or delete members and owners of unrelated organizations.
Published on medium.com
I am Saurabh Tripathi, a 24-year-old Bug bounty hunter and Application Security Engineer. My focus lies in uncovering vulnerabilities such as:
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 verify that the MemberUID in the request belonged to the same organization as the authenticated user.
Impact
An attacker could promote or delete members and owners of unrelated organizations, potentially leaving those organizations unmanageable.
What the attacker needed
Two accounts or organizations; ability to intercept requests; knowledge of target MemberUID
The fix
The report was accepted and fixed after strict access control validation was added.
How it was found
- Create two separate organizations, each with a normal member.
- As owner of Organization 2, invite a member and capture their MemberUID; note it is incremental.
- As owner of Organization 1, start a privilege escalation request to promote Org1Member to Admin.
- Intercept the request and replace the MemberUID with the one from Organization 2.
- Replay the request; the Organization 2 member is promoted to Admin in their own organization.
- Using the same method with a delete-member request, replace the MemberUID with the Organization 2 owner's ID and replay to delete that owner.
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 website uses a hidden identifier (MemberUID) to refer to each team member. The server trusted whatever identifier the browser sent without checking it belonged to the same organisation. So a user could swap in someone else's identifier and change or delete that person's account.
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.