> 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/graphql-attack/graphql-mutation-pentesting-web.md).

# Mutação GraphQL

{% hint style="info" %}
Por outro lado, o **Mutações GraphQL** são operações que permitem que os clientes modifiquem os dados na API. Ao contrário das consultas, que permitem apenas a leitura dos dados, as mutações permitem que os clientes adicionem, atualizem ou excluam dados. Isso significa que as mutações podem ser usadas para realizar grandes mudanças no banco de dados subjacente da API. Se não forem devidamente protegidas, as mutações podem ser exploradas por atacantes para realizar modificações maliciosas na API, como a exclusão de dados importantes ou a criação de novos registros.
{% endhint %}

Nós \*\*encontramos\*\* o conteúdo abaixo para criar posts:

<figure><img src="/files/5d468079f797cacbf7d50aa10ecaa699ca84a7e5" alt=""><figcaption></figcaption></figure>

Nós **interceptamos** a requisição com o Burp Suite:

<figure><img src="/files/0fba7df4730ab1135e1bd24078c855048ebe50e6" alt=""><figcaption></figcaption></figure>

Se mudarmos o número do **author/\_id**, vemos que conseguimos criar posts enquanto nos passamos por outra pessoa:

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

<figure><img src="/files/dcb0487739c0af2c249dfa002840aa1019b023bf" 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/graphql-attack/graphql-mutation-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.
