# Cacti 4HTTP2ROOT (4HTTP2SHELL) Zero-Day: Unauthenticated Command Execution via Stored Second-Order SQL Injection in Guest Profile Setting (No CVE Assigned)

> A public zero-day PoC dubbed 4HTTP2ROOT/4HTTP2SHELL chains a stored second-order SQL injection in a guest-writable Cacti profile setting into operating-system command execution via the realtime poller, when anonymous guest access is enabled (off by default). It was demonstrated in a lab against Cacti 1.2.31; no CVE, official severity or patch was identified and no in-the-wild exploitation had been reported as of 2026-11-27.

- **Published:** 2026-11-27T06:08:39Z
- **Last reviewed:** 2026-11-27T11:39:42.728Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6953
- **ID:** TL-2026-6953
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 29 (1 shown free below)
- **CVEs:** CVE-2026-39893

## Description

4HTTP2ROOT is the name used by Previdian, RavenAI and press coverage for a Cacti network-monitoring flaw disclosed publicly on 2026-11-26 together with a working exploit by researcher 'ek0ms savi0r' (ekomsSavior, publishing under Church of Malware). The PoC repository itself calls the chain 4HTTP2SHELL. Previdian describes it as insufficient validation of guest-controlled settings that introduces a stored, second-order SQL injection which can be used to manipulate Cacti's polling configuration and ultimately run arbitrary operating-system commands.

Precondition: the Cacti guest user (anonymous access) must be enabled. Cacti documents this as disabled by default but available so administrators can share graphs without sign-in. No other authentication is required.

Exploit chain as described by the RavenAI write-up and the PoC README (third-party claims, verified in a lab by Previdian, not yet confirmed by the vendor): (1) a GET to auth_profile.php?tab=general as an anonymous guest yields a guest session cookie and CSRF token; (2) a POST to auth_profile.php (action=update_data) stores a non-integer string in the per-user setting preview_graphs_per_page (settings_user table) - the write itself is a prepared statement but the value is not validated as an integer; (3) a GET to graph_view.php?action=preview reads the stored value back and concatenates it into a SQL LIMIT clause (graph_view.php builds $limit, lib/auth.php get_allowed_graphs() concatenates it), allowing a stacked statement that updates poller_item (arg1, and host_id/action) for a chosen local_data_id; (4) a GET to graph_realtime.php?action=init triggers poller_realtime.php/cmd_realtime.php, which passes poller_item.arg1 to exec_poll()/popen() in lib/poller.php, executing the attacker-controlled command. RavenAI also notes a PHP shell or marker file may be written to the web root and served over HTTP.

Impact: commands run with the privileges of the Cacti web/poller process. The researcher showed root-level execution only in a lab where Cacti already ran as root; typical deployments run as www-data or apache. Even without root, a compromised Cacti server can expose stored network-device credentials (SNMP communities and similar) that enable lateral movement into monitored infrastructure.

Scope and status: Cacti 1.2.31 (latest stable release, 2026-06-15) is the only confirmed affected version; the full range is unknown. Previdian reports no official patch identified as of 2026-11-26; Cacti's advisories and 1.2.31 release notes do not name preview_graphs_per_page. Related but distinct earlier Cacti SQL injection advisories (e.g. CVE-2026-39893, CVE-2026-39955, CVE-2026-39948, CVE-2026-46531) were reviewed and not shown to cover this chain. Vendor tracking: Previdian VULN-2026-0010. No attribution, malware, C2 infrastructure or network IOCs have been published. Interim mitigation (does not fix the SQL injection): disable the guest user (Console > Configuration > Users / remove the Guest User from authentication settings), restrict access to management networks or VPN, run Cacti without root, and review settings_user and poller_item for tampering. Severity HIGH is the analyst's provisional assessment, not a source-stated rating.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1078.001 Valid Accounts: Default Accounts
- T1059.004 Command and Scripting Interpreter: Unix Shell
- T1505.003 Server Software Component: Web Shell
- T1565.001 Data Manipulation: Stored Data Manipulation
- T1552 Unsecured Credentials
- T1562 Impair Defenses
- T1552.001 Unsecured Credentials: Credentials In Files
- T1033 System Owner/User Discovery
- T1070 Indicator Removal

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Cacti 4HTTP2ROOT Guest Exploit Chain (auth_profile → graph_view preview → graph_realtime init)** (`TL-2026-6953-SPL-001`)

TL-2026-6953 / 4HTTP2ROOT (4HTTP2SHELL, no CVE): behaviour-first correlation of the public Cacti zero-day PoC chain from web access logs. One client performs the guest profile write (POST /auth_profile.php?action=update_data), the preview read that concatenates the stored preview_graphs_per_page value into SQL LIMIT (/graph_view.php?action=preview) and the realtime init that executes poller_item.arg1 via popen (/graph_realtime.php?action=init) within ten minutes. Legitimate users rarely trigger all three in sequence.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1078.001, T1565.001
- **Data sources:** apache_access_log (index=web, sourcetype=access_combined), CommonSecurityLog (WAF/reverse proxy CEF), webserver access logs (Sigma category webserver)
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
index=web sourcetype=access_combined earliest=-24h (uri_path="*/auth_profile.php" OR uri_path="*/graph_view.php" OR uri_path="*/graph_realtime.php")
```4HTTP2ROOT guest chain: stage2 profile write, stage3 preview read, stage4 realtime init, same client in one 10 minute window```
| eval stage2=if(method="POST" AND like(uri_path,"%/auth_profile.php") AND like(uri_query,"%action=update_data%"),1,0)
| eval stage3=if(like(uri_path,"%/graph_view.php") AND like(uri_query,"%action=preview%"),1,0)
| eval stage4=if(like(uri_path,"%/graph_realtime.php") AND like(uri_query,"%action=init%"),1,0)
| bin _time span=10m
| stats sum(stage2) AS profile_writes sum(stage3) AS preview_reads sum(stage4) AS realtime_inits values(status) AS http_status values(uri_query) AS queries BY _time clientip host
| where profile_writes>=1 AND preview_reads>=1 AND realtime_inits>=1
| table _time host clientip profile_writes preview_reads realtime_inits http_status queries
````

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestURL has_any ("auth_profile.php", "graph_view.php", "graph_realtime.php")
| extend Stage2 = iff(RequestMethod =~ "POST" and RequestURL has "auth_profile.php" and RequestURL has "action=update_data", 1, 0),
         Stage3 = iff(RequestURL has "graph_view.php" and RequestURL has "action=preview", 1, 0),
         Stage4 = iff(RequestURL has "graph_realtime.php" and RequestURL has "action=init", 1, 0)
