SQL Injection Vulnerability in Cacti: Remote Code Execution Risk
Summary
DEBIAN-CVE-2011-4824: SQL injection vulnerability in auth_login.php in Cacti before 0.8.7h allows remote attackers to execute arbitrary SQL commands via the login_username parameter. Affects cacti versions < 0.8.7i-1. Fixed in 0.8.7i-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Cacti is an open-source network monitoring and graphing tool that utilizes the RRDTool (Round Robin Database Tool) to store data. It is widely used for monitoring network traffic and performance metrics. The tool provides a web-based interface for users to create graphs and manage data sources. However, Cacti has been found to have a critical SQL injection vulnerability that can be exploited by remote attackers, potentially leading to unauthorized access and manipulation of the database.
Vulnerability Detail
The vulnerability, identified as CVE-2011-4824, exists in the auth_login.php file of Cacti versions prior to 0.8.7h. It allows remote attackers to execute arbitrary SQL commands through the 'login_username' parameter. This SQL injection flaw can lead to unauthorized access to sensitive data, manipulation of database records, and potentially full control over the Cacti installation, posing significant risks to the integrity and confidentiality of the monitored data.
How To Fix
Minimum fixed version
0.8.7i-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade cacti
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate updating is not possible, consider restricting access to the Cacti web interface to trusted IP addresses only. This can be done by configuring your web server settings to allow access only from specific IP ranges.
Conclusion
The SQL injection vulnerability in Cacti poses a significant risk to users of the software, allowing remote attackers to execute arbitrary SQL commands. It is crucial to update to the latest patched version to mitigate this risk and ensure the security of your network monitoring data.
See every vulnerability recorded for cacti →
FAQ
SQL injection is a code injection technique that exploits a vulnerability in an application's software by allowing attackers to interfere with the queries that an application makes to its database.
If you are running a version of Cacti prior to 0.8.7h, your installation is vulnerable to this SQL injection flaw. You can check your version in the Cacti web interface or by running 'cacti -v' in the terminal.
Exploitation of this vulnerability can lead to unauthorized access to the database, data manipulation, and potentially complete control over the Cacti application, which can compromise the security of your network monitoring.
Yes, tools like Vulert can help monitor and alert you in real-time for open-source vulnerabilities in your software without requiring access to the code or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
References
Related vulnerabilities
Recent vulnerabilities recorded for cacti.