← All playbooks
HighZero-day · 2026-11-27

Cacti 1.2.31 zero-day 4HTTP2SHELL/4HTTP2ROOT: unauthenticated RCE through the guest account in four HTTP requests, public PoC and no patch

SockAnalyst · Security+ certified analyst.

What happened

On November 26, 2026 a researcher using the handle "ek0ms savi0r" published a working proof-of-concept, called 4HTTP2SHELL / 4HTTP2ROOT, for an unpatched chain in Cacti Core 1.2.31 (the latest release) that goes from a fresh unauthenticated session to command execution as the Cacti server user in four HTTP requests when the guest account is enabled. (1) Opening auth_profile.php gives a guest session and CSRF token. (2) POST auth_profile.php?action=update_data stores an arbitrary string, not a number, in the per-user preview_graphs_per_page setting. (3) Loading graph_view.php?action=preview concatenates that stored value into a SQL LIMIT clause, and the PDO driver accepts a stacked UPDATE against the poller_item table (second-order SQL injection). (4) Calling graph_realtime.php?action=init makes the realtime poller read the altered poller_item row and pass it to PHP popen() unchecked. No CVE has been assigned, the Cacti project has published no advisory or fix, and watchTowr reports no in-the-wild exploitation as of November 27, 2026. Cacti servers often store SNMP communities and device credentials for the whole network, so a compromised server is a strong pivot point; an attacker could also hide alerts by editing poller data.

Who's affected

Anyone running Cacti Core 1.2.31 with the guest (anonymous) account enabled, especially if the web interface is reachable from the internet or untrusted networks. Guest access has been disabled by default since Cacti 0.8.7, so it must have been turned on deliberately. Older 1.2.x builds were not tested. Commands run as the account running the web server/poller, which is root only if Cacti was set up that way.

✅ Fix / patch

  • Disable the guest account now: in Cacti, set Console > Configuration > Settings > Authentication > Guest User to none / remove the guest user, and disable the 'guest' user under Console > Configuration > Users. This breaks the first step of the chain.
  • Take the Cacti web UI off the internet: restrict it to a management network or VPN, or put it behind an authenticated reverse proxy.
  • Do not run the Cacti web server or poller as root.
  • Check for tampering: in the database, look for non-numeric values in settings_user where name='preview_graphs_per_page' and for unexpected commands in poller_item.arg1 (e.g. SELECT user_id,value FROM settings_user WHERE name='preview_graphs_per_page' AND value NOT REGEXP '^[0-9]+$';). Also check PHP logs for non-numeric value warnings from graph_view.php.
  • If you find tampering, assume stored credentials are exposed: rotate SNMP communities, device logins, SSH keys and the Cacti database password. Watch Cacti's GitHub releases and security advisories for 1.2.32 or a fix and apply it as soon as it ships.

🔎 Quick hunt check

No IOCs published (no IPs, domains or hashes); no exploitation reported yet. Hunt the four-request pattern in web logs: requests from one client to auth_profile.php?action=update_data, then graph_view.php?action=preview, then graph_realtime.php?action=init within minutes, particularly from external IPs or without a normal login. On the server, look for shells or download tools spawned by the web/poller user (apache, www-data, nginx, cacti) and non-numeric preview_graphs_per_page values in the database.

MITRE ATT&CK: T1190, T1059.004, T1505, T1552.001, T1562

IOCs

No IOCs (IPs, domains or hashes) published by the sources yet.

Hunt queries

Starting points built only from published indicators. Field names vary; tune before use.

```Cacti 4HTTP2SHELL / 4HTTP2ROOT (Nov 2026): the four-request guest chain in web access logs (CIM Web or raw access_combined), plus shells spawned by the Cacti web/poller user.```
index=* (sourcetype=access_combined OR sourcetype=access_common OR sourcetype=apache:access OR sourcetype=nginx:plus:kv OR tag=web) earliest=11/20/2026:00:00:00
| eval u=lower(coalesce(uri, uri_path, url, "")), q=lower(coalesce(uri_query, "")), full=u."?".q, client=coalesce(src_ip, clientip, src)
| eval step=case(match(full, "auth_profile\.php.*action=update_data"), 2, match(full, "graph_view\.php.*action=preview"), 3, match(full, "graph_realtime\.php.*action=init"), 4, match(full, "auth_profile\.php"), 1, true(), null())
| where isnotnull(step)
| bin _time span=10m
| stats dc(step) as steps values(step) as seen min(_time) as first_seen values(status) as status values(http_user_agent) as ua by client, host, _time
| where steps>=3 AND mvfind(seen, "^2$")>=0 AND mvfind(seen, "^4$")>=0
| convert ctime(first_seen)
| sort - steps
``` update_data + preview + realtime init from the same client inside 10 minutes = the PoC sequence. Legit guests rarely change profile settings. ```

