Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU) - Nessus

Critical   Plugin ID: 148986

This page contains detailed information about the Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 148986
Name: Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU)
Filename: mysql_enterprise_monitor_8_0_24.nasl
Vulnerability Published: 2021-04-20
This Plugin Published: 2021-04-26
Last Modification Time: 2022-01-21
Plugin Version: 1.6
Plugin Type: combined
Plugin Family: CGI abuses
Dependencies: mysql_enterprise_monitor_web_detect.nasl, oracle_mysql_enterprise_monitor_local_detect.nbin, oracle_mysql_enterprise_monitor_local_nix_detect.nbin
Required KB Items [?]: installed_sw/MySQL Enterprise Monitor

Vulnerability Information


Severity: Critical
Vulnerability Published: 2021-04-20
Patch Published: 2021-04-20
CVE [?]: CVE-2020-17527, CVE-2020-17530, CVE-2021-3450, CVE-2021-23841, CVE-2021-25122
CPE [?]: cpe:/a:oracle:mysql_enterprise_monitor

Synopsis

The remote host is affected by multiple vulnerabilities

Description

MySQL Enterprise Monitor installed on the remote host is 8.0.x prior to 8.0.24. Therefore, it's affected by multiple vulnerabilities as referenced in the April 2021 CPU advisory.

- Vulnerability in the MySQL Enterprise Monitor product of Oracle MySQL (component: Monitoring: General (Apache Tomcat)). Supported versions that are affected are 8.0.23 and prior. Easily exploitable vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise MySQL Enterprise Monitor. Successful attacks of this vulnerability can result in unauthorized access to critical data or complete access to all MySQL Enterprise Monitor accessible data (CVE-2020-17527).

- Vulnerability in the MySQL Enterprise Monitor product of Oracle MySQL (component: Monitoring: General (Apache Struts)). Supported versions that are affected are 8.0.23 and prior. Easily exploitable vulnerability allows unauthenticated attacker with network access via HTTPS to compromise MySQL Enterprise Monitor. Successful attacks of this vulnerability can result in takeover of MySQL Enterprise Monitor (CVE-2020-17530).

