Cacti Zero-Day Enables Unauthenticated RCE Through Guest Access in Four Requests

Summary
A researcher-reported flaw in Cacti Core 1.2.31 can reportedly enable unauthenticated remote code execution when guest access is enabled. Until a fix is available, disable guest access and restrict web-interface access.
Key points
- The reported flaw affects Cacti Core 1.2.31 when the guest account is enabled; guest access is disabled by default starting with version 0.8.7.
- The researcher says the proof of concept, tracked as 4HTTP2SHELL and 4HTTP2ROOT, reaches command execution in four HTTP requests without authentication.
- The reported chain stores an unvalidated value in the preview_graphs_per_page setting, enabling second-order SQL injection when the graph preview page loads.
- The demonstrated SQL query modifies a poller-table record; the realtime poller endpoint then passes that value to PHP's popen() without sanitization, according to the article.
- The researcher says successful exploitation could compromise the Cacti server, expose sensitive data, suppress alerts, or provide a foothold into the monitored network.
- No fix is available in the article. Recommended mitigations are to disable guest access, restrict access to the web interface, and review poller entries for unexpected command values.
Article Details
- Vulnerability Types
- Second-order SQL injection
- Remote code execution
- Affected Versions
- Cacti Core 1.2.31
- Exploitation Status
- reported
- Exploit Availability
- public_poc
- Patch Status
- unavailable
- Workarounds
- Disable the guest account.
- Restrict access to the Cacti web interface.
MITRE ATT&CK
T1190 · Exploit Public-Facing ApplicationThe vulnerability can be exploited through the Cacti web interface using guest access to achieve remote code execution.T1565.001 · Stored Data ManipulationThe demonstrated exploit uses SQL queries to modify a Cacti poller-table record, whose value is later passed to PHP's popen() function.
