Hackers started exploiting a high-severity Cacti vulnerability one day after proof-of-concept (PoC) exploit code was published online.
An open source network monitoring and graphing tool built on RRDtool, Cacti allows enterprises to collect and track data from network devices such as routers, servers, switches, and more.
Cacti Core version 1.2.31 was found vulnerable to a high-severity SQL injection bug that could allow an authenticated attacker with ‘Normal User’ permissions to gain administrator rights and arbitrary OS command execution. The flaw has a CVSS score of 8.8, but no CVE identifier yet.
“Any authenticated user holding the default ‘Normal User’ permissions obtains read/write access to the entire Cacti database as the application DB user. This yields administrator takeover and, through intended administrative features, remote command execution on the Cacti server,” Cacti said.
On Saturday, Cacti’s maintainers announced that patches have been released for the 1.2.31, 1.2.x, and ‘develop’ branches and will be included in version 1.2.32. They credited DevOps engineer Amdadul Bari for privately reporting the security defect on November 19.
On November 26, two days before Cacti’s advisory, another researcher published PoC exploit code chaining the vulnerability with ‘guest’ access and real-time graph handling. Cacti has had the guest account disabled by default since version 0.8.7.
The exploit, initially called 4HTTP2ROOT and then renamed to 4HTTP2SHELL, allows an unauthenticated attacker to execute OS commands on the Cacti server. The exploit does not require an account or a valid session, turning the security hole into an unauthenticated attack.
4HTTP2SHELL has been tested on Cacti Core version 1.2.31 with the guest account enabled and involves four HTTP requests that turn the SQL injection into a shell.
“The four-request path is also quiet. A guest session is normal. A profile update is normal. A preview request is normal. A real-time graph request is normal. There is no upload, no exploit payload in a URL that looks like a shell, and no authentication event,” the researcher says.
“The attacker starts as an anonymous guest, writes an unvalidated value into a per-user display setting, and that value is later inserted into a database query that the server treats as more than one command. One of those extra commands changes a poller setting to a shell command, which a separate guest-reachable page then executes,” preemptive cybersecurity firm WatchTowr explains.
The first in-the-wild exploitation attempts targeting 4HTTP2SHELL occurred on November 27, Previdian and WatchTowr warn. Previdian observed nearly 1,800 attempts.
Organizations are advised to disable the guest account in their Cacti deployments, ensure the platform is only accessible from trusted networks, review unexpected changes to user settings, and enforce least privilege policies.
Related: Hex Package Manager Warns of Potential Data Breach
Related: Critical Juniper Session Smart Conductor Flaw Exploited in Attacks
Related: Mitel MiCollab Zero-Days Exploited in Suspected AI-Assisted Attacks
Related: Hackers Exploit Unpatched Flaw in Defunct Idunno AntiCsrf Library
