How I Discovered 5 broken Access Control Bugs in a Single Web App
The application exposed private posts and files through unauthenticated endpoints using guessable or archived code parameters, and failed to enforce subgroup membership for sharing, posting, and commenting. An attacker could access private content and perform actions in subgroups they did not belong to.
Published on 1yz02.medium.com
In this write-up, I’ll share how I found 5 Broken Access Control vulnerabilities in a single application
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 application relied on unguessable codes or stale session tokens instead of verifying the user's authorisation for each request.
Impact
An attacker could access private posts and files without authentication, share posts into subgroups they are not a member of, and continue posting and commenting after being removed from a subgroup.
What the attacker needed
No account for bugs #1 and #2; A free account for bugs #3-#5; Victim clicks a link (for bugs #1 and #2)
How it was found
- Create a group and upload a file, triggering an email notification with a link containing a code parameter.
- Open the link in a different browser without an active session and observe access to the private post.
- Use the Wayback Machine to find archived URLs with the same pattern and access many private posts.
- For file access, open a file URL containing a postcode parameter without authentication and observe the file loads.
- For subgroup sharing, intercept the share request as admin, replace the token with a user only in Sub-1, and forward to share into Sub-2.
- For post creation after removal, intercept a post request as a member, remove the user from the subgroup, then forward the request and observe it 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.
Access control is like a bouncer checking if you're allowed into a club. Here, the app forgot to check membership for some actions, so anyone with a link could read private posts or files, and users could post in groups they weren't part of. This is called broken access control.
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.