
This repository contains a Proof of Concept (POC) for CVE-2024-50379, a vulnerability affecting Apache Tomcat. The issue involves a Time-of-Check Time-of-Use (TOCTOU) race condition, which can lead to Remote Code Execution (RCE), especially on case-insensitive file systems like Windows.
CVE-2024-50379 is a vulnerability in Apache Tomcat that allows attackers to execute arbitrary code through a TOCTOU race condition. On case-insensitive file systems (e.g., Windows or macOS) and improperly configured servlets, this issue can be exploited.
The POC demonstrates the exploitation of CVE-2024-50379 by uploading a malicious JSP file that can replace existing files with a different case (FILE.JSP overwriting file.jsp) in a Windows-based environment.
Download and play the POC.mp4 file from the repository.
File Upload Exploit:
file.jsp).FILE.JSP).file.jsp) will be overwritten.Changes in web.xml:
web.xml can enable write access for the Default Servlet, making the exploitation possible.For more insights into CVE-2024-50379, check out my detailed blog:
Deep Dive & POC of CVE-2024-50379 in Apache Tomcat
This repository is provided under the MIT License.