- Vulnerability in the MySQL Enterprise Monitor product of Oracle MySQL (component: Monitoring: General (OpenSSL)). Supported versions that are affected are 8.0.23 and prior. Difficult to exploit vulnerability allows unauthenticated attacker with network access via HTTPS to compromise MySQL Enterprise Monitor. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all MySQL Enterprise Monitor accessible data as well as unauthorized access to critical data or complete access to all MySQL Enterprise Monitor accessible data (CVE-2021-3450).

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Apply the appropriate patch according to the April 2021 Oracle Critical Patch Update advisory.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU) vulnerability:

  1. Metasploit: exploit/multi/http/struts2_multi_eval_ognl
    [Apache Struts 2 Forced Multi OGNL Evaluation]
  2. GitHub: https://github.com/forse01/CVE-2020-17527-Tomcat
    [CVE-2020-17527]
  3. GitHub: https://github.com/0day666/Vulnerability-verification
    [CVE-2020-17530]
  4. GitHub: https://github.com/CyborgSecurity/CVE-2020-17530
    [CVE-2020-17530]
  5. GitHub: https://github.com/EdgeSecurityTeam/Vulnerability
    [CVE-2020-17530]
  6. GitHub: https://github.com/EvilPulsar/S2-061
    [CVE-2020-17530]
  7. GitHub: https://github.com/Mr-xn/Penetration_Testing_POC
    [CVE-2020-17530]
  8. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2020-17530]
  9. GitHub: https://github.com/alexfrancow/CVE-Search
    [CVE-2020-17530]
  10. GitHub: https://github.com/ciakim/CVE-2020-17530
    [CVE-2020-17530]
  11. GitHub: https://github.com/jeansgit/Pentest
    [CVE-2020-17530]
  12. GitHub: https://github.com/ka1n4t/CVE-2020-17530
    [CVE-2020-17530]
  13. GitHub: https://github.com/killmonday/CVE-2020-17530-s2-061
    [CVE-2020-17530]
  14. GitHub: https://github.com/lovechinacoco/https-github.com-mai-lang-chai-Middleware-Vulnerability-detection
    [CVE-2020-17530]
  15. GitHub: https://github.com/ludy-dev/freemarker_RCE_struts2_s2-061
    [CVE-2020-17530: (cve-2020-17530) struts2_s2-061 freemarker_RCE testscript]
  16. GitHub: https://github.com/uzzzval/CVE-2020-17530
    [CVE-2020-17530]
  17. GitHub: https://github.com/woods-sega/woodswiki
    [CVE-2020-17530]
  18. GitHub: https://github.com/DNTYO/F5_Vulnerability
    [CVE-2021-3450]
  19. GitHub: https://github.com/bollwarm/SecToolSet
    [CVE-2021-3450]
  20. GitHub: https://github.com/jntass/TASSL-1.1.1k
    [CVE-2021-3450]
  21. GitHub: https://github.com/rnbochsr/yr_of_the_jellyfish
    [CVE-2021-3450]
  22. GitHub: https://github.com/scriptzteam/glFTPd-v2.11ab-STABLE
    [CVE-2021-3450]
  23. GitHub: https://github.com/thecyberbaby/Trivy-by-aquaSecurity
    [CVE-2021-3450]
  24. GitHub: https://github.com/vinamra28/tekton-image-scan-trivy
    [CVE-2021-3450]
  25. GitHub: https://github.com/JamesGeee/CVE-2021-23841
    [CVE-2021-23841: PoC for exploiting CVE-2021-23841]
  26. GitHub: https://github.com/Trinadh465/external_boringssl_openssl_1.1.0g_CVE-2021-23841
    [CVE-2021-23841]
  27. GitHub: https://github.com/falk-werner/cve-check
    [CVE-2021-23841]
  28. GitHub: https://github.com/jntass/TASSL-1.1.1k
    [CVE-2021-23841]
  29. GitHub: https://github.com/thecyberbaby/Trivy-by-aquaSecurity
    [CVE-2021-23841]
  30. GitHub: https://github.com/vinamra28/tekton-image-scan-trivy
    [CVE-2021-23841]
  31. GitHub: https://github.com/DNTYO/F5_Vulnerability
    [CVE-2021-25122]
  32. GitHub: https://github.com/154802388/CVE-2020-17531
    [CVE-2020-17530: Apache Struts2框架是一个用于开发Java ...]
  33. GitHub: https://github.com/Al1ex/CVE-2020-17530
    [CVE-2020-17530: S2-061 CVE-2020-17530]
  34. GitHub: https://github.com/fengziHK/CVE-2020-17530-strust2-061
    [CVE-2020-17530: CVE-2020-17530-strust2-061]
  35. GitHub: https://github.com/pangyu360es/CVE-2020-17530
    [CVE-2020-17530: Apache Struts2框架是一个用于开发Java ...]
  36. GitHub: https://github.com/phil-fly/CVE-2020-17530
    [CVE-2020-17530: hack,poc]
  37. GitHub: https://github.com/wuzuowei/CVE-2020-17530
    [CVE-2020-17530: S2-061 的payload,以及对应简单的PoC/Exp]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2020-17530
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)

Go back to menu.

Plugin Source


This is the mysql_enterprise_monitor_8_0_24.nasl nessus plugin source code. This script is Copyright (C) 2021-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

##
# (C) Tenable Network Security, Inc.
##

include('compat.inc');

