
ماسح ضوئي لإثبات المفهوم لثغرة اجتياز المسار في خادم HTTP من Apache (CVE-2021-41773) مع دعم مضيفين متعددين، ومفتاح التحقق من SSL، ومسح متزامن.
إثبات المفهوم للتحقق مما إذا كانت المضيفين عرضة لثغرة CVE-2021-41773.
تم العثور على خلل في تغيير تم إجراؤه على تطبيع المسار في Apache HTTP Server 2.4.49-2.4.50.
يمكن للمهاجم استخدام هجوم اجتياز المسار لتعيين عناوين URL إلى ملفات خارج جذر المستند المتوقع. إذا لم تكن الملفات خارج جذر المستند محمية بـ "require all denied"، فقد تنجح هذه الطلبات. بالإضافة إلى ذلك، يمكن لهذا الخلل تسريب مصدر الملفات المُفسَّرة مثل نصوص CGI.
تؤثر هذه المشكلة فقط على Apache 2.4.49 و2.4.50 وليس الإصدارات الأقدم.
يوجد حاليًا طريقتان:
/etc/apache2/apache2.conf:<!-- Vulnerable (Require all granted in '/') -->
<Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<!-- Patched (Require all denied in '/') -->
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
استخدم السكريبت كما يلي:
CVE-2021-41773.py [-h] [--nosslcheck] [--cores CORES] [--file TARGETFILE] host
Checks if an apache server is vulnerable to CVE-2021-41773.
optional arguments:
-h, --help show this help message and exit
--host HOST ip/domain to be checked e.g. 'https://google.com/'.
--nosslcheck, -n Do not verify ssl certificates.
--cores CORES, -C CORES
Specify number of cores that should be dedicated to the task, default: 1
--file TARGETFILE, -f TARGETFILE
Specify file to fetch list of hosts from, example: "/home/user/Desktop/myfile.txt"
--rce, -r When toggled checks if target is susceptible to RCE (NOT YET IMPLEMENTED!)