Hackers have swiftly taken advantage of a critical vulnerability in Cacti, an open-source network monitoring tool, just a day after a proof-of-concept (PoC) exploit was made available online. The vulnerability, found in Cacti Core version 1.2.31, involves a high-severity SQL injection flaw that could allow attackers with ‘Normal User’ permissions to escalate their access to administrator levels and execute arbitrary operating system commands.
Understanding the Cacti Vulnerability
Cacti, which is widely utilized for collecting and tracking data from network devices such as routers and servers, was discovered to contain a significant security weakness. The SQL injection vulnerability has been assigned a CVSS score of 8.8, indicating its potential impact, though a CVE identifier has not yet been issued. According to Cacti, any authenticated user with default ‘Normal User’ permissions can exploit this flaw to gain full read/write access to the application’s database, leading to administrative takeover and remote command execution.
Patch Deployment and Research Developments
On a recent Saturday, the maintainers of Cacti announced the release of patches for the affected Cacti Core version 1.2.31, along with the 1.2.x and ‘develop’ branches. These updates are set to be included in the upcoming version 1.2.32. The vulnerability was initially reported privately by DevOps engineer Amdadul Bari on November 19. However, prior to the official advisory, another researcher published PoC exploit code that leveraged ‘guest’ access in conjunction with real-time graph handling, despite the guest account being disabled by default since version 0.8.7.
The 4HTTP2SHELL Exploit
Initially termed 4HTTP2ROOT before being renamed to 4HTTP2SHELL, this exploit allows unauthenticated attackers to execute OS commands on the Cacti server without needing an account or valid session. This transforms the vulnerability into an unauthenticated attack vector. The exploit functions by sending a sequence of four HTTP requests that convert the SQL injection into a shell command. Notably, this series of requests does not involve any visible exploit payload or authentication event, making it difficult to detect.
As explained by cybersecurity firm WatchTowr, the attack initiates with an anonymous guest session, placing an unvalidated value into a per-user display setting. This value is then inserted into a database query, allowing the server to treat it as multiple commands, one of which alters a poller setting to a shell command, executed by a guest-accessible page.
Security Recommendations
The first attempts to exploit 4HTTP2SHELL in the wild were observed on November 27, with nearly 1,800 attempts recorded by cybersecurity firms Previdian and WatchTowr. To mitigate risks, organizations using Cacti are advised to disable the guest account, restrict access to the platform from untrusted networks, monitor for unexpected changes in user settings, and enforce least privilege policies.
For further insights, related articles highlight other significant vulnerabilities and exploits, such as those affecting the Hex Package Manager and Mitel MiCollab, emphasizing the ongoing challenges in cybersecurity.
