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

# Techniques IDOR

> Pour exploiter une vulnérabilité IDOR, un attaquant peut essayer de **modifier l'identifiant d'un objet** dans l'URL ou utiliser un outil automatisé pour tester différentes valeurs. Si l'attaquant trouve un identifiant qui permet d'accéder à une ressource qui ne devrait pas être disponible, la vulnérabilité IDOR a été exploitée avec succès.

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

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

## IDOR :

* nous créons un fichier que nous **retourne l'identifiant** sous le numéro 1062 :

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

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

Si nous filtrons par un autre nombre, cela indique que le document **n'existe pas**:

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

### force brute :

* nous lançons une attaque de **force brute** pour filtrer le fichier qui 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/a5f4416d657c0ac61245c89935c29d58b2243e8c" 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/fr/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.
