
Proof-of-concept for CVE-2026-104586, an OS command injection in AUTOM8N WHM/cPanel CGI scripts that lets an authenticated user execute commands as root.
AUTOM8N CGI scripts execute as root under WHM's AppConfig. They construct system commands by directly concatenating unsanitized HTTP GET/POST form parameters and passing them to subprocess.Popen(cmd, shell=True). An authenticated WHM user can append shell metacharacters to execute arbitrary OS commands as root on the hosting server.
Sending an HTTP request to sync_docroots.cgi with a payload in the user parameter:
user=testuser; touch /tmp/autom8n_poc_evidence;
This results in the execution of the injected command with root privileges.