Secunia Logo
 
Cacti SQL Injection and Path Disclosure Vulnerability
Secunia Advisory: SA12308
Release Date: 2004-08-18
Last Update: 2005-02-28
Popularity: 9,878 views

Critical:
Moderately critical
Impact: Manipulation of data
Exposure of system information
Where: From remote
Solution Status: Partial Fix

Software:Cacti 0.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2004-1736
CVE-2004-1737


Description:
Fernando Quintero has reported two vulnerabilities in Cacti, which can be exploited by malicious people to see the installation path and conduct SQL injection attacks.

1) Path information can be disclosed in error pages by passing invalid input or accessing scripts directly.

Examples:
http://[victim]/cacti/include/auth.php
http://[victim]/cacti/auth_login.php?action=login
http://[victim]/cacti/auth_changepassword.php?ref=indexphp&action=changepassword&password=aaaaaa&confirm=aaaaaa&submit=Save

2) Input passed to the "username" and "password" parameters in "auth_login.php" isn't properly verified before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code in order to change the administrator's password and login without supplying a password.

Successful exploitation requires that "magic_quotes_gpc" is disabled.

The vulnerabilities have been reported in version 0.8.5 and prior.

Solution:
Set "magic_quotes_gpc" to "on".

The fix that the vendor has added in the CVS repository for "auth_login.php" is not sufficient. Malicious people can still inject arbitrary SQL code and thereby bypass the user authentication.

Provided and/or discovered by:
Fernando Quintero

Changelog:
2005-02-28: Added CVE references.


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. Slackware update for amarok // 38 views
2. Symantec Backup Exec for Windows Servers Multiple Vulnerabilities // 33 views
3. pam_mount "passwdehd" Insecure Temporary Files // 25 views
4. P3nfs Insecure Temporary Files // 25 views
5. Alex Multiple Products File Upload Vulnerability // 25 views
6. Sun Java JDK / JRE Multiple Vulnerabilities // 24 views
7. ClipShare "chid" SQL Injection Vulnerability // 23 views
8. MyTopix "send" SQL Injection Vulnerability // 23 views
9. HP OpenView Network Node Manager Cross-Site Scripting Vulnerabilities // 22 views
10. refbase "headerMsg" Cross-Site Scripting Vulnerability // 22 views