Secunia Logo
Netsikker nu! 2008
 
Cacti SQL Injection and Path Disclosure Vulnerability
Secunia Advisory: SA12308
Release Date: 2004-08-18
Last Update: 2005-02-28
Popularity: 9,721 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. phpBB "url" bbcode Script Insertion Vulnerability // 37 views
2. My PHP Indexer "d" File Disclosure Vulnerability // 32 views
3. phpBB BBcode "url" Script Insertion Vulnerability // 30 views
4. WinFTP "PASV" Denial of Service Vulnerability // 30 views
5. Joomla Ignite Gallery Component "gallery" SQL Injection // 27 views
6. Joomla Mad4Joomla Mailforms Component "jid" SQL Injection // 26 views
7. MunzurSoft Wep Portal W3 "kat" SQL Injection Vulnerability // 21 views
8. Real Estates Classifieds "cat" SQL Injection Vulnerability // 21 views
9. chm2pdf Insecure Temporary Directories // 21 views
10. ScriptsEz Mini Hosting Panel "dir" File Disclosure // 20 views