> 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/user-id-controlled-by-unpredictable-guid-parameter.md).

# ID de usuario controlado por parámetro GUID impredecible

#### ID de usuario controlado por parámetro

Este laboratorio presenta una **escalada de privilegios horizontal** vulnerabilidad en la página de cuenta de usuario. / La particularidad es que **los usuarios se identifican mediante GUID**, es decir, credenciales largas y aleatorias, por ejemplo:

```bash
9e2f3fc0-7035-48ed-ad6d-f643690c7b9d
```

Después de conectarnos a la cuenta **wiener:peter**, puedes ver tu propio GUID en la sección Mi cuenta.

<figure><img src="/files/2bc4878fb8e54d139b3b4c4e5a1d7f80bef8b75d" alt=""><figcaption></figcaption></figure>

#### **Recuperación de GUID mediante publicaciones**

Al navegar por el sitio, encontramos en las **publicaciones visibles** los GUID de otros usuarios:

* El GUID del administrador aparece en una de sus publicaciones.

<figure><img src="/files/84704059d40b01764c31459ca87b9c1d3f9937e0" alt=""><figcaption></figcaption></figure>

De manera similar, podemos recuperar el GUID de **carlos**.

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

```bash
?userId=5abc76d3-7763-4be9-83d1-c6181bcdf0b5
```

#### **Operación: Acceso a la cuenta de Carlos**

La página de cuenta es accesible mediante un parámetro controlable:

```bash
my-account?id=5abc76d3-7763-4be9-83d1-c6181bcdf0b5
```

Simplemente reemplazando nuestro GUID por **carlos**, obtenemos su cuenta:

<figure><img src="/files/f14e95688465af45542b07a3ce39b37e72db2c62" 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/es/web/access-control/user-id-controlled-by-unpredictable-guid-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.
