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

# Мутация GraphQL

{% hint style="info" %}
С другой стороны, **Мутации GraphQL** — это операции, которые позволяют clinkts изменять данные в API. В отличие от запросов, которые позволяют только чтение данных, мутации позволяют clinkts добавлять, обновлять или удалять данные. Это означает, что мутации потенциально могут использоваться для внесения серьёзных изменений в базу данных, лежащую в основе API. Если они недостаточно защищены, злоумышленники могут использовать мутации для выполнения вредоносных изменений в API, таких как удаление важных данных или создание новых записей.
{% endhint %}

Мы \*\*находим\*\* содержимое ниже, чтобы создавать посты:

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

Мы **перехватываем** запрос с помощью Burp Suite:

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

Если мы изменим номер **author/\_id**, мы видим, что можем создавать посты, выдавая себя за другого пользователя:

<figure><img src="/files/4cdf24fa949d771f5d339ef929cc6bd9920da812" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5ca39c420f5c00d5d110d19d1359d0b934ace514" 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/ru/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.
