Remote command execution via guest settings
The "4HTTP2SHELL" exploit, previously called 4HTTP2ROOT, provides unauthenticated attackers command execution on Cacti network monitoring servers through just four HTTP requests. Cybersecurity researcher ek0ms savi0r from the Church of Malware released a proof-of-concept exploit and a video demonstration on Thanksgiving Day in a GitHub repository called "Sad Girls 0day Club." The vulnerability specifically targets Cacti Core 1.2.31 by exploiting weak input validation in the graph display settings of guest users, though it remains unclear if earlier versions are also vulnerable. This stored SQL injection allows an attacker to save malicious SQL statements in a guest user’s graph display preferences, which are stored in the Cacti database. When Cacti processes these preferences, the application executes the SQL statements to modify the poller’s configuration and run malicious operating system commands. Privileges depend on the account running the web server and poller processes. This exploit is clearly the most dangerous way to compromise the tool because it requires no login, no valid API key, and no phishing.
| Exploit Detail | Value |
|---|---|
| Exploit Name | 4HTTP2SHELL |
| Target Software | Cacti Core 1.2.31 |
| Attack Vector | Four HTTP requests |
| Access Type | Unauthenticated |
| Requirements | Guest account enabled |
Network access and remediation steps
Compromising a Cacti server could potentially give attackers access to other systems on a corporate network because the software stores credentials and SNMP passphrases used to access or read data from monitored network devices. Because the exploit requires the Cacti guest account to be enabled, administrators must deactivate this account or restrict the web interface to trusted networks. Administrators should also review poller configurations for unexpected commands and examine application logs for warnings involving non-numeric values in graph display settings. The researcher, who did not report the vulnerability to Cacti before the release, stated that companies often treat disclosure like a "PR problem" and that researchers "get cracked because we get gaslit for years by billion dollar companies." The researcher also expressed frustration with how companies handle security reports because many are dismissed or closed as duplicates or as issues that cannot be reproduced. System owners should examine if the guest account is active in their current configuration. As of November 27, there have been no reports of the vulnerability being exploited in active attacks.
