Oracle Database Server Multiple Vulnerabilities (Jul 2021 CPU) - Nessus

High   Plugin ID: 152026

This page contains detailed information about the Oracle Database Server Multiple Vulnerabilities (Jul 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: 152026
Name: Oracle Database Server Multiple Vulnerabilities (Jul 2021 CPU)
Filename: oracle_rdbms_cpu_jul_2021.nasl
Vulnerability Published: 2021-07-20
This Plugin Published: 2021-07-23
Last Modification Time: 2022-04-11
Plugin Version: 1.5
Plugin Type: combined
Plugin Family: Databases
Dependencies: oracle_rdbms_patch_info.nbin, oracle_rdbms_query_patch_info.nbin

Vulnerability Information


Severity: High
Vulnerability Published: 2021-07-20
Patch Published: 2021-07-20
CVE [?]: CVE-2018-21010, CVE-2019-12415, CVE-2019-12973, CVE-2019-17545, CVE-2019-17566, CVE-2020-7760, CVE-2020-8908, CVE-2020-10543, CVE-2020-10878, CVE-2020-11987, CVE-2020-11988, CVE-2020-12723, CVE-2020-13956, CVE-2020-15389, CVE-2020-25649, CVE-2020-26870, CVE-2020-27193, CVE-2020-27814, CVE-2020-27841, CVE-2020-27842, CVE-2020-27843, CVE-2020-27844, CVE-2020-27845, CVE-2020-28196, CVE-2021-2326, CVE-2021-2328, CVE-2021-2329, CVE-2021-2330, CVE-2021-2333, CVE-2021-2334, CVE-2021-2335, CVE-2021-2336, CVE-2021-2337, CVE-2021-2351, CVE-2021-2438, CVE-2021-2460, CVE-2021-23336
CPE [?]: cpe:/a:oracle:database_server

Synopsis

The remote host is running a database server which is affected by multiple vulnerabilities

Description

The versions of Oracle Database Server installed on the remote host are affected by multiple vulnerabilities as referenced in the July 2021 CPU advisory.

- Vulnerability in the Advanced Networking Option component of Oracle Database Server. Supported versions that are affected are 12.1.0.2 and 19c. Difficult to exploit vulnerability allows unauthenticated attacker with network access via Oracle Net to compromise Advanced Networking Option. Successful attacks require human interaction from a person other than the attacker and while the vulnerability is in Advanced Networking Option, attacks may significantly impact additional products. Successful attacks of this vulnerability can result in takeover of Advanced Networking Option. (CVE-2021-2351)

- Vulnerability in the Oracle Text component of Oracle Database Server. Supported versions that are affected are 12.1.0.2 and 19c. Easily exploitable vulnerability allows high privileged attacker having Create Any Procedure, Alter Any Table privilege with network access via Oracle Net to compromise Oracle Text. Successful attacks of this vulnerability can result in takeover of Oracle Text. (CVE-2021-2328)

- Vulnerability in the Oracle XML DB component of Oracle Database Server. Supported versions that are affected are 12.1.0.2 and 19c. Easily exploitable vulnerability allows high privileged attacker having Create Any Procedure, Create Public Synonym privilege with network access via Oracle Net to compromise Oracle XML DB. Successful attacks of this vulnerability can result in takeover of Oracle XML DB. (CVE-2021-2329)

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 July 2021 Oracle Critical Patch Update advisory.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Oracle Database Server Multiple Vulnerabilities (Jul 2021 CPU) vulnerability:

  1. GitHub: https://github.com/aflsmart/aflsmart
    [CVE-2018-21010]
  2. GitHub: https://blog.gypsyengineer.com/en/security/cve-2019-12415-xml-processing-vulnerability-in-apache-poi.html
    [CVE-2019-12415]
  3. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2019-12415]
  4. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2019-17545]
  5. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2020-7760]
  6. GitHub: https://github.com/engn33r/awesome-redos-security
    [CVE-2020-7760]
  7. GitHub: https://github.com/yetingli/PoCs
    [CVE-2020-7760]
  8. GitHub: https://github.com/asa1997/topgear_test
    [CVE-2020-8908]
  9. GitHub: https://github.com/Azure/publish-security-assessments
    [CVE-2020-10878]
  10. GitHub: https://github.com/dragon7-fc/misc
    [CVE-2020-10878]
  11. GitHub: https://github.com/hisashin0728/AmazonECRScanSecurityHub
    [CVE-2020-10878]
  12. GitHub: https://github.com/danfickle/openhtmltopdf
    [CVE-2020-11987]
  13. GitHub: https://github.com/CyberSource/cybersource-sdk-java
    [CVE-2020-13956]
  14. GitHub: https://github.com/JamesGeeee/CVE-2020-13956
    [CVE-2020-13956: PoC for exploiting CVE-2020-13956]
  15. GitHub: https://github.com/JamesGeee/CVE-2020-13956
    [CVE-2020-13956: PoC for exploiting CVE-2020-13956]
  16. GitHub: https://github.com/mosaic-hgw/jMeter
    [CVE-2020-13956]
  17. GitHub: https://github.com/AlAIAL90/CVE-2020-25649
    [CVE-2020-25649: PoC for exploiting CVE-2020-25649 : A flaw was found in FasterXML Jackson Databind, ...]
  18. GitHub: https://github.com/mosaic-hgw/jMeter
    [CVE-2020-25649]
  19. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2020-26870]
  20. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2020-27193]
  21. GitHub: https://github.com/zodf0055980/Yuan-fuzz
    [CVE-2020-27814]
  22. GitHub: https://github.com/zodf0055980/Yuan-fuzz
    [CVE-2020-27841]
  23. GitHub: https://github.com/zodf0055980/Yuan-fuzz
    [CVE-2020-27842]
  24. GitHub: https://github.com/zodf0055980/Yuan-fuzz
    [CVE-2020-27843]
  25. GitHub: https://github.com/zodf0055980/Yuan-fuzz
    [CVE-2020-27844]
  26. GitHub: https://github.com/zodf0055980/Yuan-fuzz
    [CVE-2020-27845]
  27. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2328]
  28. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2329]
  29. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2330]
  30. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2333]
  31. GitHub: https://github.com/BlackburnHax/inntinn
    [CVE-2021-2336]
  32. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2337]
  33. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2351]
  34. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2438]
  35. GitHub: https://github.com/deepakdba/cve_checklist
    [CVE-2021-2460]
  36. GitHub: https://github.com/JamesGeee/CVE-2021-23336
    [CVE-2021-23336: PoC for exploiting CVE-2021-23336]

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-27844
CVSS V2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:C/E:POC/RL:OF/RC:C
CVSS Base Score:8.3 (High)
Impact Subscore:8.5
Exploitability Subscore:8.6
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:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:5.9
Exploitability Subscore:1.8
CVSS Temporal Score:7.0 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.0 (High)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


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

