Skip to content
Access control Write-up Beginner

Unprotected Admin Functionality

An admin panel was exposed without any authentication or authorization check, and its path was disclosed in the public robots.txt file. An attacker could visit the URL directly and perform administrative actions such as deleting user accounts.

medium.com

Published on medium.com

This lab demonstrates a vertical privilege escalation vulnerability where an admin panel is exposed without any authentication check. By reading the application’s robots.txt file, I discovered the hidden admin endpoint and used it to delete a user - with no credentials, no exploitation tools, and no payload.

Erinmin, 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

The developer built the admin panel but did not implement any server-side check to verify that the requesting user has admin privileges before serving the page.

Impact

An unauthenticated attacker could access full admin functionality, including deleting, modifying, or creating user accounts, viewing private data, and escalating privileges.

What the attacker needed

None

The fix

Every sensitive route should enforce authorization on the server side on every request, and sensitive paths should not be disclosed in robots.txt.

How it was found

  1. Navigate to the target's robots.txt file.
  2. Read the disallowed path that reveals the admin panel location.
  3. Navigate directly to the admin panel URL.
  4. Observe that the admin panel loads without any authentication challenge.
  5. Locate the user named carlos in the user list.
  6. Click delete to remove that user.

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.

Some websites have special pages meant only for administrators. This site put the admin page at a secret address but never checked whether the person visiting was actually an admin. Worse, it listed that address in a public file called robots.txt, which is meant to tell search engines what not to index. Anyone who read that file could open the admin page and delete users.

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.