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

# Proceso de varios pasos sin control de acceso

### Proceso de varios pasos sin control de acceso en uno de los pasos

El laboratorio ofrece un panel de administración con un proceso de varios pasos para cambiar el rol de un usuario. Este flujo contiene un fallo: uno de los pasos no aplica control de acceso. / Para practicar, es posible examinar primero el panel de administración con el **administrador:admin** credenciales. / Para resolver el laboratorio, necesitas conectarte con **wiener:peter** y usar el paso vulnerable para elevar tu propio rol al nivel de administrador.

<figure><img src="/files/31f19d58d415f3ae4e1cb8270b56f822d9ed2a48" alt=""><figcaption></figcaption></figure>

### Análisis del proceso

El cambio de rol ocurre en dos solicitudes separadas:

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

#### **Primer paso: solicitud de actualización**

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

Con la sesión de wiener, esta solicitud es rechazada: / El servidor indica que el usuario no tiene permiso.

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

#### **Paso 2: Confirmación de la acción**

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

Esta segunda etapa no incluye **ningún control de acceso**. / Al enviar esta solicitud con la cookie de sesión de wiener:

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

El servidor responde **OK**, aunque wiener no debería tener los permisos necesarios


---

# 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/es/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.
