Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

A quote card reading Four Requests to Root: an Unauthenticated Cacti Zero-Day, summarizing the 4HTTP2SHELL chain that turns a Cacti guest session into command execution with no login and no patch.
Image: ek0ms savi0r (fair use), summary of the 4HTTP2SHELL proof-of-concept published Nov. 26, 2026.

Detection

A Researcher Says Four HTTP Requests Turn a Cacti Guest Account Into Root on the Monitoring Server, and With No Patch the Only Fix Is to Disable Guest Access and Watch poller_item.arg1

The chain, 4HTTP2SHELL, abuses a guest-writable setting that lands in a SQL LIMIT clause, lets the database run a stacked UPDATE, and ends in a poller that passes a stored string to popen. Every request looks normal, so defenders have to hunt for the artifacts the exploit leaves behind.

Ava Okello, DetectionNairobi6 min read

NAIROBI - A researcher has published a working exploit chain that turns an anonymous visitor to a Cacti server into a command-execution foothold in four ordinary HTTP requests, and with no patch available the open-source network monitoring project's users are left to disable guest access and hunt for the traces the attack leaves in their own database.

The chain, named 4HTTP2SHELL and also tracked as 4HTTP2ROOT, was released Nov. 26 with proof-of-concept code by a researcher who publishes as ek0ms savi0r. It targets Cacti Core 1.2.31, the latest release in the 1.2 line, and needs only that the guest account be enabled. There is no CVE identifier and no fixed release yet.

The reason the finding matters is less the bug than the box. A Cacti server, the researcher wrote, quietly owns the truth in a network: it holds SNMP community strings, device logins and database credentials, and it is trusted by every device that accepts monitoring traffic. A shell there is often worth more than a domain controller.

Four requests, no credentials

The exploit stacks four small steps, each of which looks like normal Cacti usage.

A card listing the four-request 4HTTP2SHELL chain: become the guest through auth_profile.php, write an arbitrary string into the numeric preview_graphs_per_page setting, make the database run a stacked UPDATE through graph_view.php preview, and run the command through graph_realtime.php and the poller's popen call.
Image: ek0ms savi0r (fair use), the four-request 4HTTP2SHELL chain.

First, a fresh visitor is handed a guest session and a CSRF token from auth_profile.php without sending any credentials. Second, the guest writes an arbitrary string into the per-user preview_graphs_per_page setting through the profile update endpoint. That value is supposed to be a page size, but it is never validated as an integer.

Third, a request to graph_view.php with action=preview reads the stored setting as the default for the graphs filter and concatenates it into a SQL LIMIT clause. The request-side integer filter never sees the database-stored default, so the guest's string is treated as SQL. Because the database driver accepts stacked statements, the guest can run an arbitrary UPDATE, and the exploit uses it to write a shell command into poller_item.arg1. Fourth, a call to graph_realtime.php runs the realtime poller, which reads poller_item.arg1 and passes it to popen. The command executes.

Four failures stacked

The researcher described the result as four failures stacked on top of each other, each one ordinary and the combination fatal.

A card listing the four stacked failures behind 4HTTP2SHELL: a guest can write a numeric setting as an arbitrary string, the stored default bypasses request validation, the page-size value is concatenated into SQL with stacked statements accepted, and the poller passes a database-stored string to popen without an allowlist.
Image: ek0ms savi0r (fair use), the four stacked weaknesses in the chain.

The storage layer itself is safe: the setting is written with a prepared statement. The danger is in the consumer, where a value the application trusts as its own validated data is later treated as a SQL fragment, then as a shell command. The privilege the attacker gets depends on the deployment. In the researcher's lab the web tier and poller ran as root; on a normal install the same chain runs as the Cacti web user, usually www-data or apache.

The proof

The proof-of-concept writes a marker file and reads it back over HTTP to confirm code execution, with the poller running the injected command.

A terminal card showing the 4HTTP2SHELL proof: a guest GET to graph_realtime.php returns HTTP 200, a curl of unauth_marker.txt returns uid=0(root) gid=0(root), and the Cacti log records the poller erroring on an injected command string in the same second.
Image: ek0ms savi0r (fair use), the proof-of-concept confirming command execution from a guest session.

As of Nov. 26 the Cacti project had not published an advisory, and the current 1.2.31 release dates from June. A pull request opened on the development branch tightens validation of the page-size and paging values the graph preview uses, but it has not been merged into a release. Public exploitation has not been confirmed, though working code is now on GitHub.

What operations teams should hunt

The four-request path is deliberately quiet. A guest session is normal, a profile update is normal, a preview request is normal and a realtime graph request is normal. There is no upload, no exploit payload in a URL that looks like a shell, and no authentication event. The loudest artifact, the researcher noted, is a PHP warning about a non-numeric value, which most teams do not alert on. Detection therefore lives in the application's own data and logs:

  • Check the preview_graphs_per_page value in the settings_user table for any non-numeric content. It should always be a small integer.
  • Watch poller_item.arg1 for unexpected changes, especially values that contain shell syntax such as semicolons, pipes or command names.
  • Alert on PHP warnings about non-numeric values from graph_view.php and on poller errors referencing an RRD file whose name contains a command string.
  • Look for new files in the Cacti web root and for processes spawned by the poller or web user that do not belong to normal monitoring.

The interim mitigation is straightforward even without a patch: disable the guest account in Cacti's settings so an anonymous visitor cannot open a session or save profile fields, and keep the Cacti web interface off the public internet, reachable only from a trusted management network. Because a compromised Cacti host exposes the credentials for everything it monitors, teams that find tampering should treat it as a pivot and rotate the SNMP strings and device logins the server held.

About the Author

Ava Okello

Ava Okello covers detection engineering and threat hunting for SOCtember from Nairobi.

Related stories

Detection desk