Cacti Zero-Day Has a Public Exploit: Disable Guest Access and Check Poller Settings

A public Cacti exploit can turn anonymous guest access into server commands. Disable guest access, restrict the interface and investigate poller changes while a fix is pending.
Ethernet cables connected to network switches in a server room
Enterprise network cabling and switches. Photo: Shopify Burst.

A publicly disclosed exploit can turn anonymous guest access to the Cacti network-monitoring platform into commands on the server. Security firm Previdian says it observed attempts against its Cacti honeypots on November 27, a day after the attack technique was published.

The demonstrated chain affects Cacti Core 1.2.31 when guest access is enabled. Administrators should disable the guest account, restrict the web interface to trusted management networks and check for suspicious changes. No vendor fix had been confirmed at the time of publication.

The proof of concept, called 4HTTP2SHELL and previously 4HTTP2ROOT, was published by a researcher using the name ek0ms savi0r. Previdian independently verified it in a lab; its later honeypot observation does not establish that a production system was compromised.

Which Cacti installations are exposed?

The public demonstration requires an enabled guest account and access to the Cacti web interface. Guest access is disabled by default in modern Cacti installations, although administrators can enable it to share graphs without a login. Version 1.2.31 is confirmed affected; the full range of affected versions remains unknown, so an older version should not be assumed safe.

As of this check, Cacti’s release page lists 1.2.31 as the latest release. The security firm watchTowr lists a vendor patch as pending. Follow the project’s security advisories for an official fix and instructions.

Disable the demonstrated entry point

  1. Turn off guest access. In Cacti authentication settings, remove the designated Guest User; also disable the guest account under Console > Configuration > Users. Check the impact on public dashboards before making the change, but prioritize exposure reduction.
  2. Verify from a fresh session. Use a signed-out browser or a separate device to confirm unauthenticated visitors can no longer access protected Cacti functionality.
  3. Restrict network access. Put the web interface behind an authenticated VPN or limit it to trusted management networks. Internal exposure still matters if an attacker can reach the interface from another compromised machine.
  4. Check the service account. Ensure the web server and polling processes do not run as root unless genuinely required. Lower privileges limit the immediate reach of a successful command, though they do not eliminate the vulnerability.
  5. Install the vendor fix when available. Disabling guest access blocks the published anonymous path; it does not repair the underlying SQL injection or prove the server was never compromised.

How the attack reaches the poller

According to the published research, a guest can save a nonnumeric value in the preview_graphs_per_page user setting. When a graph preview later uses that stored value in a database query, the injected SQL can alter a polling entry. A subsequent real-time graph request can cause the poller to execute the altered command.

This is a stored, or second-order, SQL injection: the dangerous value is saved first and becomes part of a vulnerable query later. The demonstrated command runs with the privileges of the Cacti web or poller process. Despite the original exploit nickname, root access is not automatic; it depends on how the installation is configured.

What to investigate

Preserve relevant logs and a database backup before making investigative changes. Review settings_user for unexpected nonnumeric values in preview_graphs_per_page, and compare poller_item command entries with known-good configuration. Review web and PHP logs for unusual requests to auth_profile.php, graph_view.php and graph_realtime.php, as well as nonnumeric-value warnings and unexpected processes launched by the web or poller account.

These are leads, not definitive indicators: ordinary traffic can touch the same pages, and clean logs do not prove a system is safe. If you find evidence of compromise, isolate the host and follow your incident-response process. Assess and rotate credentials the server could access, including monitoring community strings, device credentials and other secrets, using a trusted system.

Cacti installations can hold access to many devices they monitor. An investigation should therefore extend beyond the monitoring server to the devices and accounts it could reach.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

Q-Dir and DesktopOK Installers Carried Malware: What Windows Users Should Check

Related Posts