


Authorization: Basic base64("任意内容\nuser=root\nhasroot=1\ntfa_verified=1\nsuccessful_internal_auth_with_timestamp=1746000000")每一行被写入session文件后,都会成为独立的记录。

阶段1:Session预创建— 向目标2087端口发送带有无效凭据的登录请求,获取 cookie。 阶段2:CRLF载荷注入— 去掉cookie中的ob段,构造含CRLF序列的Basic Authorization头重放请求。注入whostmgrsession、user=root、hasroot=1、tfa_verified=1、successful_internal_auth_with_timestamp、/scripts2/listaccts等字段。 阶段3:Cache晋升— 请求 端点,触发session加载器从磁盘读取raw session文件,将所有注入字段加载到缓存。 阶段4:权限获取与横向移动— 通过WHM界面执行命令、修改root密码、安装后门。cPanelSniper工具在这一阶段提供交互式Shell访问,支持批量操作。
立即升级至11.86.0.41及以上版本
限制WHM端口(2087)的入站流量,仅允许可信IP访问
排查 目录下是否存在包含异常字段的session文件/var/cpanel/sessions/raw/
检查access日志中是否存在大量无 的 请求cp_security_token的/scripts2/listaccts
使用cPanel官方的IOC检测脚本 进行检查ioc_checksessions_files.sh

https://www.securityweek.com/over-40000-servers-compromised-in-ongoing-cpanel-exploitation/ https://thehackernews.com/2026/05/critical-cpanel-vulnerability.html
https://www.bleepingcomputer.com/news/security/critical-cpanel-flaw-mass-exploited-in-sorry-ransomware-attacks/ https://www.picussecurity.com/resource/blog/cve-2026-41940-explained-cpanel-whm-authentication-bypass-hit-1-5m-servers https://www.helpnetsecurity.com/2026/05/05/cve-2026-41940-cpanel-exploited/ https://nvd.nist.gov/vuln/detail/CVE-2026-41940 https://github.com/ynsmroztas/cPanelSniper
夜雨聆风