
Este PoC permite determinar si un servidor Nginx en su versión 1.22.1 es vulnerable a ciertas vulnerabilidades conocidas
PoC for CVE-2022-4174_CVE-2022-41742 to determine if Nginx 1.22.1 is vulnerable
This PoC allows determining if an Nginx server version 1.22.1 is vulnerable to certain known vulnerabilities, including:
Memory disclosure in the ngx_http_mp4_module (CVE-2022-41742): Before versions 1.23.2 and 1.22.1, Nginx has a vulnerability in the ngx_http_mp4_module that could allow a local attacker to cause a worker process crash or disclose process memory information through the use of specially crafted audio or video files.
Memory corruption in the ngx_http_mp4_module (CVE-2022-41741): Similar to the previous one, this vulnerability could allow an attacker to cause a worker process crash or potentially execute arbitrary code through malicious MP4 files.
requests libraryTo install requests, use:
pip install requests
TARGET_URL variable in the script with the URL of the server you want to test.python nginx_poc.py
Server header to verify if the server uses Nginx and its version..mp4 file to determine if the module is enabled.ngx_http_mp4_module is present, it alerts about CVE-2022-41741 and CVE-2022-41742.This script only checks for the presence of potential vulnerabilities based on public information. It does not actively exploit any vulnerability and must be used with explicit authorization.