```Process side (auditd / Sysmon for Linux): shells or download tools launched by the Cacti web or poller user.```
index=* (sourcetype=linux:audit OR sourcetype="sysmon:linux" OR tag=process) earliest=11/20/2026:00:00:00
| eval proc=lower(coalesce(process_name, comm, "")), parent=lower(coalesce(parent_process_name, ParentImage, "")), usr=lower(coalesce(user, auid, uid, "")), cmd=coalesce(process, CommandLine, cmdline, "")
| where match(usr, "^(apache|www-data|nginx|cacti|httpd)$") OR match(parent, "(php|php-fpm|httpd|apache2|cmd_realtime|poller)")
| where match(proc, "^(sh|bash|dash|curl|wget|nc|ncat|socat|python3?|perl|base64)$") AND NOT match(cmd, "(?i)(snmpget|snmpwalk|rrdtool|ping|spine)")
| stats count min(_time) as first_seen values(cmd) as commands by host, usr, parent, proc
| convert ctime(first_seen)
// Cacti 4HTTP2SHELL / 4HTTP2ROOT (Nov 2026): four-request guest chain in web logs (W3CIISLog / CommonSecurityLog from a WAF / Syslog access logs) + shells spawned by the Cacti web/poller user (Defender for Endpoint on Linux)
let Since = datetime(2026-11-20);
let Web = union isfuzzy=true
    (CommonSecurityLog | where TimeGenerated >= Since | project TimeGenerated, Client=SourceIP, Host=DestinationHostName, Url=tolower(RequestURL)),
    (Syslog | where TimeGenerated >= Since and SyslogMessage has_any ("auth_profile.php", "graph_view.php", "graph_realtime.php") | project TimeGenerated, Client=extract(@"^(\d{1,3}(?:\.\d{1,3}){3})", 1, SyslogMessage), Host=Computer, Url=tolower(SyslogMessage))
| extend Step = case(Url has "auth_profile.php" and Url has "action=update_data", 2, Url has "graph_view.php" and Url has "action=preview", 3, Url has "graph_realtime.php" and Url has "action=init", 4, Url has "auth_profile.php", 1, 0)
| where Step > 0
| summarize Steps=make_set(Step), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated) by Client, Host, bin(TimeGenerated, 10m)
| where array_length(Steps) >= 3 and set_has_element(Steps, 2) and set_has_element(Steps, 4)
| extend Signal = "cacti_4http2shell_sequence";
let Proc = DeviceProcessEvents
| where Timestamp >= Since
| where AccountName in~ ("apache", "www-data", "nginx", "cacti", "httpd") or InitiatingProcessFileName has_any ("php", "httpd", "apache2")
| where FileName in~ ("sh", "bash", "dash", "curl", "wget", "nc", "ncat", "socat", "python", "python3", "perl", "base64")
| where not(ProcessCommandLine has_any ("snmpget", "snmpwalk", "rrdtool", "spine", "ping"))
| summarize FirstSeen=min(Timestamp), LastSeen=max(Timestamp), Cmds=make_set(ProcessCommandLine, 20) by Host=DeviceName, AccountName, InitiatingProcessCommandLine
| extend Signal = "cacti_user_spawned_shell";
union Web, Proc
| order by FirstSeen desc
// Point the Web branch at whichever table holds your Cacti access logs. Any hit: disable guest, check settings_user/poller_item, rotate stored device credentials.

See all hunt queries →

⏱ CISA deadline

Not in CISA KEV as of Nov 27, 2026.

Sources

Primary source note: The Cacti Group has not published an advisory, fix or CVE for this chain as of Nov 27, 2026. The researcher's own write-up and PoC is the primary source, followed by watchTowr's analysis.

Related playbooks

Get the SockAnalyst Weekly Brief free, every Thursday.

One email a week with the KEV deadlines, patches and hunt queries that matter. New playbooks still post here on the site every morning.

Subscribe free

Read the free weekly pack →