4HTTP2SHELL and the guest account flaw
Cybersecurity researcher ek0ms savi0r from the Church of Malware released a proof-of-concept exploit for a zero-day vulnerability in the Cacti network monitoring platform. This exploit, named "4HTTP2SHELL" or previously "4HTTP2ROOT", requires only four HTTP requests against the default guest surface. The attack works without a login, a valid API key, or phishing. The attack targets Cacti Core 1.2.31 and requires the guest account to be enabled. The researcher tested the exploit against this specific version, although it remains unclear if earlier versions are also vulnerable. The vulnerability allows an unauthenticated attacker to inject SQL statements into the application database by saving malicious values in a guest user’s graph display settings, which then causes the real-time poller to execute unauthorized operating system commands. The researcher uploaded the findings to a GitHub repository called "Sad Girls 0day Club." I find the researcher’s decision to release this on Thanksgiving Day without notifying Cacti first to be a blatant disregard for standard disclosure practices. The researcher also complained about companies dismissing reports and stated, "We get cracked because we get gaslit for years by billion dollar companies that treat disclosure like a PR problem."
Network access risks and remediation
Cacti monitors the performance of servers, routers, switches, and firewalls. Because the software stores credentials and SNMP passphrases for these devices, a compromise could grant an attacker access to other systems on a corporate network. While the researcher demonstrated root access, watchTowr says that the privileges gained depend on the account running the Cacti web server and poller processes. In many deployments, this results in a low-privileged web server account rather than root. RavenAI explains that the attack abuses weak validation of guest users’ graph display settings to create a stored SQL injection. The attack involves an attacker saving malicious SQL statements in a guest user’s graph display preferences, which are stored in Cacti’s database. As of November 27, there are no reports of anyone exploiting this flaw in active attacks. Administrators must deactivate the Cacti guest account and restrict web interface access to trusted networks. You should review poller configurations for unexpected commands and check application logs for warnings involving non-numeric values in graph display settings.
