
WBCE CMS <= 1.6.3 के लिए प्रमाणित RCE एक्सप्लॉइट जो एक दुर्भावनापूर्ण मॉड्यूल ज़िप बनाता है जिसमें PHP रिवर्स शेल और netcat लिसनर होता है।
यह एक प्रमाणित रिमोट कोड निष्पादन (Authenticated RCE) भेद्यता है जो मुझे TryHackMe के Hackfinity इवेंट में खेलते समय मिली। इसका परीक्षण Ubuntu पर चल रहे संस्करणों 1.6.2 और 1.6.3 पर किया गया था, और यह संभावित रूप से निचले संस्करणों को भी प्रभावित कर सकती है। डिफ़ॉल्ट रूप से WBCE अपलोड किए गए किसी भी मॉड्यूल पर भरोसा करता है। .zip मॉड्यूल फ़ाइल पर की जाने वाली एकमात्र जाँच यह है कि उसमें info.php फ़ाइल मौजूद है या नहीं। WBCE के /admin/modules/install.php से अंश:
// Check if uploaded file is a valid Add-On zip file
if (!($list && file_exists($temp_unzip . 'info.php'))) {
// Remove the temp unzip directory and the temp zip file
rm_full_dir($temp_unzip);
if (file_exists($temp_file)) {
unlink($temp_file);
}
$admin->print_error($MESSAGE['GENERIC_INVALID_ADDON_FILE']);
}
एक बार मॉड्यूल इस जाँच को "valid Add-On" के रूप में पार कर लेता है, तो सर्वर पर कोई भी install.php स्क्रिप्ट स्वचालित रूप से निष्पादित हो जाती है। यह एक्सप्लॉइट बस php रिवर्स शेल को php पेलोड के रूप में उपयोग करता है।
YouTube प्रदर्शन: https://youtu.be/Dhg5gRe9Dzs?si=LHC29PBRRRPNNy73
Description:
This is an Authenticated RCE exploit for WBCE CMS version <= 1.6.3
It will create an infected module .zip file and start a netcat listener.
Once the zip is created, you will have to login to the admin page
to upload and install the module, which will immediately run the shell
Shell taken from: https://github.com/pentestmonkey/php-reverse-shell/tree/master
Usage:
./exploit.sh <lhost> <lport>