# Unprotected admin functionality with unpredictable URL

This lab has an unprotected admin panel. It's located at an unpredictable location, but the location is disclosed somewhere in the application.

In this lab, you will find the admin panel in the source code from the developer's notes in JavaScript.

<figure><img src="/files/UFx40m7ICEy92QgoZetS" alt=""><figcaption></figcaption></figure>

In the URL, enter admin-05pwtx. The website's admin page is accessible to anyone due to the lack of security measures.

<figure><img src="/files/90s3FOFa2DA2nQSJQkRJ" alt=""><figcaption></figcaption></figure>

To obtain a flag, delete the user Carlos.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itrp19-notes.gitbook.io/notes/reference/hacking/port-swigger/access-control/unprotected-admin-functionality-with-unpredictable-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
