ID OPENVAS:1361412562310108363 Type openvas Reporter Copyright (c) 2018 Greenbone Networks GmbH Modified 2018-10-24T00:00:00
Description
This host is running Elasticsearch which
is prone to an arbitrary code-execution vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_elasticsearch_CVE-2015-4165.nasl 12045 2018-10-24 06:51:17Z mmartin $
#
# Elasticsearch < 1.6.0 Arbitrary Code Execution Vulnerability
#
# Authors:
# Christian Fischer <christian.fischer@greenbone.net>
#
# Copyright:
# Copyright (c) 2018 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version
#
# 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:elasticsearch:elasticsearch";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.108363");
script_version("$Revision: 12045 $");
script_cve_id("CVE-2015-4165");
script_bugtraq_id(75113);
script_tag(name:"cvss_base", value:"6.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:S/C:P/I:P/A:P");
script_tag(name:"last_modification", value:"$Date: 2018-10-24 08:51:17 +0200 (Wed, 24 Oct 2018) $");
script_tag(name:"creation_date", value:"2018-03-01 16:01:42 +0100 (Thu, 01 Mar 2018)");
script_name("Elasticsearch < 1.6.0 Arbitrary Code Execution Vulnerability");
script_copyright("Copyright (c) 2018 Greenbone Networks GmbH");
script_category(ACT_GATHER_INFO);
script_family("Web application abuses");
script_dependencies("gb_elastsearch_detect.nasl");
script_require_ports("Services/www", 9200);
script_mandatory_keys("elasticsearch/installed");
script_xref(name:"URL", value:"https://www.elastic.co/community/security/");
script_tag(name:"summary", value:"This host is running Elasticsearch which
is prone to an arbitrary code-execution vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"impact", value:"An attacker could exploit this issue to
execute arbitrary code in the context of the application.");
script_tag(name:"insight", value:"The snapshot API in Elasticsearch before 1.6.0
when another application exists on the system that can read Lucene files and
execute code from them, is accessible by the attacker, and the Java VM on which
Elasticsearch is running can write to a location that the other application can
read and execute from, allows remote authenticated users to write to and create
arbitrary snapshot metadata files, and potentially execute arbitrary code.");
script_tag(name:"affected", value:"Elasticsearch version 1.0.0 through 1.5.2.");
script_tag(name:"solution", value:"Upgrade to Elasticsearch version 1.6.0,
or later.");
# Only vulnerable in specific circumstances
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("version_func.inc");
include("host_details.inc");
if( ! port = get_app_port( cpe:CPE ) ) exit( 0 );
if( ! vers = get_app_version( cpe:CPE, port:port ) ) exit( 0 );
if( version_in_range( version:vers, test_version:"1.0.0", test_version2:"1.5.2" ) ) {
report = report_fixed_ver( installed_version:vers, fixed_version:"1.6.0" );
security_message( port:port, data:report );
exit( 0 );
}
exit( 99 );
{"id": "OPENVAS:1361412562310108363", "type": "openvas", "bulletinFamily": "scanner", "title": "Elasticsearch < 1.6.0 Arbitrary Code Execution Vulnerability", "description": "This host is running Elasticsearch which\n is prone to an arbitrary code-execution vulnerability.", "published": "2018-03-01T00:00:00", "modified": "2018-10-24T00:00:00", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310108363", "reporter": "Copyright (c) 2018 Greenbone Networks GmbH", "references": ["https://www.elastic.co/community/security/"], "cvelist": ["CVE-2015-4165"], "lastseen": "2019-05-29T18:32:33", "viewCount": 4, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2015-4165"]}, {"type": "securityvulns", "idList": ["SECURITYVULNS:VULN:14538", "SECURITYVULNS:DOC:32209"]}, {"type": "zdt", "idList": ["1337DAY-ID-23727"]}, {"type": "nessus", "idList": ["FREEBSD_PKG_232320281BA411E5B43D002590263BF5.NASL"]}, {"type": "freebsd", "idList": ["23232028-1BA4-11E5-B43D-002590263BF5"]}], "modified": "2019-05-29T18:32:33", "rev": 2}, "score": {"value": 7.3, "vector": "NONE", "modified": "2019-05-29T18:32:33", "rev": 2}, "vulnersScore": 7.3}, "pluginID": "1361412562310108363", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_elasticsearch_CVE-2015-4165.nasl 12045 2018-10-24 06:51:17Z mmartin $\n#\n# Elasticsearch < 1.6.0 Arbitrary Code Execution Vulnerability\n#\n# Authors:\n# Christian Fischer <christian.fischer@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2018 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nCPE = \"cpe:/a:elasticsearch:elasticsearch\";\n\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.108363\");\n script_version(\"$Revision: 12045 $\");\n script_cve_id(\"CVE-2015-4165\");\n script_bugtraq_id(75113);\n script_tag(name:\"cvss_base\", value:\"6.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:S/C:P/I:P/A:P\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-10-24 08:51:17 +0200 (Wed, 24 Oct 2018) $\");\n script_tag(name:\"creation_date\", value:\"2018-03-01 16:01:42 +0100 (Thu, 01 Mar 2018)\");\n script_name(\"Elasticsearch < 1.6.0 Arbitrary Code Execution Vulnerability\");\n script_copyright(\"Copyright (c) 2018 Greenbone Networks GmbH\");\n script_category(ACT_GATHER_INFO);\n script_family(\"Web application abuses\");\n script_dependencies(\"gb_elastsearch_detect.nasl\");\n script_require_ports(\"Services/www\", 9200);\n script_mandatory_keys(\"elasticsearch/installed\");\n\n script_xref(name:\"URL\", value:\"https://www.elastic.co/community/security/\");\n\n script_tag(name:\"summary\", value:\"This host is running Elasticsearch which\n is prone to an arbitrary code-execution vulnerability.\");\n\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n\n script_tag(name:\"impact\", value:\"An attacker could exploit this issue to\n execute arbitrary code in the context of the application.\");\n\n script_tag(name:\"insight\", value:\"The snapshot API in Elasticsearch before 1.6.0\n when another application exists on the system that can read Lucene files and\n execute code from them, is accessible by the attacker, and the Java VM on which\n Elasticsearch is running can write to a location that the other application can\n read and execute from, allows remote authenticated users to write to and create\n arbitrary snapshot metadata files, and potentially execute arbitrary code.\");\n\n script_tag(name:\"affected\", value:\"Elasticsearch version 1.0.0 through 1.5.2.\");\n\n script_tag(name:\"solution\", value:\"Upgrade to Elasticsearch version 1.6.0,\n or later.\");\n\n # Only vulnerable in specific circumstances\n script_tag(name:\"qod_type\", value:\"remote_banner_unreliable\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n\n exit(0);\n}\n\ninclude(\"version_func.inc\");\ninclude(\"host_details.inc\");\n\nif( ! port = get_app_port( cpe:CPE ) ) exit( 0 );\nif( ! vers = get_app_version( cpe:CPE, port:port ) ) exit( 0 );\n\nif( version_in_range( version:vers, test_version:\"1.0.0\", test_version2:\"1.5.2\" ) ) {\n report = report_fixed_ver( installed_version:vers, fixed_version:\"1.6.0\" );\n security_message( port:port, data:report );\n exit( 0 );\n}\n\nexit( 99 );", "naslFamily": "Web application abuses"}
{"cve": [{"lastseen": "2020-10-03T12:49:51", "description": "The snapshot API in Elasticsearch before 1.6.0 when another application exists on the system that can read Lucene files and execute code from them, is accessible by the attacker, and the Java VM on which Elasticsearch is running can write to a location that the other application can read and execute from, allows remote authenticated users to write to and create arbitrary snapshot metadata files, and potentially execute arbitrary code.", "edition": 3, "cvss3": {"exploitabilityScore": 1.6, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "HIGH", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 7.5, "privilegesRequired": "LOW", "vectorString": "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.0"}, "impactScore": 5.9}, "published": "2017-08-09T16:29:00", "title": "CVE-2015-4165", "type": "cve", "cwe": ["CWE-264"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 6.8, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.0, "vectorString": "AV:N/AC:M/Au:S/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2015-4165"], "modified": "2018-10-09T19:57:00", "cpe": ["cpe:/a:elasticsearch:elasticsearch:1.5.2"], "id": "CVE-2015-4165", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-4165", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:a:elasticsearch:elasticsearch:1.5.2:*:*:*:*:*:*:*"]}], "securityvulns": [{"lastseen": "2018-08-31T11:10:59", "bulletinFamily": "software", "cvelist": ["CVE-2015-4165"], "description": "\r\n\r\nSummary:\r\nElasticsearch versions 1.0.0 - 1.5.2 are vulnerable to an engineered attack on other applications on the system. The snapshot API may be used indirectly to place snapshot metadata files into locations that are writeable by the user running the Elasticsearch process. It is possible to create a file that another application could read and take action on, such as code execution.\r\n\r\nThis vulnerability requires several conditions to be exploited. There must be some other application running on the system that would read Lucene files and execute code from them. That application must also be accessible to the attacker, e.g. over the network. Lastly, the Java VM running the Elasticsearch process must be able to write into a location that the other application will read and potentially execute.\r\n\r\nWe have been assigned CVE-2015-4165 for this issue.\r\n\r\n\r\nFixed versions:\r\nVersion 1.6.0 address the vulnerability by adding configuration to limit the filesystem paths that the Java VM can write into.\r\n\r\n\r\nRemediation:\r\nUsers should upgrade to the 1.6.0 release.\r\n\r\nUsers that do not want to upgrade can address the vulnerability in any of several ways:\r\n- ensure that there are no other applications running on the Elasticsearch server\r\n- ensure that the Elasticsearch JVM cannot write a directory that other applications read from\r\n- use a firewall, reverse proxy, or Shield to prevent snapshot API calls from some or all users\r\n- ensure that other applications running on the server are not accessible to attackers\r\n\r\n\r\nCVSS\r\nOverall CVSS score: 5.1\r\n\r\n", "edition": 1, "modified": "2015-06-14T00:00:00", "published": "2015-06-14T00:00:00", "id": "SECURITYVULNS:DOC:32209", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:32209", "title": "Elasticsearch vulnerability CVE-2015-4165", "type": "securityvulns", "cvss": {"score": 6.0, "vector": "AV:NETWORK/AC:MEDIUM/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}, {"lastseen": "2018-08-31T11:10:00", "bulletinFamily": "software", "cvelist": ["CVE-2015-4165"], "description": "snapshot API files access", "edition": 1, "modified": "2015-06-14T00:00:00", "published": "2015-06-14T00:00:00", "id": "SECURITYVULNS:VULN:14538", "href": "https://vulners.com/securityvulns/SECURITYVULNS:VULN:14538", "title": "Elasticsearch files access", "type": "securityvulns", "cvss": {"score": 6.0, "vector": "AV:NETWORK/AC:MEDIUM/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "zdt": [{"lastseen": "2018-03-28T07:18:24", "description": "Elasticsearch versions 1.0.0 through 1.5.2 are vulnerable to an engineered attack on other applications on the system. The snapshot API may be used indirectly to place snapshot metadata files into locations that are writeable by the user running the Elasticsearch process. It is possible to create a file that another application could read and take action on, such as code execution.", "edition": 2, "published": "2015-06-10T00:00:00", "type": "zdt", "title": "Elasticsearch 1.5.2 File Creation Vulnerability", "bulletinFamily": "exploit", "cvelist": ["CVE-2015-4165"], "modified": "2015-06-10T00:00:00", "id": "1337DAY-ID-23727", "href": "https://0day.today/exploit/description/23727", "sourceData": "Summary:\r\nElasticsearch versions 1.0.0 - 1.5.2 are vulnerable to an engineered attack on other applications on the system. The snapshot API may be used indirectly to place snapshot metadata files into locations that are writeable by the user running the Elasticsearch process. It is possible to create a file that another application could read and take action on, such as code execution.\r\n\r\nThis vulnerability requires several conditions to be exploited. There must be some other application running on the system that would read Lucene files and execute code from them. That application must also be accessible to the attacker, e.g. over the network. Lastly, the Java VM running the Elasticsearch process must be able to write into a location that the other application will read and potentially execute.\r\n\r\nWe have been assigned CVE-2015-4165 for this issue.\r\n\r\n\r\nFixed versions:\r\nVersion 1.6.0 address the vulnerability by adding configuration to limit the filesystem paths that the Java VM can write into.\r\n\r\n\r\nRemediation:\r\nUsers should upgrade to the 1.6.0 release.\r\n\r\nUsers that do not want to upgrade can address the vulnerability in any of several ways:\r\n- ensure that there are no other applications running on the Elasticsearch server\r\n- ensure that the Elasticsearch JVM cannot write a directory that other applications read from\r\n- use a firewall, reverse proxy, or Shield to prevent snapshot API calls from some or all users\r\n- ensure that other applications running on the server are not accessible to attackers\n\n# 0day.today [2018-03-28] #", "cvss": {"score": 6.0, "vector": "AV:NETWORK/AC:MEDIUM/Au:SINGLE_INSTANCE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://0day.today/exploit/23727"}], "freebsd": [{"lastseen": "2019-05-29T18:33:12", "bulletinFamily": "unix", "cvelist": ["CVE-2015-4165"], "description": "\nElastic reports:\n\nVulnerability Summary: All Elasticsearch versions from 1.0.0 to\n\t 1.5.2 are vulnerable to an attack that uses Elasticsearch to modify\n\t files read and executed by certain other applications.\nRemediation Summary: Users should upgrade to 1.6.0. Alternately,\n\t ensure that other applications are not present on the system, or\n\t that Elasticsearch cannot write into areas where these applications\n\t would read.\n\n", "edition": 5, "modified": "2015-06-09T00:00:00", "published": "2015-06-09T00:00:00", "id": "23232028-1BA4-11E5-B43D-002590263BF5", "href": "https://vuxml.freebsd.org/freebsd/23232028-1ba4-11e5-b43d-002590263bf5.html", "title": "elasticsearch -- security fix for shared file-system repositories", "type": "freebsd", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}}], "nessus": [{"lastseen": "2021-01-07T10:40:38", "description": "Elastic reports :\n\nVulnerability Summary: All Elasticsearch versions from 1.0.0 to 1.5.2\nare vulnerable to an attack that uses Elasticsearch to modify files\nread and executed by certain other applications.\n\nRemediation Summary: Users should upgrade to 1.6.0. Alternately,\nensure that other applications are not present on the system, or that\nElasticsearch cannot write into areas where these applications would\nread.", "edition": 24, "cvss3": {"score": 7.5, "vector": "AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}, "published": "2015-06-26T00:00:00", "title": "FreeBSD : elasticsearch -- security fix for shared file-system repositories (23232028-1ba4-11e5-b43d-002590263bf5)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2015-4165"], "modified": "2015-06-26T00:00:00", "cpe": ["cpe:/o:freebsd:freebsd", "p-cpe:/a:freebsd:freebsd:elasticsearch"], "id": "FREEBSD_PKG_232320281BA411E5B43D002590263BF5.NASL", "href": "https://www.tenable.com/plugins/nessus/84410", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from the FreeBSD VuXML database :\n#\n# Copyright 2003-2018 Jacques Vidrine and contributors\n#\n# Redistribution and use in source (VuXML) and 'compiled' forms (SGML,\n# HTML, PDF, PostScript, RTF and so forth) with or without modification,\n# are permitted provided that the following conditions are met:\n# 1. Redistributions of source code (VuXML) must retain the above\n# copyright notice, this list of conditions and the following\n# disclaimer as the first lines of this file unmodified.\n# 2. Redistributions in compiled form (transformed to other DTDs,\n# published online in any format, converted to PDF, PostScript,\n# RTF and other formats) must reproduce the above copyright\n# notice, this list of conditions and the following disclaimer\n# in the documentation and/or other materials provided with the\n# distribution.\n# \n# THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS \"AS IS\"\n# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS\n# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\n# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,\n# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(84410);\n script_version(\"2.6\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/06\");\n\n script_cve_id(\"CVE-2015-4165\");\n\n script_name(english:\"FreeBSD : elasticsearch -- security fix for shared file-system repositories (23232028-1ba4-11e5-b43d-002590263bf5)\");\n script_summary(english:\"Checks for updated package in pkg_info output\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote FreeBSD host is missing a security-related update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Elastic reports :\n\nVulnerability Summary: All Elasticsearch versions from 1.0.0 to 1.5.2\nare vulnerable to an attack that uses Elasticsearch to modify files\nread and executed by certain other applications.\n\nRemediation Summary: Users should upgrade to 1.6.0. Alternately,\nensure that other applications are not present on the system, or that\nElasticsearch cannot write into areas where these applications would\nread.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201008\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://www.elastic.co/community/security\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://www.elastic.co/blog/elasticsearch-1-6-0-released\"\n );\n # https://vuxml.freebsd.org/freebsd/23232028-1ba4-11e5-b43d-002590263bf5.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?f770ed04\"\n );\n script_set_attribute(attribute:\"solution\", value:\"Update the affected package.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:M/Au:S/C:P/I:P/A:P\");\n script_set_cvss3_base_vector(\"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:freebsd:freebsd:elasticsearch\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:freebsd:freebsd\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2015/06/09\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2015/06/26\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2015/06/26\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2015-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"FreeBSD Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/FreeBSD/release\", \"Host/FreeBSD/pkg_info\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"freebsd_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/FreeBSD/release\")) audit(AUDIT_OS_NOT, \"FreeBSD\");\nif (!get_kb_item(\"Host/FreeBSD/pkg_info\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\n\nif (pkg_test(save_report:TRUE, pkg:\"elasticsearch>=1.0.0<1.6.0\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());\n else security_warning(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 6.0, "vector": "AV:N/AC:M/Au:S/C:P/I:P/A:P"}}]}