
一个验证对CVE-2024-21733
ROOT/vulnerable.jsp127.0.0.1:8080https://archive.apache.org/dist/tomcat/
Or use the docker environment: tomcat:9.0.43
docker-compose up -d
Construct vulnerable.jsp (ROOT/vulnerable.jsp) and upload it to ROOT
Run the script

victim.py to simulate a normal user's POST request, the response outputs ID data

[*] Press Enter to close socket connection..., run attacker.py to exploit. If successful, the returned data will contain Invalid character found in method name and part of the ID data

victim.py to close the connection