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.
Relocatable is an innovative tool designed to simplify the creation of Position Independent Code (PIC)…
In cybersecurity, a vulnerability refers to a flaw or weakness in a system, application, or…
The BOF WinRM Client is a Beacon Object File (BOF) extension for Cobalt Strike that…
Dioxus is a cutting-edge framework for building cross-platform applications using the Rust programming language. It…
Modrinth is a cutting-edge platform designed to revolutionize the world of Minecraft modding. Focused primarily…
Deno is a modern runtime for JavaScript, TypeScript, and WebAssembly, designed to address some of…