This host is installed with Cacti and is
prone to multiple sql injection and a security bypass vulnerabilities.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_cacti_mult_sql_inj_and_sec_bypass_vuln01_apr16_lin.nasl 12363 2018-11-15 09:51:15Z asteins $
#
# Cacti Multiple SQL Injection And Security Bypass Vulnerabilities-01 Apr16 (Linux)
#
# Authors:
# Rinu Kuriakose <[email protected]>
#
# Copyright:
# Copyright (C) 2016 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
CPE = "cpe:/a:cacti:cacti";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.807562");
script_version("$Revision: 12363 $");
script_cve_id("CVE-2015-8604", "CVE-2015-8369", "CVE-2015-8377");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_tag(name:"last_modification", value:"$Date: 2018-11-15 10:51:15 +0100 (Thu, 15 Nov 2018) $");
script_tag(name:"creation_date", value:"2016-04-26 10:28:01 +0530 (Tue, 26 Apr 2016)");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_name("Cacti Multiple SQL Injection And Security Bypass Vulnerabilities-01 Apr16 (Linux)");
script_tag(name:"summary", value:"This host is installed with Cacti and is
prone to multiple sql injection and a security bypass vulnerabilities.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The multiple flaws are due to,
- An insufficient validation of user supplied input via parameter 'cg_g' in the host_new_graphs function
graphs_new.php script.
- An insufficient validation of user supplied input via parameter 'rra_id' in a properties action to graph.php
script.
- An insufficient validation of user supplied input via parameter 'selected_graphs_array' in the
host_new_graphs_save function in graphs_new.php script.");
script_tag(name:"impact", value:"Successful exploitation will allow remote attacker to execute arbitrary SQL
commands and to bypass intended access restrictions.");
script_tag(name:"affected", value:"Cacti version 0.8.8f and earlier on Linux.");
script_tag(name:"solution", value:"Upgrade to version 0.8.8g or later.");
script_tag(name:"solution_type", value:"VendorFix");
script_xref(name:"URL", value:"http://bugs.cacti.net/view.php?id=2656");
script_xref(name:"URL", value:"http://packetstormsecurity.com/files/135191");
script_xref(name:"URL", value:"http://seclists.org/fulldisclosure/2015/Dec/8");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2016 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("cacti_detect.nasl", "os_detection.nasl");
script_mandatory_keys("cacti/installed", "Host/runs_unixoide");
script_require_ports("Services/www", 80);
script_xref(name:"URL", value:"http://www.cacti.net");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if(!cacPort = get_app_port(cpe:CPE))
exit(0);
if(!cactiVer = get_app_version(cpe:CPE, port:cacPort))
exit(0);
if(version_is_less_equal(version:cactiVer, test_version:"0.8.8f")) {
report = report_fixed_ver(installed_version:cactiVer, fixed_version:"0.8.8g");
security_message(data:report, port:cacPort);
exit(0);
}
exit(0);