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

high Nessus Plugin ID 31048


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


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.


Upgrade to Cacti 0.8.7b / 0.8.6k or later.

See Also

Plugin Details

Severity: High

ID: 31048

File Name: cacti_login_username_sql_injection.nasl

Version: 1.26

Type: remote

Family: CGI abuses

Published: 2/13/2008

Updated: 6/1/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information


Risk Factor: Medium

Score: 6.3


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