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

# تقنيات IDOR

> لاستغلال ثغرة IDOR، يمكن للمهاجم أن يحاول **تعديل معرّف كائن** في عنوان URL أو استخدام أداة آلية لاختبار قيم مختلفة. إذا وجد المهاجم معرّفًا يتيح الوصول إلى مورد لا ينبغي أن يكون متاحًا، فقد تم استغلال ثغرة IDOR بنجاح.

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

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

## IDOR:

* ننشئ ملفًا نقوم **يعيد المعرّف** بالرقم 1062:

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

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

إذا قمنا بالتصفية باستخدام رقم آخر، فهذا يشير إلى أن المستند **غير موجود**:

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

### القوة الغاشمة:

* نشن هجومًا من **القوة الغاشمة** لتصفية الملف الموجود:

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

```

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