#%NASL_MIN_LEVEL 70300
##
# (C) Tenable Network Security, Inc.
##

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(152026);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id(
    "CVE-2018-21010",
    "CVE-2019-12415",
    "CVE-2019-12973",
    "CVE-2019-17545",
    "CVE-2019-17566",
    "CVE-2020-7760",
    "CVE-2020-8908",
    "CVE-2020-10543",
    "CVE-2020-10878",
    "CVE-2020-11987",
    "CVE-2020-11988",
    "CVE-2020-12723",
    "CVE-2020-13956",
    "CVE-2020-15389",
    "CVE-2020-25649",
    "CVE-2020-26870",
    "CVE-2020-27193",
    "CVE-2020-27814",
    "CVE-2020-27841",
    "CVE-2020-27842",
    "CVE-2020-27843",
    "CVE-2020-27844",
    "CVE-2020-27845",
    "CVE-2020-28196",
    "CVE-2021-2326",
    "CVE-2021-2328",
    "CVE-2021-2329",
    "CVE-2021-2330",
    "CVE-2021-2333",
    "CVE-2021-2334",
    "CVE-2021-2335",
    "CVE-2021-2336",
    "CVE-2021-2337",
    "CVE-2021-2351",
    "CVE-2021-2438",
    "CVE-2021-2460",
    "CVE-2021-23336"
  );
  script_xref(name:"IAVA", value:"2021-A-0330-S");

  script_name(english:"Oracle Database Server Multiple Vulnerabilities (Jul 2021 CPU)");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running a database server which is affected by multiple vulnerabilities");
  script_set_attribute(attribute:"description", value:
"The versions of Oracle Database Server installed on the remote host are affected by multiple vulnerabilities as
referenced in the July 2021 CPU advisory.

  - Vulnerability in the Advanced Networking Option component of Oracle Database Server. Supported versions
    that are affected are 12.1.0.2 and 19c. Difficult to exploit vulnerability allows unauthenticated attacker
    with network access via Oracle Net to compromise Advanced Networking Option. Successful attacks require
    human interaction from a person other than the attacker and while the vulnerability is in Advanced
    Networking Option, attacks may significantly impact additional products. Successful attacks of this
    vulnerability can result in takeover of Advanced Networking Option. (CVE-2021-2351)

  - Vulnerability in the Oracle Text component of Oracle Database Server. Supported versions that are affected
    are 12.1.0.2 and 19c. Easily exploitable vulnerability allows high privileged attacker having Create Any
    Procedure, Alter Any Table privilege with network access via Oracle Net to compromise Oracle Text.
    Successful   attacks of this vulnerability can result in takeover of Oracle Text. (CVE-2021-2328)

  - Vulnerability in the Oracle XML DB component of Oracle Database Server. Supported versions that are
    affected   are 12.1.0.2 and 19c. Easily exploitable vulnerability allows high privileged attacker having
    Create Any   Procedure, Create Public Synonym privilege with network access via Oracle Net to compromise
    Oracle XML DB.   Successful attacks of this vulnerability can result in takeover of Oracle XML DB.
    (CVE-2021-2329)

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/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 July 2021 Oracle Critical Patch Update advisory.");
  script_set_attribute(attribute:"agent", value:"all");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-27844");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/07/20");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/07/20");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/07/23");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:oracle:database_server");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Databases");

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

  script_dependencies("oracle_rdbms_query_patch_info.nbin", "oracle_rdbms_patch_info.nbin");

  exit(0);
}

