Skip to content
Access control Write-up Beginner

Breaking Access Control:Path Manipulation (Part 1)

The article describes three broken access control scenarios where administrative functionality was reachable without authentication. An attacker could reach an admin dashboard by guessing a path, find a hidden admin endpoint in client-side JavaScript, or bypass URL restrictions by supplying an X-Original-URL header.

medium.com

Published on medium.com

In web development, we often see the “Security by Obscurity” fallacy — the belief that hiding a URL or keeping it off the UI is sufficient to prevent unauthorized access. As a security researcher, I consider this one of the most critical failures in modern application architecture.

Yassin Hamada, 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 application relied on hidden URLs and perimeter URL checks instead of enforcing authorisation on the server for each request.

Impact

An unauthenticated attacker could reach administrative dashboards and execute restricted actions such as deleting user accounts.

What the attacker needed

No authentication required; ability to send custom HTTP headers

The fix

Authorisation should be enforced in server-side logic based on the session and user identity, not on hidden URLs or user-supplied headers.

How it was found

  1. Strip the login path and try common admin alternatives.
  2. Access the administrator panel path and reach the dashboard.
  3. Audit client-side source and JavaScript files to find the admin endpoint.
  4. Append the discovered path to the base URL to reach the admin interface.
  5. Request the admin path directly and observe a 404.
  6. Send a request with an X-Original-URL header pointing at the admin delete action.

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 means checking whether a user is allowed to do something. Here the server never checked, so simply visiting a different web address, reading the page's JavaScript, or adding a special request header let someone reach admin features. The fix is to check permissions on the server for every action, not to hide addresses.

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.