
Nginx CVE-2019-20372 PoC, Unauthenticated File Upload Exploit
Poc for CVE 2019-20372
Description
NGINX before 1.17.7, with certain error_page configurations, allows HTTP request smuggling, as demonstrated by the ability of an attacker to read unauthorized web pages in environments where NGINX is being fronted by a load balancer.
This Python script is designed to perform a series of security tests on a web server with the aim of detecting the CVE-2019-20372 vulnerability on servers running a vulnerable version of Nginx (1.14.2). Additionally, the script checks the HTTP headers, the allowed methods, and attempts an exploitation.
Retrieve the HTTP headers:
Check the Nginx version:
Server header.Check the allowed HTTP methods:
Attempt to exploit the CVE-2019-20372 vulnerability:
requests package (Install using pip install requests)