Four Web Requests, No Password: The Spec Sheet on the Unpatched Cacti Zero-Day and a Checklist for Anyone Running Network Monitoring
A researcher has published an exploit showing how an attacker can run commands on a Cacti network monitoring server in four requests when guest access is turned on. There is no patch yet. Here is the spec sheet on the flaw and a checklist to lock Cacti down today.
Network monitoring tools know where everything is and often hold the passwords to reach it. That is why a new, unpatched flaw in Cacti, a popular open-source monitoring and graphing tool, deserves quick attention from anyone who runs it. The Hacker News reported the zero-day after a researcher released a proof-of-concept exploit.
Spec sheet
- Product: Cacti, open-source network monitoring.
- Affected version: Cacti Core 1.2.31, the latest release, when the guest account is enabled. The guest account has been disabled by default since version 0.8.7.
- Identifier: no CVE assigned yet; the proof of concept is tracked as 4HTTP2SHELL and 4HTTP2ROOT.
- Discovered by: a security researcher using the alias “ek0ms savi0r.”
- Login needed: none. The researcher describes going from a fresh, unauthenticated web session to running commands as the Cacti server user in four HTTP requests.
- Patch status: no fix available at the time of reporting.
- Impact: remote code execution on the Cacti server, a foothold into the wider network, exposure of stored data, and the ability to tamper with monitoring to suppress alerts.
How the four steps chain together
- Using guest access, the attacker saves text into a setting that should hold only a number: “preview_graphs_per_page,” which controls how many graphs appear per page in preview mode.
- Because Cacti does not check that the value is really a number, the saved text can carry SQL commands that run later, when the graph preview page loads with default filters. This is known as a second-order SQL injection.
- The researcher’s injected query modifies a record in Cacti’s poller table, which holds commands the monitoring engine runs.
- From the same guest session, the attacker calls the real-time graph endpoint, which reads the altered record and passes it to the system for execution without any filtering.
The researcher sums up four underlying failures: a guest can store any text in a numeric setting, the stored value skips request validation, the database driver accepts stacked SQL statements through a LIMIT clause, and the poller executes command strings stored in the database.
Why the monitoring server matters so much
Security firm watchTowr warns in its advisory that Cacti often stores credentials and connection details for routers, switches, servers and other devices, so command execution on the Cacti server can give an attacker reach far beyond the monitoring box itself.
Checklist for Cacti owners
- Check whether the guest account is enabled, and disable it.
- Restrict access to the Cacti web interface to the administrators and networks that need it. It should not be reachable from the internet.
- Review poller configuration entries for unexpected command values.
- Watch for the official fix and install it as soon as it is released.
- As general good practice, give Cacti only the device credentials it needs (read-only where possible) and change them if you find any sign of tampering.
What this means for your company
Monitoring tools are often installed once by a technician or provider and then left alone, which is how a guest login enabled years ago can still be sitting there today. Ask whoever manages your network whether you run Cacti or a similar tool, who can reach its web page, and which device passwords it holds. Treat the monitoring server like the keys to the building: put it on a management network, keep its login page private, and include it in your regular patching. If the tool is quietly turned against you, the alerts you rely on may never fire, so it is worth confirming that someone would notice if monitoring suddenly went quiet.
If you would like help locking down your monitoring and management tools, or a review of the credentials they hold, we are glad to take a look. Reach out to Layer 7 Data Solutions to discuss how we’ve helped companies similar to yours.
