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

# GraphQL ミューテーション

GraphQL ミューテーションに関する、Webアプリケーションのペネトレーションテスト、エクスプロイトのワークフロー、ペイロード検証、影響評価、修正の文脈でのメモ。

{% hint style="info" %}
一方で、 **GraphQLのミューテーション** は、クライアントがAPI内のデータを変更できるようにする操作です。データの読み取りのみを許可するクエリとは異なり、ミューテーションではクライアントがデータを追加、更新、削除できます。つまり、ミューテーションはAPIの背後にあるデータベースに対して大きな変更を加えるために使われる可能性があります。適切に保護されていない場合、ミューテーションは攻撃者に悪用され、重要なデータの削除や新しいレコードの作成といった、API内での悪意ある変更を実行されるおそれがあります。
{% endhint %}

投稿を作成するために、以下の内容を\*\*見つけます\*\*:

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-bfd0b77d1c5406b1aa76e64676652ad476f7f55e%2FPasted%20image%2020231117204820.png?alt=media" alt=""><figcaption></figcaption></figure>

私たちは **傍受する** Burp Suiteでリクエストを:

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-3cd9567928f8b6cec0e47e40a6243b2b5c3b9cd3%2FPasted%20image%2020231117204844.png?alt=media" alt=""><figcaption></figcaption></figure>

もし、の番号を変更すると **author/\_id**、別人になりすまして投稿を作成できることがわかります:

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-1b93f22fd56159a98d9a3d1805c174b518e5a420%2FPasted%20image%2020231117205237.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-db2d824e9c5ee0211168b9139b3553a199c3e3ee%2FPasted%20image%2020231117205304.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/ja/web-vulnerabilities/graphql-attack/graphql-mutation-pentesting-web.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
