> 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/queue-poisoning-with-h2-te.md).

# تسميم قائمة الانتظار باستخدام H2.TE

### تسميم طابور الاستجابات عبر تهريب الطلبات H2.TE

* استغل ثغرة تهريب الطلبات لتسميم طابور الاستجابات.
* استخدم هذا التسميم للوصول إلى `/admin` لوحة الإدارة.
* استرد طلب المدير (وبالتالي ملف تعريف الارتباط الخاص بجلسته) عند اتصاله، ثم احذف `carlos` مستخدم.

#### السياق التقني

* يقبل التطبيق الطلبات **HTTP/2** جانب الواجهة الأمامية.
* الواجهة الأمامية **تُخفض** هذه الطلبات من HTTP/2 إلى HTTP/1، حتى عندما يكون الطول غامضًا.
* يعتمد الهجوم على عدم التزامن من النوع **H2.TE**:
* يرسل استعلام HTTP/2 يحتوي على كليهما:
* ملف `Transfer-Encoding: chunked` الرأس
* ملف `Content-Length` الرأس
* الاتصال بالخلفية هو **يُعاد ضبطه كل 10 طلبات**:
* إذا كان الاتصال "مكسورًا"، فأرسل ببساطة بضع طلبات عادية للعودة إلى اتصال نظيف.
* في HTTP/2، لا تحتاج إلى تحديد `Content-Length` عادةً، مما يجعل وجود `Transfer-Encoding` و `Content-Length` غامضًا وقابلًا للاستخدام.

#### أسلوب الهجوم

```http
POST / HTTP/2
المضيف: 0afc007a0423d9b980403f2c00dd00d7.web-security-academy.net
Transfer-Encoding: chunked
طول المحتوى: 120

0

GET / HTTP/1.1
المضيف: 0afc007a0423d9b980403f2c00dd00d7.web-security-academy.net
طول المحتوى: 12

testing=test
```

* يتم رصد جزء HTTP/2 بواسطة الواجهة الأمامية، التي تحوله إلى HTTP/1 للخلفية.
* بسبب الغموض `H2.TE`، تفسر الخلفية نهاية الطلب بشكل مختلف.
* الـ `GET / HTTP/1.1` السطر وما يليه هما **يُحقَن خفيةً** كبداية الاستعلام التالي في سطر الخلفية.

نحن **استرجع الطلب الخاص بالمدير المسموم**، مما يتيح لنا الحصول على: **ملف تعريف ارتباط الجلسة**.

<figure><img src="/files/4b9a76a444935301052dd9c895eb6a24588f598b" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0cf10255bd0b49dce239b27cd8f498d111c57539" 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/queue-poisoning-with-h2-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.
