> 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-idor-pentesting-web.md).

# GraphQL IDOR

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

{% hint style="info" %}
〜の文脈で **GraphQLでは、IDOR** （Insecure Direct Object References）は、攻撃者がAPI内の認証情報（ID）オブジェクトを推測または列挙でき、それらのIDを使って本来アクセスすべきでないオブジェクトにアクセスできる場合に発生することがあります。これは、APIの開発者がAPI内で認証および認可の仕組みを適切に実装していない可能性があるためです。
{% endhint %}

Webサイトのパスの偵察段階:

```bash
gobuster dir -u http://localhost:5000/ -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -t 20

```

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

このリポジトリの sectito onb に見つかります **設定**:

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-fb88a2ba3818a298c4fdc1aa9b23dd8c39e6138b%2FPasted%20image%2020231117194239.png?alt=media" alt="" width="563"><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-b11061e470ae8eb24b5a593c0d7700a6736bba41%2FPasted%20image%2020231117194457.png?alt=media" alt=""><figcaption></figcaption></figure>

サーバーは〜を返す **機密情報** を変更すると他のユーザーに対して **id** ユーザー：

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-091d791397f4ea28de86678820bb4d4a9fab02a0%2FPasted%20image%2020231117194921.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-idor-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.
