Cacti index.php/sql.php Login Action login_username Parameter SQL Injection

high Nessus Plugin ID 31048

Synopsis

The remote web server contains a PHP script that is susceptible to a SQL injection attack.

Description

The remote host is running Cacti, a web-based front-end to RRDTool for network graphing.

The version of Cacti installed on the remote host fails to sanitize user input to the 'login_username' parameter before using it in the 'auth_login.php' script to perform database queries. Regardless of PHP's 'magic_quotes_gpc' setting, an attacker may be able to exploit this issue to manipulate database queries to disclose sensitive information, bypass authentication, or even attack the underlying database.

Note that there are also reportedly several other vulnerabilities associated with this version of Cacti, although Nessus has not checked for them.

Solution

Upgrade to Cacti 0.8.7b / 0.8.6k or later.

See Also

https://seclists.org/bugtraq/2008/Feb/160

https://www.securityfocus.com/archive/1/488013/30/0/threaded

http://forums.cacti.net/about25749.html

Plugin Details

Severity: High

ID: 31048

File Name: cacti_login_username_sql_injection.nasl

Version: 1.27

Type: remote

Family: CGI abuses

Published: 2/13/2008

Updated: 9/24/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

Required KB Items: www/cacti

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Reference Information

CVE: CVE-2008-0785

BID: 27749

CWE: 89