> 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/owasp-top-10-vulnerabilities/vulnerability-server-side-request-forgery-ssrf/ssrf-api-pentesting-web.md).

# SSRF API

## [SSRF](/ar/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-server-side-request-forgery-ssrf.md):

يتيح لنا زر «Browse» تحميل ملف يُفترض أن يكون صورة تمثل غلاف كتاب، بينما يتيح لنا حقل النص «Cover URL linked to your book» إدخال عنوان URL بحيث تقوم الخدمة بجلبه وتنزيل الصورة.

<figure><img src="/files/755e46134cf369815b073ce530e29bcd4a513fee" alt=""><figcaption></figcaption></figure>

#### **الفتح** [**Burp Suite** ](https://hacking-notes-jordan.gitbook.io/notes/autres/burpsuite)**:**

عند تحميل صورة على الخادم، يتم توفير رابط إلى موقع التخزين.

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

ثم نقوم بهجوم بالقوة الغاشمة على المنافذ الـ 65,535 ونلاحظ أن المنفذ 5000 فقط يُرجع استجابة مختلفة.

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

من خلال التحقق من محتوى المنفذ الداخلي 5000، نكتشف أنه يتيح تحميل ملف.

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

هذا الملف، بصيغة JSON، يسرد واجهات برمجة التطبيقات الداخلية مع المسارات المرتبطة بها. ومن بينها، يبدو المسار `message/authors` مهمًا للغاية بشكل خاص.

<figure><img src="/files/3431fdad963c8b17b07eab03623d6f4d29ebe040" alt=""><figcaption></figcaption></figure>

باستخدام Burp Suite، نصل بالتالي إلى الملف عبر المنفذ 5000 إلى العنوان أدناه:

```url
http://127.0.0.1:5000/api/latest/metadata/messages/authors

```

<figure><img src="/files/024c3e6532535ebba650b077976097d955eddc8b" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/49d1a728ba17ff00a3dae8025999533a85fd0110" alt=""><figcaption></figcaption></figure>

في هذا الملف، نجد أيضًا اسم مستخدم وكلمة مرور بالنص الصريح `dev:dev080217_devAPI!@`

<figure><img src="/files/e893e14e62214e49843c40e9227d281e57631394" 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-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-server-side-request-forgery-ssrf/ssrf-api-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.
