Unprotected Admin Functionality: The Admin Panel Was Listed in robots.txt (PortSwigger Lab Walkthrough)
A step-by-step PortSwigger lab walkthrough: the developers hid their admin panel and even listed it in robots.txt to keep search engines away. Anyone can read robots.txt, so the path leaked, and with no login on the panel, anyone could delete users.

Difficulty: Apprentice
Category: Access control
Lab: Unprotected admin functionality
The developers hid their admin panel and told search engines not to crawl it. That one line in robots.txt told everyone exactly where it was.
This is a very simple lab. You don't even need Burp Suite, only a browser.
The goal

The lab has an unprotected admin panel. To solve it, delete the user carlos.
Where hidden endpoints usually leak
A "hidden" page is only hidden until something mentions it. Sensitive endpoints often leak in:
- HTML comments left in the page source
- JavaScript files that build links or call APIs
- sitemap.xml, which lists pages for search engines
- robots.txt, which tells search engines what not to crawl
In this lab, it's robots.txt.
Step 1: Read robots.txt
Open the lab, and add /robots.txt to the end of the lab URL in the address bar.

User-agent: *
Disallow: /administrator-panelDisallow asks search engine robots not to crawl that path. But robots.txt is a public file. Anyone can read it, and here it hands us the exact path of the admin panel.
Step 2: Open the admin panel directly
Copy /administrator-panel, paste it after the lab URL in the address bar, and press Enter.

No login, no password. The panel opens for anyone. Opening a page directly by its URL like this, instead of finding it through the site's navigation, is called forced browsing.
Step 3: Delete carlos
Click Delete next to carlos, and the lab is solved.

What was going on?
The developers didn't want anyone to reach this admin panel, so they tried to keep it hidden. To stop search engines from crawling it, they disallowed it in robots.txt. But robots.txt is readable by anyone, so that line actually revealed the endpoint.
The real problem is the second mistake: there was no login and no access check on the panel itself. Once the path was known, anyone could use it, including deleting other users.
Hiding a page is not access control.
The fix
- Protect the admin panel on the server: require a login, and check on every request that the user is actually an admin.
- Don't list sensitive endpoints in robots.txt. It's a public file. If a path must stay private, protect it; don't advertise it.
Watch the video walkthrough
https://www.youtube.com/@devsecknight
References
| Resource | Why it is useful |
|---|---|
| PortSwigger Lab: Unprotected admin functionality | The official lab used in this walkthrough. |
| PortSwigger: Access control vulnerabilities | PortSwigger's guide to broken access control and how to prevent it. |
| OWASP Top 10: Broken Access Control | Why broken access control is the number one web application risk. |
This is a PortSwigger practice lab, built to be hacked. Only test systems you own or have written permission to test. Security audits and private pentests: click to reveal email

