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

# IDOR em GraphQL

{% hint style="info" %}
No contexto de **GraphQL, o IDOR** (Referências Diretas Inseguras a Objetos) podem ocorrer quando um atacante consegue adivinhar ou enumerar credenciais (IDs) de objetos dentro da API e pode usar esses IDs para acessar objetos aos quais não deveria ter acesso. Isso pode ocorrer porque os desenvolvedores da API podem não ter implementado corretamente os mecanismos de autenticação e autorização em sua API.
{% endhint %}

Fase de reconhecimento dos caminhos do site:

```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/909703b18fbcaf5f8902925287f09fc1bd42a8a5" alt=""><figcaption></figcaption></figure>

Encontramos nesta seção deste repositório **configurações**:

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

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

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

O servidor retorna de **informações confidenciais** em outros usuários se alterarmos o **id** usuário:

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