Unprotected admin functionality — PortSwigger Access control vulnerabilities Lab 1
Finding ID: BAC-Portswigger-001Title: Unprotected Admin FunctionalityRisk (Severity): HighRationale: 2026-7-28 07:43:6 Author: infosecwriteups.com(查看原文) 阅读量:23 收藏

Zeyad Naguib

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

Reproducible Steps (PoC — Lab Only) :

  1. First, open the target lab in a browser, read lab description carefully.

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-panel

5. Replace /robots.txt with the disclosed path:

https://LAB-ID.web-security-academy.net/administrator-panel

6. Confirm that the admin panel loads without authentication and locate the user list.

Get Zeyad Naguib’s stories in your inbox

Join Medium for free to get updates from this writer.

Remember me for faster sign in

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

Impact :

  • Unauthorized access to administrative functionality
  • Ability to delete or modify user accounts
  • Full compromise of application security
  • Clear exploitation of Broken Access Control

Remediation (Recommended) :

  1. Enforce Authentication
    Require login before accessing any admin endpoints.
  2. Implement Authorization Checks
    Ensure only privileged users can perform administrative actions.
  3. Do Not Rely on robots.txt
    robots.txt must never be used to protect sensitive paths.
  4. Apply Role-Based Access Control (RBAC)
    Validate permissions on every sensitive request.
  5. Regular Security Testing
    Include access control testing in security assessments.

References :

Written by Zeyad Naguib,
🔗 https://www.linkedin.com/in/zeyadnageeb
✍️ https://medium.com/@zeyadnaguib1


文章来源: https://infosecwriteups.com/unprotected-admin-functionality-portswigger-access-control-vulnerabilities-lab-1-6f20abccfe14?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh