Unpatched Cacti flaw lets guests reach command execution

Unpatched Cacti flaw lets guests reach command execution

Add CyberWorldOpsto your preferred sources on Google
Unpatched Cacti flaw lets guests reach command execution
Vulnerabilities

Illustrative image generated with AI

An unpatched vulnerability in Cacti Core 1.2.31 can let an attacker execute commands as the Cacti server user when the guest account is enabled, The Hacker News reported. The demonstrated attack takes four HTTP requests without a login or valid API key, making guest access a priority for administrators reviewing exposure.

The proof-of-concept, tracked as 4HTTP2SHELL and 4HTTP2ROOT, has not yet received a CVE identifier. The report describes the flaw in Cacti Core 1.2.31, identified as the latest release, on an isolated host with the guest account enabled. The evidence presented is a researcher’s demonstration, rather than a report of attacks against deployed systems.

The researcher, who uses the alias “ek0ms savi0r,” described a path from a fresh, unauthenticated HTTP session to command execution through Cacti’s guest-access features. No phishing is required.

How a graph preference becomes command execution

The chain starts with auth_profile.php?action=update_data, where a guest can write arbitrary text into preview_graphs_per_page. That setting controls the number of graphs shown per page in Preview Mode and should contain an integer.

Instead, the attacker stores crafted SQL text. When graph_view.php loads with its default filters, the saved value becomes part of a database query, producing a second-order SQL injection: the malicious input is stored first and used unsafely later.

The researcher identified two failures at this stage. The stored default bypasses request validation, and Cacti’s PHP PDO database driver accepts stacked SQL statements through the query’s LIMIT clause. Together, these allow the injected value to execute additional SQL.

The demonstrated payload uses an UPDATE statement to change a record in Cacti’s poller table. The attacker then invokes graph_realtime.php from the same guest session. That endpoint reads the altered poller record and passes its command string to PHP’s popen() function without allowlisting or sanitization, completing the path to command execution.

The potential consequences extend beyond the monitoring server. The report quotes watchTowr warning that Cacti often holds credentials and connection details for routers, switches, servers and other network devices, which could give an attacker a foothold elsewhere. Altering the poller table could also expose sensitive data or suppress alerts.

Reduce exposure while a fix is pending

With no fix available in the report, administrators should disable the guest account and restrict access to the Cacti web interface. The report also advises reviewing poller configuration entries for unexpected command values and applying fixes as soon as they become available.

Read next

Sources

Back to home

Latest Cybersecurity News

All cybersecurity news →