A zero-day vulnerability in the Cacti network monitoring platform has been disclosed alongside a proof-of-concept exploit that can allow an unauthenticated attacker to execute commands on a vulnerable server. The attack requires Cacti’s guest account to be enabled, but does not require valid credentials, and researchers demonstrated it using as few as four HTTP requests.
The exploit, called 4HTTP2 shell, formerly known as 4HTTP2ROOT, was published on Thanksgiving Day by a cybersecurity researcher known as ek0ms savi0r of the Church of Malware.
Cacti is an open-source network monitoring and graphing tool used to track the performance of servers, routers, switches, firewalls and other network infrastructure. The software can store credentials and SNMP passphrases used to access monitored devices and retrieve data. As a result, a compromised Cacti server could potentially provide access to other systems on a corporate network.
Four-request attack
The researchers published technical documentation, a proof-of-concept exploit and a video demonstration in a GitHub repository called “Sad Girls 0day Club.”
“We found a path to execute commands as a Cacti server user from a new unauthenticated HTTP session in four requests: no login, no valid API key, no phishing. Only four HTTP requests to the default guest surface,” the researchers explained.
The vulnerability stems from weak input validation. It allows an unauthenticated attacker to inject SQL statements into Cacti’s database and alter the commands executed by the application’s real-time poller.
According to cybersecurity company RavenAI, the attack abuses inadequate validation of the guest user’s graph display settings, resulting in a stored SQL injection vulnerability. An attacker can save malicious SQL statements in those settings, which are then stored in Cacti’s database.
When Cacti processes the stored settings, the SQL statements can be used to modify the poller’s configuration and execute malicious operating system commands.
Privileges depend on server configuration
Although researchers demonstrated an exploit that provides root access on vulnerable servers, cybersecurity firm watchTowr explains that the privileges obtained depend on the account running Cacti’s web server and poller processes.
In many deployments, those processes may run under a less-privileged web server account rather than root.
The researchers tested the exploit against Cacti Core 1.2.31, but it remains unclear whether earlier versions are also vulnerable.
Disclosure concerns
In another post in the GitHub repository, ek0ms savi0r expressed frustration with how companies handle vulnerability disclosures. The researcher said that years of security reports had been dismissed or closed as duplicates, expected behavior or issues that could not be reproduced.
“Security researchers aren’t the bad guys. We’re trying to help. We’ve read the documentation, written reproductions, and sent packet captures,” the researchers wrote.
“We’re being policed because we’re being gassed for years by multibillion-dollar corporations that treat disclosure like a PR issue.”
In an Instagram post announcing the Cacti exploit, the researchers shared a video demonstration of the proof of concept and said the vulnerability had not been reported to Cacti before its release.
Mitigation recommendations
Until a patch is released, administrators should disable Cacti guest accounts and restrict access to the application’s web interface to trusted networks.
Administrators should also inspect poller configurations for unexpected commands and review application logs for warnings involving non-numeric values in graph display settings, which could indicate an exploitation attempt.
As of November 27, there were no reports that the vulnerability had been exploited.
Source: www.bleepingcomputer.com