include('vcf_extras_oracle.inc');

var app_info = vcf::oracle_rdbms::get_app_info();

var constraints = [
  # RDBMS:
  {'min_version': '19.0', 'fixed_version': '19.10.3.0.210720', 'missing_patch':'32923627', 'os':'unix', 'component':'db'},
  {'min_version': '19.0', 'fixed_version': '19.12.0.0.210720', 'missing_patch':'32832237', 'os':'win', 'component':'db'},
  {'min_version': '19.11', 'fixed_version': '19.11.1.0.210720', 'missing_patch':'32844504', 'os':'unix', 'component':'db'},
  {'min_version': '19.12', 'fixed_version': '19.12.0.0.210720', 'missing_patch':'32904851', 'os':'unix', 'component':'db'},
 
  {'min_version': '12.2.0.1.0', 'fixed_version': '12.2.0.1.210720', 'missing_patch':'32916808', 'os':'unix', 'component':'db'},
  {'min_version': '12.2.0.1.0', 'fixed_version': '12.2.0.1.210720', 'missing_patch':'32775037', 'os':'win', 'component':'db'},

  {'min_version': '12.1.0.2.0', 'fixed_version': '12.1.0.2.210720', 'missing_patch':'32768233, 32917362', 'os':'unix', 'component':'db'},
  {'min_version': '12.1.0.2.0', 'fixed_version': '12.1.0.2.210720', 'missing_patch':'32774982', 'os':'win', 'component':'db'},
  
  # OJVM:
  {'min_version': '19.0',  'fixed_version': '19.12.0.0.210720', 'missing_patch':'32876380', 'os':'unix', 'component':'ojvm'},
  {'min_version': '19.0',  'fixed_version': '19.12.0.0.210720', 'missing_patch':'32876380', 'os':'win', 'component':'ojvm'},

  {'min_version': '12.2.0.1.0',  'fixed_version': '12.2.0.1.210720', 'missing_patch':'32876409', 'os':'unix', 'component':'ojvm'},
  {'min_version': '12.2.0.1.0',  'fixed_version': '12.2.0.1.210720', 'missing_patch':'32905896', 'os':'win', 'component':'ojvm'},

  {'min_version': '12.1.0.2.0',  'fixed_version': '12.1.0.2.210720', 'missing_patch':'32876425', 'os':'unix', 'component':'ojvm'},
  {'min_version': '12.1.0.2.0',  'fixed_version': '12.1.0.2.210720', 'missing_patch':'32905878', 'os':'win', 'component':'ojvm'}
];

vcf::oracle_rdbms::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/oracle_rdbms_cpu_jul_2021.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\oracle_rdbms_cpu_jul_2021.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/oracle_rdbms_cpu_jul_2021.nasl

Go back to menu.

How to Run


Here is how to run the Oracle Database Server Multiple Vulnerabilities (Jul 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 Databases plugin family.
  6. On the right side table select Oracle Database Server Multiple Vulnerabilities (Jul 2021 CPU) plugin ID 152026.
  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 oracle_rdbms_cpu_jul_2021.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - oracle_rdbms_cpu_jul_2021.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 oracle_rdbms_cpu_jul_2021.nasl -t <IP/HOST>

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2021-A-0330-S
See also: Similar and related Nessus plugins:
  • 151969 - MySQL 5.7.x < 5.7.35 Multiple Vulnerabilities (Jul 2021 CPU)
  • 151968 - MySQL 8.0.x < 8.0.26 Multiple Vulnerabilities (Jul 2021 CPU)
  • 151978 - Oracle Access Manager Multiple Vulnerabilities (Jul 2021 CPU)
  • 151904 - Oracle Coherence Multiple Vulnerabilities (Jul 2021 CPU)
  • 151903 - Oracle Enterprise Manager Cloud Control (Jul 2021 CPU)
  • 151906 - Oracle MySQL Connectors (Jul 2021 CPU)
  • 152043 - Oracle Application Testing Suite (Jul 2021 CPU)
  • 151974 - Oracle Primavera Gateway (Jul 2021 CPU)
  • 151973 - Oracle Primavera Unifier (Jul 2021 CPU)
  • 152030 - Oracle WebCenter Portal Multiple Vulnerabilities (Jul 2021 CPU)
  • 148894 - Oracle Database Server Multiple Vulnerabilities (Apr 2021 CPU)

Version


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

Go back to menu.