RCE via SQL Injection and LFI in Cacti link.php (CVE-2023-49084)
CVE-2023-49084 is a critical vulnerability in Cacti version 1.2.25, specifically in the link.php component. The vulnerability arises from a combination of SQL Injection and Local File Inclusion (LFI) due to improper sanitization of user-controlled input used in file include statements. An authenticated attacker with high privileges can inject arbitrary PHP code into a log file (cacti.log) via error-based SQL Injection, and then trigger its execution by manipulating the file path through the contentfile field, bypassing directory traversal protections. This allows for remote code execution on the server.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker to execute arbitrary code on the server, leading to full compromise of confidentiality, integrity, and availability. The attacker can run system commands, potentially gaining complete control over the affected system. The attack is network-based and does not require user interaction, but does require high privileges.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the Cacti interface to trusted users only, monitor for suspicious activity in the cacti.log file, and ensure that only necessary users have high privileges. Apply web application firewall (WAF) rules to block SQL Injection and LFI attempts targeting the link.php endpoint.
Patch, then assume compromise.
Upgrade Cacti to version 1.2.26 or later, where the vulnerability is patched by improving data escaping and sanitization to prevent LFI and SQL Injection in the link.php component.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.