> 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/insecure-direct-object-reference-idor-attack/idors-techniques-pentesting-web.md).

# Técnicas de IDOR

> Para explorar uma vulnerabilidade IDOR, um invasor pode tentar **modificar o identificador de um objeto** na URL ou usar uma ferramenta automatizada para testar valores diferentes. Se o invasor encontrar um identificador que permita acesso a um recurso que não deveria estar disponível, a vulnerabilidade IDOR foi explorada com sucesso.

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

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

## IDOR:

* criamos um arquivo que nós **retorna o identificador** como o número 1062:

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

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

Se filtrarmos por outro número, isso indica que o documento **não existe**:

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

### força bruta:

* lançamos um ataque de **força bruta** para filtrar o arquivo que existe:

```bash
wfuzz --hh=10703,1233 -c -t 200 -z range,1-1500 -d 'pdf_id=FUZZ' http://localhost:5000/download

```

<figure><img src="/files/4d08f8b078c803f5b28bad302664590ab0b5d10a" alt="" width="563"><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/insecure-direct-object-reference-idor-attack/idors-techniques-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.
