Skip to content
Access control Write-up Beginner

Broken Access Control: A Non-Admin User Can Change Site Configura

A user with only Edit permission on a site could modify administrative site settings through the API, even though the UI blocked access. This allowed lower-privileged users to change tracking and analytics behaviour that should be restricted to administrators.

Hassan saad Follow

Published on medium.com

I’m Hassan Saad (blackeagle300), and this is the first vulnerability write-up I’ve ever published. I thought the finding might be useful to others, so I decided to document it here.

Hassan saad, on 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 API endpoint for site settings did not enforce the Organization Administration permission, only checking site-level Edit permission.

Impact

A lower-privileged user could change tracking and analytics settings that should only be manageable by administrators.

What the attacker needed

A user account with Edit permission on a site

The fix

The API should enforce the same Organization Administration permission check as the UI for site settings.

How it was found

  1. Log in as a user with only Edit permission on a site.
  2. Try to access the site's administrative settings through the UI and observe a permission error.
  3. Send API requests to modify the same settings directly.
  4. Observe that the requests succeed and settings are changed.
  5. Grant the user Organization Administration permission and see the modified settings appear in the UI.

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.

The platform has different permission levels. A user with limited rights should not be able to change certain settings, and the website's interface correctly blocked them. However, the same user could send requests directly to the API and change those settings anyway, because the API did not check permissions properly.

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.

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.