Cacti Zero-Day Chains Guest Access to Unauthenticated RCE in Four Requests
Original source
Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access
The Hacker News →A previously unpatched zero-day in Cacti 1.2.31 enables unauthenticated remote code execution through just four HTTP requests. The exploit—tracked as 4HTTP2SHELL and 4HTTP2ROOT—works against default deployments where the guest account is enabled, bypassing all authentication and API key requirements.
The attack exploits a cascade of validation failures. It begins by leveraging guest permissions to inject arbitrary SQL into the “preview_graphs_per_page” setting via auth_profile.php. Since Cacti fails to validate that this numeric configuration parameter receives only numeric values, the malicious payload persists to the database. When the graph preview page loads, the injected SQL executes as a second-order injection, allowing modification of the poller table. A subsequent call to graph_realtime.php retrieves the modified poller row and passes it directly to PHP’s popen() without any sanitization, achieving command execution under the web server user.
The vulnerability stems from four distinct oversights: guest access to modify configuration options, lack of persistent input validation, SQL support for stacked statements via LIMIT clauses, and direct execution of database-stored commands. The severity amplifies because Cacti typically stores credentials for network devices throughout the infrastructure. Exploitation allows attackers to harvest those credentials, suppress monitoring alerts, and pivot laterally across the network. Until patches arrive, disabling guest accounts and restricting web interface access serve as essential mitigations.
Read the full article
Continue reading at The Hacker News →This is an AI-generated summary. Read the original for the full story.