CVE-2026-41940 Splunk · SPL

Detect CVE-2026-41940: WebPros cPanel & WHM / WP2 Missing Authentication for Critical Function in Splunk

CVE-2026-41940 is an actively exploited missing authentication vulnerability (CWE-306) in WebPros cPanel & WHM and WP2 (WordPress Squared). Unauthenticated remote attackers can invoke critical administrative functions without valid credentials, enabling account takeover, malicious plugin installation, privilege escalation, and full server compromise. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.

MITRE ATT&CK

Tactic
Initial Access Privilege Escalation Persistence

SPL Detection Query

Splunk (SPL)
spl
index=web sourcetype IN ("iis", "apache:access", "nginx:access", "cpanel:access")
(uri="*/json-api/*" OR uri="*/execute/*" OR uri="*/xmlapi/*" OR uri="*/cpsess*" OR uri="*/wp-json/*")
(uri="*createacct*" OR uri="*removeacct*" OR uri="*passwd*" OR uri="*addpkg*" OR uri="*suspendacct*" OR uri="*installplugin*" OR uri="*createuser*" OR uri="*unsuspendacct*")
status IN ("200", "201", "301", "302")
| eval auth_header=if(isnull(cs_username) OR cs_username="-", "missing", "present")
| where auth_header="missing"
| stats count AS request_count, dc(uri) AS distinct_endpoints, values(uri) AS endpoints, earliest(_time) AS first_seen, latest(_time) AS last_seen BY src_ip, dest, http_method
| where request_count >= 1
| eval risk=case(request_count>=10, "critical", request_count>=3, "high", true(), "medium")
| eval cve="CVE-2026-41940"
| table first_seen, last_seen, src_ip, dest, http_method, request_count, distinct_endpoints, endpoints, risk, cve
| sort - request_count
critical severity medium confidence

Detects unauthenticated exploitation attempts against cPanel & WHM and WP2 administrative API endpoints. Correlates successful HTTP responses to critical function paths with missing authentication context.

Data Sources

Web Server Access LogscPanel Access LogsReverse Proxy Logs

Required Sourcetypes

iisapache:accessnginx:accesscpanel:access

False Positives & Tuning

  • Legitimate API integrations using cPanel API tokens that do not populate the username field in web server logs
  • Load balancer health probes reaching cPanel management endpoints and appearing as unauthenticated requests
  • Automated backup or provisioning systems using service accounts not reflected in web access log username fields

Other platforms for CVE-2026-41940


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1CVE-2026-41940 Unauthenticated cPanel Account Creation via JSON API

    Expected signal: HTTP POST request to /json-api/createacct on port 2086 with HTTP 200 response and no Authorization header in web server access logs; corresponding cPanel audit log entry for account creation

  2. Test 2CVE-2026-41940 Unauthenticated Password Change via WHM XMLAPI

    Expected signal: HTTP GET request to /xmlapi/passwd on port 2086 with HTTP 200 response visible in cPanel access logs; no session cookie or API token in request headers; cPanel audit log records password change event

  3. Test 3CVE-2026-41940 Unauthenticated WP2 Plugin Installation via WordPress REST API

    Expected signal: HTTP GET and POST requests to /wp-json/wp/v2/plugins with HTTP 200/201 responses in web server access logs; WordPress debug log records plugin installation event; file system activity shows new directory creation under wp-content/plugins/

Unlock Pro Content

Get the full detection package for CVE-2026-41940 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections