From Broken Access Control to First Bounty
A user removed from a group could still add pictures to a form shared within that group by resending a previously captured request. Additionally, re-adding the user as a friend automatically restored their group membership, potentially granting access to new resources.
infosecwriteups.com
Published on infosecwriteups.com
In’sha Allah (God willing), in the next couple of months, I’ll be sharing some of the reports I submitted to bug bounty platforms and self-hosted programs. These reports will include cases where I received duplicates, no response, or “not applicable” statuses and, of course, the ones that were resolved.
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 re-check group membership on each request, relying only on the initial authorisation.
Impact
A removed user could still modify shared forms, and re-adding them as a friend automatically restored group access, potentially exposing new resources.
What the attacker needed
Three accounts; friendship between accounts; a shared group and form; ability to capture and resend requests
How it was found
- Create three accounts and make two of them friends with the first.
- Create a group including both friends and share a form within it.
- Log in as one friend and capture the request for adding pictures to the form.
- Log in as the group creator and remove that friend from the friend list.
- Resend the captured request as the removed friend and observe it still succeeds.
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 from a group, the system should stop them from using anything shared in that group. Here, the server did not check again whether the person was still a member, so an old request still worked. This is like cancelling a key card but the door still opens because the lock never checks the cancellation.
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.