> 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/multi-step-process-without-access-control.md).

# Processo em Múltiplas Etapas sem Controle de Acesso

### Processo de várias etapas sem controle de acesso em uma etapa

O laboratório oferece um painel de administração com um processo de várias etapas para alterar a função de um usuário. Este fluxo contém uma falha: uma das etapas não aplica controle de acesso. / Para treinar, é possível primeiro examinar o painel de administração com o **administrator:admin** credenciais. / Para resolver o laboratório, você precisa se conectar com **wiener:peter** e usar a etapa vulnerável para elevar sua própria função ao nível de administrador.

<figure><img src="/files/55b4802b53fae540a48e78cae048bb25290ce356" alt=""><figcaption></figcaption></figure>

### Análise do processo

A mudança de função ocorre em duas solicitações separadas:

<figure><img src="/files/3ed853f16709ff8fb29194c48395b916a0dafa86" alt=""><figcaption></figcaption></figure>

#### **Primeira etapa: solicitação de promoção**

```bash
username=carlos&action=upgrade
```

Com a sessão de wiener, esta solicitação é recusada: / O servidor indica que o usuário não tem permissão.

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

#### **Etapa 2: Confirmação da ação**

```bash
action=upgrade&confirmed=true&username=carlos
```

Esta segunda etapa não inclui **nenhum controle de acesso**. / Ao enviar esta solicitação com o cookie de sessão de wiener:

<figure><img src="/files/112f051ed27f230a276611eaebe276846b716a16" alt=""><figcaption></figcaption></figure>

O servidor responde **OK**, embora wiener não devesse ter os direitos necessários


---

# 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/multi-step-process-without-access-control.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.
