
Scanner proof-of-concept per path traversal di Apache HTTP Server (CVE-2021-41773) con supporto multi-host, attivazione/disattivazione della verifica SSL e scansione concorrente.
Prova di concetto per verificare se gli host sono vulnerabili a CVE-2021-41773.
È stato trovato un difetto in una modifica apportata alla normalizzazione dei percorsi in Apache HTTP Server 2.4.49-2.4.50.
Un attaccante potrebbe utilizzare un attacco di path traversal per mappare URL a file al di fuori della directory radice prevista. Se i file al di fuori della directory radice non sono protetti da "require all denied", queste richieste possono avere successo. Inoltre, questo difetto potrebbe divulgare il codice sorgente di file interpretati come script CGI.
Questo problema riguarda solo Apache 2.4.49 e 2.4.50, non le versioni precedenti.
Attualmente ci sono due metodi:
/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>
Usa lo script come segue:
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!)