if (description)
{
  script_id(148986);
  script_version("1.6");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/01/21");

  script_cve_id(
    "CVE-2020-17527",
    "CVE-2020-17530",
    "CVE-2021-3450",
    "CVE-2021-23841",
    "CVE-2021-25122"
  );
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/03");

  script_name(english:"Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU)");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by multiple vulnerabilities");
  script_set_attribute(attribute:"description", value:
"MySQL Enterprise Monitor installed on the remote host is 8.0.x prior to 8.0.24. Therefore, it's affected by 
multiple vulnerabilities as referenced in the April 2021 CPU advisory.

  - Vulnerability in the MySQL Enterprise Monitor product of Oracle MySQL (component: Monitoring: General 
    (Apache Tomcat)). Supported versions that are affected are 8.0.23 and prior. Easily exploitable vulnerability
    allows unauthenticated attacker with network access via multiple protocols to compromise MySQL Enterprise Monitor.
    Successful attacks of this vulnerability can result in unauthorized access to critical data or complete access to
    all MySQL Enterprise Monitor accessible data (CVE-2020-17527).

  - Vulnerability in the MySQL Enterprise Monitor product of Oracle MySQL (component: Monitoring: General 
    (Apache Struts)). Supported versions that are affected are 8.0.23 and prior. Easily exploitable vulnerability 
    allows unauthenticated attacker with network access via HTTPS to compromise MySQL Enterprise Monitor. Successful
    attacks of this vulnerability can result in takeover of MySQL Enterprise Monitor (CVE-2020-17530).

  - Vulnerability in the MySQL Enterprise Monitor product of Oracle MySQL (component: Monitoring: General (OpenSSL)).
    Supported versions that are affected are 8.0.23 and prior. Difficult to exploit vulnerability allows 
    unauthenticated attacker with network access via HTTPS to compromise MySQL Enterprise Monitor. Successful attacks
    of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or 
    all MySQL Enterprise Monitor accessible data as well as unauthorized access to critical data or complete access 
    to all MySQL Enterprise Monitor accessible data (CVE-2021-3450).

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/a/tech/docs/cpuapr2021cvrf.xml");
  script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/security-alerts/cpuapr2021.html");
  script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/a/tech/docs/cpujul2021cvrf.xml");
  script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/security-alerts/cpujul2021.html");
  script_set_attribute(attribute:"solution", value:
"Apply the appropriate patch according to the April 2021 Oracle Critical Patch Update advisory.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-17530");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Apache Struts 2 Forced Multi OGNL Evaluation');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/04/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/04/20");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/04/26");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:mysql_enterprise_monitor");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2021-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("mysql_enterprise_monitor_web_detect.nasl", "oracle_mysql_enterprise_monitor_local_nix_detect.nbin", "oracle_mysql_enterprise_monitor_local_detect.nbin");
  script_require_keys("installed_sw/MySQL Enterprise Monitor");

  exit(0);
}

include('vcf.inc');

var app_info = vcf::combined_get_app_info(app:'MySQL Enterprise Monitor');
var constraints = [{ 'min_version' : '8.0', 'fixed_version' : '8.0.24' }];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/mysql_enterprise_monitor_8_0_24.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\mysql_enterprise_monitor_8_0_24.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/mysql_enterprise_monitor_8_0_24.nasl

Go back to menu.

How to Run


Here is how to run the Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Apr 2021 CPU) plugin ID 148986.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl mysql_enterprise_monitor_8_0_24.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a mysql_enterprise_monitor_8_0_24.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - mysql_enterprise_monitor_8_0_24.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state mysql_enterprise_monitor_8_0_24.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 83292 - MySQL Enterprise Monitor < 2.3.14 Apache Struts Multiple Vulnerabilities
  • 83293 - MySQL Enterprise Monitor < 2.3.17 Multiple Vulnerabilities
  • 83295 - MySQL Enterprise Monitor 3.0.x < 3.0.11 Multiple Vulnerabilities
  • 90685 - MySQL Enterprise Monitor 3.0.x < 3.0.26 / 3.1.x < 3.1.2 Unspecified RCE
  • 83297 - MySQL Enterprise Monitor 3.0.x < 3.0.5 Apache Struts DMI Multiple Vulnerabilities
  • 96767 - MySQL Enterprise Monitor 3.1.x < 3.1.5.7958 Multiple Vulnerabilities (SWEET32) (January 2017 CPU)
  • 96768 - MySQL Enterprise Monitor 3.1.x < 3.1.6.7959 Java Object Deserialization RCE (January 2017 CPU)
  • 96769 - MySQL Enterprise Monitor 3.2.x < 3.2.2.1075 Multiple Vulnerabilities (January 2017 CPU)
  • 96770 - MySQL Enterprise Monitor 3.2.x < 3.2.5.1141 Multiple Vulnerabilities (SWEET32) (January 2017 CPU)
  • 96771 - MySQL Enterprise Monitor 3.3.x < 3.3.1.1112 Multiple Vulnerabilities (SWEET32) (January 2017 CPU)
  • 99593 - MySQL Enterprise Monitor 3.1.x < 3.1.7.8023 / 3.2.x < 3.2.7.1204 / 3.3.x < 3.3.3.1199 Multiple Vulnerabilities (April 2017 CPU)
  • 101895 - MySQL Enterprise Monitor 3.2.x < 3.2.8.2223 / 3.3.x < 3.3.4.3247 Multiple Vulnerabilities (July 2017 CPU)
  • 103536 - MySQL Enterprise Monitor 3.2.x < 3.2.9.2249 / 3.3.x < 3.3.5.3292 / 3.4.x < 3.4.3.4225 Multiple Vulnerabilities (October 2017 CPU)
  • 111593 - MySQL Enterprise Monitor 3.4.x < 3.4.8 / 4.0.x < 4.0.5 / 8.0.x < 8.0.1 Multiple Vulnerabilities (July 2018 CPU)
  • 106103 - MySQL Enterprise Monitor 3.3.x < 3.3.7.3306 / 3.4.x < 3.4.5.4248 / 4.0.x < 4.0.2.5168 Multiple Vulnerabilities (January 2018 CPU)
  • 111600 - MySQL Enterprise Monitor 3.3.x < 3.3.9.3339 / 3.4.x < 3.4.7.4296 / 4.0.x < 4.0.4.5233 Multiple Vulnerabilities (April 2018 CPU)
  • 138902 - MySQL Enterprise Monitor 4.x < 4.0.8 / 8.x < 8.0.14 DoS (Jan 2019 CPU)
  • 138904 - MySQL Enterprise Monitor 4.x < 4.0.10 / 8.x < 8.0.15 DoS (Jul 2019 CPU)
  • 138903 - MySQL Enterprise Monitor 4.x < 4.0.9 / 8.x < 8.0.16 Padding Oracle (Apr 2019 CPU)
  • 138896 - MySQL Enterprise Monitor 8.x < 8.0.18 DoS (Oct 2019 CPU)
  • 138039 - MySQL Enterprise Monitor 4.0.11.x < 4.0.12.5341 / 8.0.18.x < 8.0.20.1227(Apr 2020 CPU)
  • 138567 - MySQL Enterprise Monitor 4.0.x < 4.0.12.5346 / 8.0.x < 8.0.20.1237 (Jul 2020 CPU)
  • 138568 - MySQL Enterprise Monitor 4.0.x < 4.0.13.5349 / 8.0.x < 8.0.21.1240 (Jul 2020 CPU)
  • 138569 - MySQL Enterprise Monitor 4.0.x < 4.0.13.5350 / 8.0.x < 8.0.21.1243 (Jul 2020 CPU)
  • 141847 - MySQL Enterprise Monitor 8.0.x < 8.0.22.1262 DoS (Oct 2020 CPU)
  • 145538 - Oracle MySQL Enterprise Monitor Multiple Vulnerabilities (Jan 2021 CPU)
  • 154267 - Oracle MySQL Enterprise Monitor (Oct 2021 CPU)
  • 159917 - Oracle MySQL Enterprise Monitor (Apr 2022 CPU)
  • 138901 - MySQL Enterprise Monitor 3.4.x < 3.4.10 / 4.x < 4.0.7 / 8.x < 8.0.3 Multiple Vulnerabilities (Oct 2018 CPU)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file mysql_enterprise_monitor_8_0_24.nasl version 1.6. For more plugins, visit the Nessus Plugin Library.

Go back to menu.