The Tomcat-CVE-2024-50379-PoC is a proof-of-concept tool designed to demonstrate the exploitation of a critical vulnerability in Apache Tomcat, identified as CVE-2024-50379.
This vulnerability, with a CVSS score of 9.8, arises from a Time-of-check Time-of-use (TOCTOU) race condition during JavaServer Pages (JSP) compilation.
Under specific configurations, this flaw can lead to Remote Code Execution (RCE), posing significant risks to systems running vulnerable versions of Apache Tomcat.
CVE-2024-50379 exploits a race condition in case-insensitive file systems (e.g., Windows). The vulnerability occurs when:
file.jsp
vs. FILE.JSP
) during this narrow time window.For exploitation, the default servlet must be configured to allow write operations—a non-default setting.
The PoC script simulates this attack by automating the exploitation process. It enables users to:
To run the PoC:
go run main.go -u http://localhost:8080/
Replace http://localhost:8080/
with the target URL.
Features:
Limitations:
To secure systems against CVE-2024-50379:
This PoC serves as an educational tool for understanding and addressing critical vulnerabilities in Apache Tomcat environments.
It should only be used for legitimate security research and testing purposes, as unauthorized use is illegal and unethical.
Pystinger is a Python-based tool that enables SOCKS4 proxying and port mapping through webshells. It…
Introduction When it comes to cybersecurity, speed and privacy are critical. Public vulnerability databases like…
Introduction When it comes to cybersecurity, speed and privacy are critical. Public vulnerability databases like…
If you are working with Linux or writing bash scripts, one of the most common…
What is a bash case statement? A bash case statement is a way to control…
Why Do We Check Files in Bash? When writing a Bash script, you often work…