| summarize ProfileWrites = sum(Stage2), PreviewReads = sum(Stage3), RealtimeInits = sum(Stage4), Urls = make_set(RequestURL, 10) by SourceIP, DestinationHostName, Window = bin(TimeGenerated, 10m)
| where ProfileWrites >= 1 and PreviewReads >= 1 and RealtimeInits >= 1
| project Window, SourceIP, DestinationHostName, ProfileWrites, PreviewReads, RealtimeInits, Urls
```

### Sigma

```yaml
title: Cacti 4HTTP2ROOT PoC Default Preview and Realtime Init Requests
id: a3c1f6d2-6953-4b1e-9a10-0c1d2e3f4a01
status: experimental
description: Detects the default request URIs of the public 4HTTP2SHELL/4HTTP2ROOT PoC against Cacti 1.2.31 (graph_view.php preview with clear=1 and graph_realtime.php init with ds_step=10 and size=90). Sigma cannot correlate stages so use the SPL or KQL form for the full guest chain.
references:
  - https://blog.previdian.com/cacti-zero-day-what-we-know-so-far/
  - https://ravenai.sh/blog/four-requests-to-shell-cacti
  - https://github.com/ekomsSavior/Sad-Girls-0day-Club/tree/main/4http2shell
author: Threadlinqs Team
date: 2026-11-27
tags:
  - attack.initial-access
  - attack.t1190
  - attack.t1078.001
logsource:
  category: webserver
detection:
  selection_preview:
    c-uri|contains: '/graph_view.php'
    c-uri-query|contains|all:
      - 'action=preview'
      - 'clear=1'
  selection_realtime:
    c-uri|contains: '/graph_realtime.php'
    c-uri-query|contains|all:
      - 'action=init'
      - 'ds_step=10'
      - 'size=90'
  condition: 1 of selection_*
falsepositives:
  - Legitimate authenticated Cacti users opening graph previews or realtime graphs
  - Vulnerability scanners crawling Cacti URLs
level: medium

```

**Known false positives:**

- Authenticated administrators editing their profile, viewing graph previews and opening a realtime graph within ten minutes
- Authenticated vulnerability or compliance scanners exercising Cacti pages

**Tuning notes:** Exclude known admin source IPs and scanner ranges. If the proxy logs session identity, require the guest session. Shorten the bin span to 5m to reduce coincidental matches. Adjust index/sourcetype to your Cacti web tier; for nginx map to your access sourcetype.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Cacti graph_view.php Non-Numeric / SQL Error Log Signal (4HTTP2ROOT Stage 3) (locked: unlock with TL Creds)
- Web Shell / PoC Marker File Creation in Cacti Web Root (4HTTP2ROOT) (locked: unlock with TL Creds)
- Cacti Credential Harvesting — config.php / SNMP Community Access by Web Account (locked: unlock with TL Creds)
- Cacti Guest Profile Setting Write via auth_profile.php (4HTTP2ROOT Stage 2) (locked: unlock with TL Creds)
- Cacti [indicator] / preview_graphs_per_page Database Tampering (4HTTP2ROOT) (locked: unlock with TL Creds)
- Cacti Server Lateral Movement Tooling — SSH / SNMP / Scan Tools from Web Account (locked: unlock with TL Creds)
- Cacti Web/Poller Process Spawning Shell — Command Execution (4HTTP2ROOT Stage 4) (locked: unlock with TL Creds)
- Cacti Web Account Egress via Shell / Netcat / Curl (4HTTP2ROOT Post-Exploitation C2) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 29)

Defanged, TLP:CLEAR.

- URL: `hxxps://ravenai[.]sh/blog/four-requests-to-shell-cacti`

Full set of 29 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Cacti 4HTTP2ROOT Zero-Day Lets Hackers Execute Commands on Network Monitoring Servers Without Login](https://cybersecuritynews.com/cacti-4http2root-zero-day/)
- [Previdian: Cacti Zero-Day - What We Know So Far](https://blog.previdian.com/cacti-zero-day-what-we-know-so-far/)
- [RavenAI: Four Requests to Shell - Ek0ms's Cacti 0-Day Chain](https://ravenai.sh/blog/four-requests-to-shell-cacti)
- [ekomsSavior Sad-Girls-0day-Club - 4http2shell PoC](https://github.com/ekomsSavior/Sad-Girls-0day-Club/tree/main/4http2shell)
- [Cacti GitHub Security Advisories](https://github.com/Cacti/cacti/security/advisories)
- [Cacti Releases (v1.2.31)](https://github.com/Cacti/cacti/releases)
- [Cacti GHSA-69gg-mjfm-jjpc / CVE-2026-39893 - related pre-auth SQLi in graph_view.php (not shown to cover this chain)](https://github.com/Cacti/cacti/security/advisories/GHSA-69gg-mjfm-jjpc)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6953
