Vulnerabilities > CVE-2019-17091 - Cross-site Scripting vulnerability in multiple products

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
eclipse
oracle
CWE-79
nessus

Summary

faces/context/PartialViewContextImpl.java in Eclipse Mojarra, as used in Mojarra for Eclipse EE4J before 2.3.10 and Mojarra JavaServer Faces before 2.2.20, allows Reflected XSS because a client window field is mishandled.

Vulnerable Configurations

Part Description Count
Application
Eclipse
11
Application
Oracle
144

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Embedding Scripts in Non-Script Elements
    This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
  • 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.
  • Cross-Site Scripting in Error Pages
    An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
  • Cross-Site Scripting Using Alternate Syntax
    The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.

Nessus

  • NASL familyMisc.
    NASL idORACLE_WEBLOGIC_SERVER_CPU_OCT_2019.NASL
    descriptionThe version of Oracle WebLogic Server installed on the remote host is affected by multiple vulnerabilities: - An unspecified vulnerability in the jquery component of the Web Services of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to gain unauthorized update, insert, or delete access to some of Oracle WebLogic Server accessible data. (CVE-2015-9251) - An unspecified vulnerability in the Web Services component of Oracle Weblogic Server. An unauthenticated, remote attacker unauthorized can exploit this to gain read access to some of Oracle WebLogic Server accessible data. (CVE-2019-2887) - An unspecified vulnerability in the Web Services component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to gain unauthorized read access to some of Oracle WebLogic Server accessible data. (CVE-2019-2888) - An unspecified vulnerability in the Web Services component of Oracle Weblogic Server. An authenticated, high priviledge remote attacker can exploit this to compromise Oracle WebLogic Server. (CVE-2019-2890) - An unspecified vulnerability in the console component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to compromise Oracle WebLogic Server. (CVE-2019-2891) - An unspecified vulnerability in the SOAP with Attachments API for Java component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to gain unauthorized update, insert, or delete access to some of Oracle Web Services accessible data as well as unauthorized read access to a subset of Oracle Web Services accessible data. (CVE-2019-2907) - An unspecified vulnerability in the ADF Faces jQuery component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to compromise Oracle JDeveloper and ADF resulting in an unauthorized update, insert, or delete access to some of OracleJDeveloper & ADF accessible data as well as unauthorized read access to a subset of Oracle JDeveloper & ADF accessible data. (CVE-2019-11358) - An unspecified vulnerability in the Web Container jQuery component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to compromise Oracle Service Bus resulting in an unauthorized update, insert, or delete access to some of Service Bus data as well as unauthorized read access to a subset of Oracle Service Bus accessible data. (CVE-2019-11358) - An unspecified vulnerability in the console jQuery component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to compromise Oracle WebLogic Server resulting in an unauthorized update, insert, or delete access to some of Oracle WebLogic Server data as well as unauthorized read access to a subset of Oracle WebLogic Server accessible data. (CVE-2019-11358) - An unspecified vulnerability in the Web Container Faces jQuery component of Oracle Weblogic Server. An unauthenticated, remote attacker can exploit this to compromise Oracle Service Bus resulting in an unauthorized update, insert, or delete access to some of Oracle WebLogic Server data as well as unauthorized read access to a subset of Oracle WebLogic Server accessible data. (CVE-2019-17091)
    last seen2020-06-01
    modified2020-06-02
    plugin id130012
    published2019-10-17
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/130012
    titleOracle WebLogic Server Multiple Vulnerabilities (Oct 2019 CPU)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(130012);
      script_version("1.7");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/30");
    
      script_cve_id(
        "CVE-2015-9251",
        "CVE-2019-2887",
        "CVE-2019-2888",
        "CVE-2019-2890",
        "CVE-2019-2891",
        "CVE-2019-2889",
        "CVE-2019-2907",
        "CVE-2019-11358",
        "CVE-2019-17091"
      );
      script_bugtraq_id(105658, 108023);
      script_xref(name:"IAVA", value:"2019-A-0382");
    
      script_name(english:"Oracle WebLogic Server Multiple Vulnerabilities (Oct 2019 CPU)");
      script_summary(english:"Checks the version of Oracle WebLogic to ensure the October 2019 CPU is applied.");
    
      script_set_attribute(attribute:"synopsis", value:
    "An application server installed on the remote host is affected by
    multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The version of Oracle WebLogic Server installed on the remote host is
    affected by multiple vulnerabilities:
    
    	-  An unspecified vulnerability in the jquery component of the 
           Web Services of Oracle Weblogic Server.  An unauthenticated, 
           remote attacker can exploit this to gain unauthorized update, 
           insert, or delete access to some of Oracle WebLogic Server 
           accessible data. (CVE-2015-9251) 
    
    	-  An unspecified vulnerability in the Web Services component of 
           Oracle Weblogic Server.  An unauthenticated, remote attacker 
           unauthorized can exploit this to gain read access to some of 
           Oracle WebLogic Server accessible data. (CVE-2019-2887)
    
        -  An unspecified vulnerability in the Web Services component of 
           Oracle Weblogic Server.  An unauthenticated, remote attacker 
           can exploit this to gain unauthorized read access to some of 
           Oracle WebLogic Server accessible data. (CVE-2019-2888)
    
        -  An unspecified vulnerability in the Web Services component of 
           Oracle Weblogic Server.  An authenticated, high priviledge 
           remote attacker can exploit this to compromise 
           Oracle WebLogic Server. (CVE-2019-2890)
    
        -  An unspecified vulnerability in the console component of 
           Oracle Weblogic Server.  An unauthenticated, remote attacker 
           can exploit this to compromise Oracle WebLogic Server. 
           (CVE-2019-2891)
    
        -  An unspecified vulnerability in the SOAP with Attachments API 
           for Java component of Oracle Weblogic Server.  An 
           unauthenticated, remote attacker can exploit this to gain
           unauthorized update, insert, or delete access to some of 
           Oracle Web Services accessible data as well as unauthorized 
           read access to a subset of Oracle Web Services accessible 
           data. (CVE-2019-2907)
           
        -  An unspecified vulnerability in the ADF Faces jQuery component
           of Oracle Weblogic Server.  An unauthenticated, remote 
           attacker can exploit this to compromise Oracle 
           JDeveloper and ADF resulting in an unauthorized update, 
           insert, or delete access to some of OracleJDeveloper & ADF 
           accessible data as well as unauthorized read access to a 
           subset of Oracle JDeveloper & ADF accessible data. 
           (CVE-2019-11358)
    
        -  An unspecified vulnerability in the Web Container jQuery 
           component of Oracle Weblogic Server.  An unauthenticated, 
           remote attacker can exploit this to compromise 
           Oracle Service Bus resulting in an unauthorized update, 
           insert, or delete access to some of Service Bus data as well 
           as unauthorized read access to a subset of Oracle Service Bus 
           accessible data. (CVE-2019-11358)
    
        -  An unspecified vulnerability in the console jQuery component 
           of Oracle Weblogic Server.  An unauthenticated, remote 
           attacker can exploit this to compromise Oracle 
           WebLogic Server resulting in an unauthorized update, insert, 
           or delete access to some of Oracle WebLogic Server data as 
           well as unauthorized read access to a subset of Oracle 
           WebLogic Server accessible data. (CVE-2019-11358)
    
        -  An unspecified vulnerability in the Web Container Faces jQuery
           component of Oracle Weblogic Server.  An unauthenticated, 
           remote attacker can exploit this to compromise 
           Oracle Service Bus resulting in an unauthorized update, 
           insert, or delete access to some of Oracle WebLogic Server 
           data as well as unauthorized read access to a subset of Oracle
           WebLogic Server accessible data. (CVE-2019-17091)");
      # https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b370bc74");
      # https://www.oracle.com/technetwork/security-advisory/cpuoct2019verbose-5072833.html#FMW
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3d73bb23");
      script_set_attribute(attribute:"solution", value:
    "Apply the appropriate patch according to the October 2019 Oracle
    Critical Patch Update advisory.
    
    Refer to Oracle for any additional patch instructions or
    mitigation options.");
      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:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-2891");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"agent", value:"all");
    
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2019/10/15");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/10/15");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/10/17");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:fusion_middleware");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:weblogic_server");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Misc.");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("oracle_weblogic_server_installed.nbin", "os_fingerprint.nasl");
      script_require_keys("installed_sw/Oracle WebLogic Server");
    
      exit(0);
    }
    
    include('audit.inc');
    include('global_settings.inc');
    include('misc_func.inc');
    include('install_func.inc');
    include('obj.inc');
    include('spad_log_func.inc');
    
    app_name = "Oracle WebLogic Server";
    
    install = get_single_install(app_name:app_name, exit_if_unknown_ver:TRUE);
    ohome = install["Oracle Home"];
    subdir = install["path"];
    version = install["version"];
    
    fix = NULL;
    fix_ver = NULL;
    
    spad_log(message:"checking version [" + version + "]");
    # individual security patches
    if (version =~ "^12\.2\.1\.3($|[^0-9])")
    {
      fix_ver = "12.2.1.3.191015";
      fix = make_list("30386660");
    }
    else if (version =~ "^12\.1\.3\.")
    {
      fix_ver = "12.1.3.0.191015";
      fix = make_list("30108725");
    }
    else if (version =~ "^10\.3\.6\.")
    {
      fix_ver = "10.3.6.0.191015";
      fix = make_list("3L3H"); # patchid is obtained from the readme and 10.3.6.x assets are different
    }
    else
      audit(AUDIT_INST_PATH_NOT_VULN, app_name, version, subdir);
    
    spad_log(message:"checking fix [" + obj_rep(fix) + "]");
    PATCHED=FALSE;
    
    # Iterate over the list of patches and check the install for the patchID
    foreach id (fix)
    {
     spad_log(message:"Checking fix id: [" + id +"]");
     if (install[id])
     {
       PATCHED=TRUE;
       break;
     }
    }
    
    VULN=FALSE;
    if (ver_compare(ver:version, fix:fix_ver, strict:FALSE) == -1)
      VULN=TRUE;
    
    if (PATCHED || !VULN)
      audit(AUDIT_INST_PATH_NOT_VULN, app_name, version, subdir);
    
    os = get_kb_item_or_exit("Host/OS");
    if ('windows' >< tolower(os))
    {
      port = get_kb_item("SMB/transport");
      if (!port) port = 445;
    }
    else port = 0;
    
    report =
      '\n  Oracle Home    : ' + ohome +
      '\n  Install path   : ' + subdir +
      '\n  Version        : ' + version +
      '\n  Fixes          : ' + join(sep:", ", fix);
    
    security_report_v4(extra:report, severity:SECURITY_WARNING, port:port);
    
  • NASL familyCGI abuses
    NASL idORACLE_PRIMAVERA_P6_EPPM_CPU_JAN_2020.NASL
    descriptionAccording to its self-reported version number, the Oracle Primavera P6 EnterpriseProject Portfolio Management (EPPM) installation running on the remote web server is 15.x prior to 15.2.18.8, 16.x prior to 16.2.19.2, 17.x prior to 17.12.16.1, or 18.8.x prior to 18.8.16.`, or 19.12.1.0. It is, therefore, affected by multiple vulnerabilities: - An authentication bypass vulnerability exists in Oracle Primavera P6 Enterprise Project Portfolio Management. An unauthenticated, local attack can exploit this, to bypass authentication and execute arbitrary actions with root privileges. (CVE-2020-2556) - A authorization bypass vulnerability exists in Primavera P6 Enterprise Project Portfolio Management. An autheticated local attacker can exploit this via HTTP to access controlled data on the network and EPPM. (CVE-2020-2707) - A XSS vulnerability exists in Primavera P6 Enterprise Project Portfolio due to vulnerability in Mojarra components, allowing Reflected XSS because a client window field is mishandled. (CVE-2019-17091) Note that Nessus has not tested for these issues but has instead relied only on the application
    last seen2020-04-18
    modified2020-01-17
    plugin id133054
    published2020-01-17
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/133054
    titleOracle Primavera P6 Enterprise Project Portfolio Management (EPPM) Multiple Vulnerabilities (Jan 2020 CPU)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include('compat.inc');
    
    if (description)
    {
      script_id(133054);
      script_version("1.5");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/17");
    
      script_cve_id("CVE-2019-17091", "CVE-2020-2556", "CVE-2020-2707");
    
      script_name(english:"Oracle Primavera P6 Enterprise Project Portfolio Management (EPPM) Multiple Vulnerabilities (Jan 2020 CPU)");
    
      script_set_attribute(attribute:"synopsis", value:
    "An application running on the remote web server is affected by multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "According to its self-reported version number, the Oracle Primavera P6 EnterpriseProject Portfolio Management (EPPM)
    installation running on the remote web server is 15.x prior to 15.2.18.8, 16.x prior to 16.2.19.2, 17.x prior to
    17.12.16.1, or 18.8.x prior to 18.8.16.`, or 19.12.1.0. It is, therefore, affected by multiple vulnerabilities:
    
      - An authentication bypass vulnerability exists in Oracle Primavera P6 Enterprise
        Project Portfolio Management. An unauthenticated, local attack can exploit this,
        to bypass authentication and execute arbitrary actions with root privileges. 
        (CVE-2020-2556)
    
      - A authorization bypass vulnerability exists in Primavera P6 Enterprise Project 
        Portfolio Management. An autheticated local attacker can exploit this via HTTP to 
        access controlled data on the network and EPPM. (CVE-2020-2707)
    
      - A XSS vulnerability exists in Primavera P6 Enterprise Project Portfolio due to 
        vulnerability in Mojarra components, allowing Reflected XSS because a client 
        window field is mishandled. (CVE-2019-17091)
    
    Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version
    number.");
      script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/security-alerts/cpujan2020.html");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to Oracle Primavera P6 Enterprise Project Portfolio Management (EPPM) version
    15.2.18.8 / 16.2.19.2 / 17.12.16.1 / 18.8.17.0 / 19.12.1.0 or later.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:S/C:P/I:P/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-2707");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2020/01/14");
      script_set_attribute(attribute:"patch_publication_date", value:"2020/01/14");
      script_set_attribute(attribute:"plugin_publication_date", value:"2020/01/17");
    
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/a:oracle:primavera_p6_eppm");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("oracle_primavera_p6_eppm.nbin");
      script_require_keys("installed_sw/Oracle Primavera P6 Enterprise Project Portfolio Management (EPPM)", "www/weblogic");
      script_require_ports("Services/www", 8004);
    
      exit(0);
    }
    
    include('http.inc');
    include('vcf.inc');
    
    get_install_count(app_name:'Oracle Primavera P6 Enterprise Project Portfolio Management (EPPM)', exit_if_zero:TRUE);
    
    port = get_http_port(default:8004);
    get_kb_item_or_exit('www/weblogic/' + port + '/installed');
    
    app_info = vcf::get_app_info(app:'Oracle Primavera P6 Enterprise Project Portfolio Management (EPPM)', port:port);
    
    constraints = [
      { 'min_version' : '15.1.0.0', 'fixed_version' : '15.2.18.8'},
      { 'min_version' : '16.2.0.0', 'fixed_version' : '16.2.19.2'},
      { 'min_version' : '17.12.0.0', 'fixed_version' : '17.12.16.1'},
      { 'min_version' : '18.8.0.0', 'fixed_version' : '18.8.17.0'},
      { 'min_version' : '19.12.0.0', 'fixed_version' : '19.12.1.0'}
      ];
    
    vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING, flags:{'xss':TRUE});
    
  • NASL familyMisc.
    NASL idORACLE_SECURE_GLOBAL_DESKTOP_JAN_2020_CPU.NASL
    descriptionThe version of Oracle Secure Global Desktop installed on the remote host is missing a security patch from the January 2020 Critical Patch Update (CPU). It is, therefore, affected by multiple vulnerabilities: - A remote code execution vulnerability exists in the Core (Apache Axis) component. An unauthenticated, adjacent attacker can exploit this issue, to execute arbitrary commands. (CVE-2019-0227) - A cross-site scripting vulnerability exists in the Web Server (Appache HTTPD Server) component. An unauthenticated, remote attacker can exploit this issue via causing the link on the mod_proxy error page to be malformed and point to a page of the attacker
    last seen2020-06-01
    modified2020-06-02
    plugin id133042
    published2020-01-17
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/133042
    titleOracle Secure Global Desktop Multiple Vulnerabilities (January 2020 CPU)