
Proof-of-concept exploit for CVE-2026-41940, an authentication bypass in cPanel & WHM, enabling unauthenticated access to the control panel.
python3 exploit.py --target https://example.com:2087/
whostmgrsession value generated by the scriptwhostmgrsession value in each request with the one you captured
If successfully exploited, authentication will be bypassed.

Special thanks to @watchtowrlabs for the original research and exploit implementation. This PoC is a modified and extended version of their work.