Title: Cacti Zero-Day 4HTTP2SHELL/4HTTP2ROOT: Four Unauthenticated Requests from Guest Session to popen() on the Latest Release
Summary:
Cacti, the open-source graphing and monitoring package, is the subject of an unpatched zero-day that surfaced on November 27, 2026, after researcher ek0ms savi0r posted the proof of concept to GitHub the previous day under the names 4HTTP2SHELL and 4HTTP2ROOT — no CVE number exists yet. The chain works against Cacti Core 1.2.31, the current release, but only where the guest account is switched on; Cacti has shipped that account off by default since version 0.8.7. Starting from a fresh session with no credentials, exactly four HTTP requests are needed. Request one saves attacker-chosen, non-numeric text into the per-user preview_graphs_per_page preference through auth_profile.php?action=update_data. When graph_view.php renders the preview page, that stored string is fed back into a database query — a second-order SQL injection made possible because Cacti never checks the setting is an integer, and its PHP PDO driver tolerates extra statements appended via the LIMIT clause. The stacked UPDATE plants a shell command in a poller-table row, and a final request to graph_realtime.php from the same guest session drives the realtime poller to pick up that row and hand its contents to PHP’s popen() unfiltered, running the command under the Cacti server’s account. The researcher attributes the exploitability to four compounding mistakes: guest users may store arbitrary text in a numeric preference, the stored default is exempt from request validation, the PDO driver permits statement stacking through LIMIT, and the poller treats a database value as executable. watchTowr’s FAQ, published November 26, 2026, adds that whatever account serves the web UI and the poller inherits the attacker’s commands — usually an unprivileged web user, not root — and that through November 27 the firm had seen no in-the-wild use, CISA’s KEV catalog does not list the issue, and no vendor fix exists. The blast radius extends past the monitoring box: Cacti commonly holds SNMP community strings and device credentials for routers, switches and servers, and an attacker who can edit the poller table can muffle alerting as well. Until a fixed release lands, watchTowr recommends switching the guest account off, limiting the web interface to trusted networks, auditing poller settings for unexpected command text, and watching Cacti’s logs for warnings about a non-numeric display value — a warning the chain produces even though the write succeeds — then upgrading as soon as a patch ships.
References: