Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-50379 PoC — Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

Source
Associated Vulnerability
Title:Apache Tomcat: RCE due to TOCTOU issue in JSP compilation (CVE-2024-50379)
Description:Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability during JSP compilation in Apache Tomcat permits an RCE on case insensitive file systems when the default servlet is enabled for write (non-default configuration). This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.1, from 10.1.0-M1 through 10.1.33, from 9.0.0.M1 through 9.0.97. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.
Description
Apache Tomcat(CVE-2024-50379)条件竞争致远程代码执行漏洞批量检测脚本
Readme
复现过程见,脚本引用请注明出处!

https://blog.csdn.net/xc_214/article/details/144583770?spm=1001.2014.3001.5501

脚本使用

批量检测:

python poc.py -f url.txt

单个检测:

python poc.py -u your-ip

![image](https://github.com/user-attachments/assets/db042b9e-3790-4db2-94cb-976a4fcae4fe)
![image](https://github.com/user-attachments/assets/a960c3ff-6492-4c03-ac92-9e58bbab3e22)
![image](https://github.com/user-attachments/assets/1319c053-77d2-4834-8454-e026e6f687a1)
File Snapshot

[4.0K] /data/pocs/1391b39d29c29f190f71e961f33c9ab922309661 ├── [3.0K] ApachTomcat_CVE-2024-50379_ConditionalCompetitionToRce.py └── [ 500] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →