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

# Manipulação de Informações do Usuário via CSRF

Começamos por **interceptamos** uma comunicação de alteração de nome com o Burp Suite:

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

Verificamos se a mesma consulta é interpretada em **GET**:

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

Com **GET**, enviamos uma requisição alterando o nome e removendo o **token** e o **carimbo de data e hora** para ver se eles são absolutamente necessários ou não:

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

Podemos ver que o nome de usuário foi **alterado sem formulários**, então os dois campos não são necessários:

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

Na \*\*lista de amigos\*\*, encontramos o \*\*id\*\* da nossa vítima:

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

Tentamos enviar a requisição alterando o **id do usuário** com o da vítima (59) e modificando o **campo do nome** (neste caso, não temos as autorizações necessárias):

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

Como a requisição pode ser realizada com **GET**, se enviarmos o **link** para a vítima e ela o abrir a partir da conta dela, o nome dela será alterado porque ela tem as **autorizações**:

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

Neste caso, não é possível, mas se não houvesse **senha atual** campo, poderíamos alterar a senha do usuário:

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

Uma forma seria enviar o link para eles via **GET**; quando eles **abrirem** ele, as alterações são aplicadas. Em alguns casos, podemos enviar mensagens em **HTML**. Se enviarmos uma imagem inexistente com o **link inserido** desta forma:

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

Quando a vítima abre a mensagem e o servidor **interpreta** a imagem (que não existe), as alterações serão aplicadas:

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

<figure><img src="/files/226ee4ef433cef9e12e2ffccdd051979fa4e578d" 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-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.
