Skip to content
Access control Write-up Beginner

Broken Access control bug : Bypassing 403’s by finding another endpoint that do the same thing.

A user with only update permission could change a resident's move-in status by adding a parameter to the update request, even though move-in/move-out is supposed to require a separate permission. The separate endpoint correctly enforced the permission, so the update endpoint allowed a permission bypass.

Brandon Roldan Follow

Published on tomorrowisnew.com

Hi. I found a really interesting bug in my private program and i want to share it through this writeup.

tomorrowisnew (@tomorrowisnew_), on tomorrowisnew.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 update endpoint accepted and processed a parameter that should only be handled by the separate move-in/move-out endpoint, without checking the corresponding permission.

What the attacker needed

An account with update permission; no move-in/move-out permission

The fix

The update endpoint should ignore or reject the move-in parameter unless the user also has the move-in/move-out permission.

How it was found

  1. Observe the response when editing a resident and notice a parameter called moved in.
  2. Add that parameter to the update request and set it to true.
  3. Confirm the resident's move-in status changes.
  4. Remove the move-in/move-out permission from the account.
  5. Repeat the update request with the parameter and confirm it still changes the status.

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.

Permissions are rules about what a user is allowed to do. Here, the website had two separate permissions: one for editing resident details and one for moving residents in or out. The edit feature secretly accepted an extra field that changed the move-in status, so someone without the move permission could still change it.

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 Brandon Roldan

View all

2 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.