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

# IDOR в GraphQL

{% hint style="info" %}
В контексте **GraphQL, IDOR** (Insecure Direct Object References) могут возникать, когда атакующий способен угадать или перечислить учетные данные (ID) объектов внутри API и может использовать эти ID для доступа к объектам, к которым у него не должно быть доступа. Это может происходить потому, что разработчики API могли неправильно реализовать механизмы аутентификации и авторизации в своем API.
{% endhint %}

Фаза разведки путей сайта:

```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="/files/f31cfe0d0dcc07f6077076cb963b1556cc9f2548" alt=""><figcaption></figcaption></figure>

Мы находим в секции этого репозитория **настройки**:

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

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

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

Сервер возвращает **конфиденциальную информацию** на других пользователей, если мы изменим **id** пользователем:

<figure><img src="/files/1599d0037a026dae0ee5b0c971afb467f7cdea90" 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-idor-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.
