# User role controlled by request parameter

This lab has an admin panel at`/admin`, which identifies administrators using a forgeable cookie. Solve the lab by accessing the admin panel and using it to delete Carlos. You can log in to your own account using the following credentials:

On the lab's login page, enter the credentials that were provided to you.

Observe that the response sets the cookie Admin=false. Change it to Admin=true.

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

Admin panel shows up in Burp repeater

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

Under "Application" in the Chromium browser, you will discover local cookies.

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

Change Admin cookie to true to enable admin panel

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

The flag

<figure><img src="/files/8ake0iMWOCGIfuBwpvEd" alt=""><figcaption></figcaption></figure>


---

# 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/user-role-controlled-by-request-parameter.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.
