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

# IDOR en GraphQL

{% hint style="info" %}
En el contexto de **GraphQL, el IDOR** (Las referencias directas inseguras a objetos) pueden ocurrir cuando un atacante es capaz de adivinar o enumerar credenciales (IDs) de objetos dentro de la API y puede usar estos IDs para acceder a objetos a los que no debería tener acceso. Esto puede ocurrir porque los desarrolladores de la API pueden no haber implementado correctamente los mecanismos de autenticación y autorización en su API.
{% endhint %}

Fase de reconocimiento de rutas del sitio 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="/files/14b4ec6c48fb7de94aa8422e58ffd3a81f70407a" alt=""><figcaption></figcaption></figure>

Encontramos en la sectito onb este repositorio **configuración**:

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

Nosotros **interceptar** la solicitud con Burp Suite:

<figure><img src="/files/0d9df946d1f7ae20a8bb7f8e404b1d9bbc02fcdc" alt=""><figcaption></figcaption></figure>

El servidor devuelve de **información confidencial** en otros usuarios si cambiamos el **id** usuario:

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