Finding ID: BAC-Portswigger-001
Title: Unprotected Admin Functionality
Risk (Severity): High
Rationale:
The application exposes an administrative interface that is accessible without authentication. The admin panel path is disclosed through the robots.txt file and is not protected by any server-side authorization checks. An attacker can directly access the admin panel and perform sensitive actions such as deleting user accounts, leading to full compromise of the application.
Affected asset / Location:/administrator-panel (Admin panel endpoint)
Root cause:
Missing authentication and authorization checks on administrative functionality. The application relies on obscurity instead of enforcing proper access control.
Discovery date: 2025–12–30
Executive Summary :
The application contains an unprotected admin panel that can be discovered by viewing the robots.txt file. Any unauthenticated user can access the admin interface and execute privileged actions, including deleting users. This represents a clear case of Broken Access Control and allows complete administrative takeover of the application.Press enter or click to view image in full size
Press enter or click to view image in full size
2. Next, access the lab …
3. Append /robots.txt to the lab URL:
Press enter or click to view image in full size
4. Observe that the file reveals a hidden admin path:
Disallow: /administrator-panel5. Replace /robots.txt with the disclosed path:
https://LAB-ID.web-security-academy.net/administrator-panel6. Confirm that the admin panel loads without authentication and locate the user list.
Join Medium for free to get updates from this writer.
7. Click Delete next to the user carlos.
Press enter or click to view image in full size
8. The user is successfully deleted, solving the lab.
Press enter or click to view image in full size
robots.txt must never be used to protect sensitive paths.