Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Mailing Lists RSS Blog Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


Cacti Command Execution and SQL Injection Vulnerabilities Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA23528  
Release Date: 2006-12-28
Last Update: 2007-01-18

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

Software:Cacti 0.x

CVE reference:CVE-2006-6799 (Secunia mirror)

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


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.



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.

7 Related Secunia Security Advisories

1. Cacti Multiple Vulnerabilities
2. Cacti Unspecified SQL Injection Vulnerability
3. Cacti "graph_image.php" Denial of Service
4. Cacti ADOdb "server.php" Insecure Test Script Security Issue
5. Cacti "no_http_headers" Security Bypass and Shell Command Injection
6. Cacti Multiple Vulnerabilities
7. Cacti SQL Injection and Path Disclosure Vulnerability


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.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
Debian OpenSSL Predictable Random Number Generator and Update
2.
Fedora update for thunderbird
3.
Linux Kernel Multiple Vulnerabilities
4.
Drupal Site Documentation Module Information Disclosure
5.
Fusebox "FUSEBOX_APPLIC ATION_PATH" File Inclusion
6.
Oracle Application Server Portal Authentication Bypass
7.
PHP Classifieds Script "fatherID" SQL Injection Vulnerabilities
8.
Cisco Unified Presence SIP Proxy Service Denial of Service
9.
TYPO3 sr_feuser_regis ter Extension Multiple Vulnerabilities
10.
Cisco Catalyst Content Switching Module Memory Leak Vulnerability





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia