> 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-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf/csrf-user-information-manipulation-pentesting-web.md).

# Manipulación de información de usuario CSRF

Comenzamos por **interceptar** una comunicación de cambio de nombre con Burp Suite:

<figure><img src="/files/727f2f0ccec149d59027ea8596b5f08393bbb8df" alt="" width="563"><figcaption></figcaption></figure>

Verificamos si la misma consulta se interpreta en **GET**:

<figure><img src="/files/0c33b324d3abe7454bc9c735d8b9170cd32f8818" alt="" width="563"><figcaption></figcaption></figure>

Con **GET**, enviamos una solicitud cambiando el nombre y eliminando el **token** y los módulos de **timestamp de tiempo** para ver si son absolutamente necesarios o no:

<figure><img src="/files/e4b55cfb4a60674f6259a2a696f5d35b746c1959" alt="" width="563"><figcaption></figcaption></figure>

Podemos ver que el nombre de usuario fue **cambiado sin formularios**, por lo que los dos campos no son necesarios:

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

En la \*\*lista de amigos\*\*, encontramos el \*\*id\*\* de nuestra víctima:

<figure><img src="/files/a450fd85bd28158fe26d8764a42f412aa3628258" alt="" width="563"><figcaption></figcaption></figure>

Intentamos lanzar la solicitud cambiando el **id de usuario** por el de la víctima (59) y modificando el **campo del nombre** (en este caso, no tenemos las autorizaciones necesarias):

<figure><img src="/files/2b26908809dd24dd32256d93379a1c877dc60c09" alt="" width="563"><figcaption></figcaption></figure>

Porque la solicitud puede realizarse con **GET**, si enviamos el **enlace** a la víctima y la abren desde su cuenta, su nombre se cambiará porque tienen las necesarias **autorizaciones**:

<figure><img src="/files/094ccabd8237bc3d60024e038151fe6263988003" alt="" width="563"><figcaption></figcaption></figure>

En este caso no es posible, pero si no hubiera **contraseña actual** campo, podríamos cambiar la contraseña del usuario:

<figure><img src="/files/8ba57c11e343a1987b1d654ac29d9b900b59121f" alt="" width="563"><figcaption></figcaption></figure>

Una forma sería enviarles el enlace por **GET**; cuando lo **abran** lo, los cambios se aplican. En algunos casos podemos enviar mensajes en **HTML**. Si enviamos una imagen inexistente con el **enlace insertado** de esta manera:

<figure><img src="/files/a88367936a02a323f9ab4aa29f06292b159ec449" alt="" width="563"><figcaption></figcaption></figure>

Cuando la víctima abre el mensaje y el servidor **interpreta** la imagen (que no existe), los cambios se aplicarán:

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

<figure><img src="/files/a1f7863ec617693a1868e3655c8b1037982fdb73" 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-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf/csrf-user-information-manipulation-pentesting-web.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.
