CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:L/Au:N/C:C/I:C/A:C
AI Score
Confidence
Low
EPSS
Percentile
90.9%
According to its self-reported version number, the Cacti application running on the remote web server is prior to version 0.8.6f. It is, therefore, potentially affected by the following vulnerabilities :
Multiple vulnerabilities exist due to improper input validation in ‘graph_image.php’ and ‘graph.php’.
(CVE-2005-2148)
A flaw exists in ‘config.php’ that allows remote attackers to set the ‘no_http_headers’ switch and then modify session information in order to gain the privileges necessary to perform SQL injection attacks.
(CVE-2005-2149)
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(81602);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/09/24");
script_cve_id("CVE-2005-2148", "CVE-2005-2149");
script_bugtraq_id(14027, 14130);
script_name(english:"Cacti < 0.8.6f Multiple Vulnerabilities");
script_set_attribute(attribute:"synopsis", value:
"The remote web server is running a PHP application that is affected by
multiple vulnerabilities.");
script_set_attribute(attribute:"description", value:
"According to its self-reported version number, the Cacti application
running on the remote web server is prior to version 0.8.6f. It is,
therefore, potentially affected by the following vulnerabilities :
- Multiple vulnerabilities exist due to improper input
validation in 'graph_image.php' and 'graph.php'.
(CVE-2005-2148)
- A flaw exists in 'config.php' that allows remote
attackers to set the 'no_http_headers' switch and then
modify session information in order to gain the
privileges necessary to perform SQL injection attacks.
(CVE-2005-2149)");
# https://web.archive.org/web/20061130123447/http://www.hardened-php.net/index.30.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a392bde5");
# https://web.archive.org/web/20061130122909/http://www.hardened-php.net/index.31.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?79df242f");
# https://web.archive.org/web/20060502023335/http://www.hardened-php.net/index.33.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8090490f");
script_set_attribute(attribute:"see_also", value:"http://www.cacti.net/release_notes_0_8_6f.php");
script_set_attribute(attribute:"solution", value:
"Upgrade to Cacti 0.8.6f or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:ND");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2005/07/02");
script_set_attribute(attribute:"patch_publication_date", value:"2005/07/01");
script_set_attribute(attribute:"plugin_publication_date", value:"2015/03/03");
script_set_attribute(attribute:"potential_vulnerability", value:"true");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:cacti:cacti");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_set_attribute(attribute:"enable_cgi_scanning", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2015-2024 Tenable Network Security, Inc.");
script_dependencies("cacti_detect.nbin");
script_require_keys("installed_sw/cacti", "www/PHP", "Settings/ParanoidReport");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("install_func.inc");
if (report_paranoia < 2) audit(AUDIT_PARANOID);
app = 'cacti';
get_install_count(app_name:app, exit_if_zero:TRUE);
port = get_http_port(default:80, php:TRUE);
install = get_single_install(
app_name : app,
port : port,
exit_if_unknown_ver : TRUE
);
install_url = build_url(qs:install['path'], port:port);
version = install['version'];
ver = split(version, sep:'.', keep:FALSE);
if (
int(ver[0]) == 0 &&
(
int(ver[1]) < 8 ||
(int(ver[1]) == 8 && ver[2] =~ '^([0-5][a-z]?|6[a-e]?)$')
)
)
{
set_kb_item(name:'www/'+port+'/SQLInjection', value:TRUE);
if (report_verbosity > 0)
{
report = '\n URL : ' + install_url +
'\n Installed version : ' + version +
'\n Fixed version : 0.8.6f' +
'\n';
security_hole(port:port, extra:report);
}
else security_hole(port);
exit(0);
}
audit(AUDIT_WEB_APP_NOT_AFFECTED, "Cacti", install_url, version);