Skip to content
Access control Write-up Intermediate

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.

Yahya Hammam Follow

Published on 1yz02.medium.com

In this write-up, I’ll share how I found 5 Broken Access Control vulnerabilities in a single application

Yahya Hammam, on 1yz02.medium.com

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

  1. Create a group and upload a file, triggering an email notification with a link containing a code parameter.
  2. Open the link in a different browser without an active session and observe access to the private post.
  3. Use the Wayback Machine to find archived URLs with the same pattern and access many private posts.
  4. For file access, open a file URL containing a postcode parameter without authentication and observe the file loads.
  5. 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.
  6. 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.

More by Yahya Hammam

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.