Secunia Logo  
 
Cacti Command Execution and SQL Injection Vulnerabilities
Secunia Advisory: SA23528
Release Date: 2006-12-28
Last Update: 2007-01-18
Popularity: 18,275 views

Critical:
Highly critical
Impact: Security Bypass
Manipulation of data
System access
Where: From remote
Solution Status: Vendor Patch

Software:Cacti 0.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-6799


Description:
rgod has discovered four vulnerabilities in Cacti, which can be exploited by malicious people to bypass certain security restrictions, manipulate data and compromise vulnerable systems.

1) The "cmd.php" and "copy_cacti_user.php" scripts do not properly restrict access to command line usage and are installed in a web-accessible location.

Successful exploitation requires that "register_argc_argv" is enabled.

2) Input passed in the URL to cmd.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that "register_argc_argv" is enabled.

3) The results from the SQL queries in 2) in cmd.php are not properly sanitised before being used as shell commands. This can be exploited to inject arbitrary shell commands.

4) Input passed in the URL to copy_cacti_user.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation allows adding new administrator users, but requires that "register_argc_argv" is enabled.

Furthermore, it has been reported that other scripts may be exploitable under certain conditions. It has also been reported that script_server.php can be exploited to cause a DoS (denial of service).

The vulnerabilities are confirmed in version 0.8.6i. Other versions may also be affected.

Solution:
Update to version 0.8.6j.

Apply the vendor's official patches "Multiple Vulnerabilities - Poller" and "Multiple Vulnerabilities - Default Scripts" to 0.8.6i:
http://www.cacti.net/download_patches.php?version=0.8.6i

Provided and/or discovered by:
rgod

Changelog:
2007-01-02: Added CVE reference.
2007-01-02: Added vulnerability #4. Updated "Solution" section and vulnerability #1.
2007-01-10: Updated "Solution" section.
2007-01-18: Updated "Solution" section.


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Drupal Project Module File Upload and Cross-Site Scripting // 33 views
2. Mambo "GLOBALS['mosConfig_absolute_path']" File Inclusion // 27 views
3. Cisco Global Site Selector DNS Request Denial of Service // 25 views
4. ArticleBeach Script "page" File Inclusion Vulnerability // 24 views
5. SmbFTPD Long Command Processing Vulnerability // 24 views
6. tnftpd Long Command Processing Vulnerability // 22 views
7. Lasso OpenSSL "DSA_verify()" Spoofing Vulnerability // 22 views
8. FreeBSD update for lukemftpd // 22 views
9. FreeBSD update for openssl // 21 views
10. NTP OpenSSL "EVP_VerifyFinal()" Spoofing Vulnerability // 21 views