> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/pt-br/web/access-control/user-id-controlled-by-parameter.md).

# ID de usuário controlado por parâmetro

### ID de usuário controlado por parâmetro de solicitação

Este laboratório apresenta uma **escalada horizontal de privilégios** falha na página da conta de usuário. / Para resolver o laboratório, você precisa recuperar a **chave de API do usuário carlos** e enviá-la como solução. / Você pode se conectar com as seguintes credenciais: **wiener:peter**.

<figure><img src="/files/6aaf0944cda2c13d3f2e764b808a5aa92609ff4d" alt=""><figcaption></figcaption></figure>

No nosso próprio painel de usuário (o de wiener), observamos que o ID da conta é transmitido em um parâmetro de URL.

Ao alterar esse parâmetro e substituir nosso ID por carlos, por exemplo:

```bash
/my-account?id=carlos
```

A página então exibe as informações da conta de carlos, permitindo-nos recuperar sua \*\*chave de API\*\*.

<figure><img src="/files/4176714867572b522b2b66b0d743c842ab62566b" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/pt-br/web/access-control/user-id-controlled-by-parameter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
