Skip to content
Access control Write-up Beginner

Frontend Security Is Not Enough: A Practical Demonstration of Broken Access Control in REST APIs

The admin page was briefly visible before an alert blocked access, but the underlying REST API still returned data. An attacker could use browser developer tools to read the API response and access admin data without authorisation.

albertstive1010 Follow

Published on medium.com

Hi everyone, in this discussion, I’ll share a little about my experience participating in a private bug bounty competition. Along the way, I discovered something interesting that I’d like to share with fellow researchers and system developers.

Albertstive, 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 REST API endpoint returned admin data without verifying the user's authorisation, relying only on a frontend alert to block access.

Impact

An attacker could read admin data from the API response without authorisation, as the frontend alert did not prevent the data from being fetched.

What the attacker needed

Access to the target website; browser developer tools; a scanning tool such as FFUF

The fix

The API should enforce authorisation checks on the server side so that admin data is not returned to unauthorised users.

How it was found

  1. Scan for URL paths using a tool such as FFUF and check any 301 or 302 responses.
  2. Open the discovered URL and note the tabs visible on the page.
  3. Close the tab and open a new tab with browser developer tools, then go to the Network > Fetch/XHR section.
  4. Reload the page and inspect the API responses for admin data.

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.

A website's admin page looked blocked because a pop-up alert stopped it from loading. But the data behind the page was still being fetched by the browser. By opening the browser's developer tools and watching the network requests, the author could see the admin data in the response, meaning the server did not actually check who was asking.

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 albertstive1010

View all

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