How i found Broken Access Control
A user with permission to remove team members could keep a saved removal request and replay it after leaving the organisation, so the server still deleted a member even though the attacker no longer belonged to the team. An attacker could therefore remove users from an organisation they had already left.
The Web Application was an organization where you can share files chats..etc. There was a function in this application which you can add members to your team.
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 checked the attacker's role when the request was first made but did not re-check membership or authorisation when the same request was replayed later.
Impact
An attacker who has left an organisation could still delete its remaining members, leaving the owner alone.
What the attacker needed
A member account in the organisation; permission to remove team members; ability to intercept and replay requests
The fix
The server should re-check that the requester is still a member with the right role on every removal request, not just at the time the request was first made.
How it was found
- Intercept the request that removes a team member and save it without sending it.
- Leave the owner's organisation so the attacker no longer has access.
- Replay the saved removal request.
- Observe that the member is deleted even though the attacker has left.
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 web app lets team members remove other members, but only while they are still part of the team. The researcher saved the request that removes a user, left the team, then sent the saved request again. The server did not check that the sender was still a member, so the user was deleted anyway.
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.