As reported by The Hacker News, a new zero-day vulnerability in Cacti — the open-source network monitoring platform widely deployed across enterprise and ISP environments — enables unauthenticated remote code execution in as few as four HTTP requests. The exploit, tracked as 4HTTP2SHELL and 4HTTP2ROOT, was disclosed by researcher "ek0ms savi0r" and remains unpatched at the time of writing. No CVE identifier has yet been assigned.
This is not a nuanced, multi-stage APT chain requiring privileged access or social engineering. It is a direct, unauthenticated path from the default guest surface to operating-system-level command execution. That simplicity is what makes it dangerous.
Vulnerability Summary
| Field | Detail |
|---|---|
| Vulnerability Type | Unauthenticated Remote Code Execution via Second-Order SQL Injection |
| CVE Identifier | Pending — not yet assigned |
| Exploit Names | 4HTTP2SHELL / 4HTTP2ROOT |
| CVSS Score | Not yet formally scored; Shield53 assesses as Critical (estimated 9.8) |
| Affected Product | Cacti Core 1.2.31 (latest version at time of disclosure) |
| Prerequisite | Guest account enabled (default in some configurations) |
| Patch Available | No — no vendor fix released at time of writing |
| Active Exploitation | Public PoC disclosed; active exploitation in the wild not yet confirmed but expected imminently |
Why This Matters
The attack chain exploits a compounding series of failures — each individually defensible, but catastrophic in combination:
preview_graphs_per_page setting via auth_profile.php?action=update_data.graph_view.php.graph_realtime.php) reads a command string from the modified poller table and passes it directly to PHP's popen() without allowlisting or sanitization.The result: an attacker writes a malicious SQL payload as a guest, which is stored, later injected into a query that modifies the poller table, and then executed as an OS command — all from an unauthenticated session in four HTTP requests.
Who Is at Risk
Cacti is deployed extensively in network operations centers, MSP environments, and enterprise IT departments for SNMP-based monitoring of routers, switches, servers, and critical infrastructure. The exposure profile is severe:
- Organizations with guest access enabled: This is the primary precondition. While not default in all installations, guest access is commonly enabled for read-only dashboard views — especially in shared NOC environments or MSP customer portals.
- Internet-exposed Cacti instances: Any Cacti deployment reachable from the internet with guest access enabled is at immediate risk of compromise.
- Internal pivot points: Even internally hosted Cacti servers are high-value targets. Cacti stores SNMP credentials, device connection strings, and network topology data. A compromised Cacti server is a credential repository and a pivot platform into the broader network — exactly the kind of foothold ransomware operators and initial access brokers seek.
Beyond the RCE itself, attackers can silently modify the poller table to suppress monitoring alerts, effectively blinding defenders during subsequent intrusion activity.
Shield53 Recommendations
Immediate Actions (Within Hours)
- Disable the guest account immediately. Navigate to Cacti's console settings and disable guest access. This removes the attack precondition entirely. This is the single most critical mitigation available until a patch is released.
- Restrict network access to Cacti instances. Place Cacti behind a VPN or allowlist-based firewall rules. No Cacti instance should be internet-exposed without extraordinary justification.
- Deploy WAF rules to block the exploit path. At minimum, block or sanitize requests to
auth_profile.php?action=update_dataoriginating from unauthenticated sessions. If your WAF supports custom rules, inspect thepreview_graphs_per_pageparameter for non-integer values.
Short-Term Hardening (Within Days)
- Audit all Cacti user accounts and permissions. Review which accounts have write access to profile/settings data and remove unnecessary privileges.
- Implement database-level constraints. If feasible, add a CHECK constraint or trigger on the relevant settings table to enforce integer-only values for
preview_graphs_per_page. - Monitor for indicators of compromise. Look for anomalous entries in the poller table, unexpected processes spawned by the web server user, and suspicious requests to
graph_realtime.php. Check for modified poller command strings.
Strategic Considerations
- Treat monitoring infrastructure as tier-0 assets. Cacti, Nagios, Zabbix, PRTG, and similar tools hold credentials for the devices they monitor. They must be hardened, segmented, and access-controlled with the same rigor applied to domain controllers and identity providers.
- Inventory all monitoring tools in your environment. Many organizations lose track of legacy Cacti deployments inherited through acquisitions or left running on aging infrastructure. Find them, assess them, and decommission or isolate what you no longer need.
- Watch for the patch. Monitor the Cacti GitHub repository and security advisories for a fix. Apply it immediately when released — the PoC is public and exploitation will accelerate.
This vulnerability underscores a recurring pattern Shield53 has observed across the monitoring tool landscape: platforms designed for visibility into infrastructure become attractive attack targets precisely because they hold the keys to that infrastructure. The four-request simplicity of this exploit means the window between disclosure and mass scanning is measured in hours, not days. Disable guest access now.