Oracle WebLogic Server Multiple Vulnerabilities (April 2018 CPU) - Nessus

Critical   Plugin ID: 109201

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

Plugin Overview


ID: 109201
Name: Oracle WebLogic Server Multiple Vulnerabilities (April 2018 CPU)
Filename: oracle_weblogic_server_cpu_apr_2018.nasl
Vulnerability Published: 2018-04-17
This Plugin Published: 2018-04-20
Last Modification Time: 2022-04-11
Plugin Version: 1.20
Plugin Type: local
Plugin Family: Misc.
Dependencies: oracle_weblogic_server_installed.nbin, os_fingerprint.nasl
Required KB Items [?]: installed_sw/Oracle WebLogic Server

Vulnerability Information


Severity: Critical
Vulnerability Published: 2018-04-17
Patch Published: 2018-04-17
CVE [?]: CVE-2013-1768, CVE-2017-5645, CVE-2018-2628
CPE [?]: cpe:/a:oracle:fusion_middleware, cpe:/a:oracle:weblogic_server

Synopsis

An application server installed on the remote host is affected by multiple vulnerabilities.

Description

The version of Oracle WebLogic Server installed on the remote host is affected by multiple vulnerabilities

Solution

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

Note that the patch for CVE-2018-2628 is reportedly incomplete. Refer to Oracle for any additional patch instructions or mitigation options.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Oracle WebLogic Server Multiple Vulnerabilities (April 2018 CPU) vulnerability:

  1. Metasploit: exploit/multi/misc/weblogic_deserialize
    [Oracle Weblogic Server Deserialization RCE]
  2. Metasploit: exploit/multi/misc/weblogic_deserialize_asyncresponseservice
    [Oracle Weblogic Server Deserialization RCE]
  3. Metasploit: exploit/multi/misc/weblogic_deserialize_marshalledobject
    [Oracle Weblogic Server Deserialization RCE]
  4. Metasploit: exploit/multi/misc/weblogic_deserialize_rawobject
    [Oracle Weblogic Server Deserialization RCE]
  5. Metasploit: exploit/multi/misc/weblogic_deserialize_unicastref
    [Oracle Weblogic Server Deserialization RCE]
  6. Exploit-DB: exploits/multiple/remote/44553.py
    [EDB-44553: Oracle Weblogic Server 10.3.6.0 / 12.1.3.0 / 12.2.1.2 / 12.2.1.3 - Deserialization Remote Command Execution]
  7. Exploit-DB: exploits/windows/remote/45193.rb
    [EDB-45193: Oracle Weblogic Server - Deserialization Remote Code Execution (Metasploit)]
  8. GitHub: https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet
    [CVE-2013-1768]
  9. GitHub: https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet
    [CVE-2017-5645]
  10. GitHub: https://github.com/HackJava/Log4j2
    [CVE-2017-5645]
  11. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2017-5645]
  12. GitHub: https://github.com/hktalent/myhktools
    [CVE-2017-5645]
  13. GitHub: https://github.com/jacobtread/L4J-Vuln-Patch
    [CVE-2017-5645: This tool patches the CVE-2017-5645 Log4J vulnerability present in all minecraft ...]
  14. GitHub: https://github.com/logpresso/CVE-2021-44228-Scanner
    [CVE-2017-5645]
  15. GitHub: https://github.com/ltslog/ltslog
    [CVE-2017-5645]
  16. GitHub: https://github.com/sefayfr/log4j-RCE
    [CVE-2017-5645: A simple and harmless example implementation of CVE-2017-5645.]
  17. GitHub: https://github.com/shadow-horse/CVE-2019-17571
    [CVE-2017-5645]
  18. GitHub: https://github.com/thl-cmk/CVE-log4j-check_mk-plugin
    [CVE-2017-5645]
  19. GitHub: https://github.com/woods-sega/woodswiki
    [CVE-2017-5645]
  20. GitHub: https://github.com/zema1/oracle-vuln-crawler
    [CVE-2017-5645]
  21. GitHub: https://github.com/0day666/Vulnerability-verification
    [CVE-2018-2628]
  22. GitHub: https://github.com/9uest/CVE-2018-2628
    [CVE-2018-2628]
  23. GitHub: https://github.com/1120362990/vulnerability-list
    [CVE-2018-2628]
  24. GitHub: https://github.com/BabyTeam1024/cve-2018-2628
    [CVE-2018-2628]
  25. GitHub: https://github.com/Bywalks/WeblogicScan
    [CVE-2018-2628]
  26. GitHub: https://github.com/Dido1960/Weblogic-CVE-2020-2551-To-Internet
    [CVE-2018-2628]
  27. GitHub: https://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet
    [CVE-2018-2628]
  28. GitHub: https://github.com/MrTcsy/Exploit
    [CVE-2018-2628]
  29. GitHub: https://github.com/ParrotSec-CN/ParrotSecCN_Community_QQbot
    [CVE-2018-2628]
  30. GitHub: https://github.com/R0B1NL1N/CVE-2018-2628
    [CVE-2018-2628]
  31. GitHub: https://github.com/Scienza/SitoAndreaIdini
    [CVE-2018-2628]
  32. GitHub: https://github.com/SecWiki/CMS-Hunter
    [CVE-2018-2628]
  33. GitHub: https://github.com/SexyBeast233/SecBooks
    [CVE-2018-2628]
  34. GitHub: https://github.com/Shadowshusky/CVE-2018-2628all
    [CVE-2018-2628]
  35. GitHub: https://github.com/awsassets/weblogic_exploit
    [CVE-2018-2628]
  36. GitHub: https://github.com/cross2to/betaseclab_tools
    [CVE-2018-2628]
  37. GitHub: https://github.com/dr0op/WeblogicScan
    [CVE-2018-2628]
  38. GitHub: https://github.com/fengjixuchui/RedTeamer
    [CVE-2018-2628]
  39. GitHub: https://github.com/followboy1999/weblogic-deserialization
    [CVE-2018-2628]
  40. GitHub: https://github.com/hanc00l/some_pocsuite
    [CVE-2018-2628]
  41. GitHub: https://github.com/hanc00l/weblogic_unserialize_exploit
    [CVE-2018-2628]
  42. GitHub: https://github.com/hashtagcyber/Exp
    [CVE-2018-2628]
  43. GitHub: https://github.com/hmoytx/weblogicscan
    [CVE-2018-2628]
  44. GitHub: https://github.com/jas502n/CVE-2018-2893
    [CVE-2018-2628]
  45. GitHub: https://github.com/jiangsir404/POC-S
    [CVE-2018-2628]
  46. GitHub: https://github.com/jiansiting/weblogic-cve-2018-2628
    [CVE-2018-2628]
  47. GitHub: https://github.com/kingkaki/weblogic-scan
    [CVE-2018-2628]
  48. GitHub: https://github.com/koutto/jok3r-pocs
    [CVE-2018-2628]
  49. GitHub: https://github.com/likescam/CVE-2018-2628
    [CVE-2018-2628]
  50. GitHub: https://github.com/maya6/-scan-
    [CVE-2018-2628]
  51. GitHub: https://github.com/mmioimm/weblogic_test
    [CVE-2018-2628]
  52. GitHub: https://github.com/nihaohello/N-MiddlewareScan
    [CVE-2018-2628]
  53. GitHub: https://github.com/rabbitmask/WeblogicScanLot
    [CVE-2018-2628]
  54. GitHub: https://github.com/s0wr0b1ndef/CVE-2018-2628
    [CVE-2018-2628]
  55. GitHub: https://github.com/safe6Sec/wlsEnv
    [CVE-2018-2628]
  56. GitHub: https://github.com/seethen/cve-2018-2628
    [CVE-2018-2628: 漏洞复现]
  57. GitHub: https://github.com/shaoshore/CVE-2018-2628
    [CVE-2018-2628]
  58. GitHub: https://github.com/stevenlinfeng/CVE-2018-2628
    [CVE-2018-2628]
  59. GitHub: https://github.com/tdcoming/Vulnerability-engine
    [CVE-2018-2628]
  60. GitHub: https://github.com/whoadmin/pocs
    [CVE-2018-2628]
  61. GitHub: https://github.com/xiaoyaovo/2021SecWinterTask
    [CVE-2018-2628]
  62. GitHub: https://github.com/zema1/oracle-vuln-crawler
    [CVE-2018-2628]
  63. GitHub: https://github.com/zhengjim/loophole
    [CVE-2018-2628]
  64. GitHub: https://github.com/zjxzjx/CVE-2018-2628-detect
    [CVE-2018-2628]
  65. GitHub: http://xxlegend.com/2018/04/18/CVE-2018-2628%20%E7%AE%80%E5%8D%95%E5%A4%8D%E7%8E%B0%E5%92%8C%E5%88%86%E6%9E%90/
    [CVE-2018-2628]
  66. GitHub: https://github.com/HynekPetrak/log4shell-finder
    [CVE-2017-5645: Fastest filesystem scanner for log4shell (CVE-2021-44228, CVE-2021-45046) and other ...]
  67. GitHub: https://github.com/pimps/CVE-2017-5645
    [CVE-2017-5645: CVE-2017-5645 - Apache Log4j RCE due Insecure Deserialization]
  68. GitHub: https://github.com/0xMJ/CVE-2018-2628
    [CVE-2018-2628: 漏洞利用工具]
  69. GitHub: https://github.com/aedoo/CVE-2018-2628-MultiThreading
    [CVE-2018-2628: WebLogic WLS核心组件反序列化漏洞多线程批量检测脚本 CVE-2018-2628-MultiThreading]
  70. GitHub: https://github.com/forlin/CVE-2018-2628
    [CVE-2018-2628]
  71. GitHub: https://github.com/hawk-520/CVE-2018-2628
    [CVE-2018-2628]
  72. GitHub: https://github.com/jas502n/CVE-2018-2628
    [CVE-2018-2628: Weblogic 反序列化漏洞(CVE-2018-2628)]
  73. GitHub: https://github.com/Lighird/CVE-2018-2628
    [CVE-2018-2628: CVE-2018-2628漏洞工具包]
  74. GitHub: https://github.com/Nervous/WebLogic-RCE-exploit
    [CVE-2018-2628: A remote code execution exploit for WebLogic based on CVE-2018-2628]
  75. GitHub: https://github.com/shengqi158/CVE-2018-2628
    [CVE-2018-2628: CVE-2018-2628 & CVE-2018-2893]
  76. GitHub: https://github.com/skydarker/CVE-2018-2628
    [CVE-2018-2628]
  77. GitHub: https://github.com/tdy218/ysoserial-cve-2018-2628
    [CVE-2018-2628: Some codes for bypassing Oracle WebLogic CVE-2018-2628 patch]
  78. GitHub: https://github.com/0xn0ne/weblogicScanner
    [CVE-2018-2628: Weblogic ...]
  79. GitHub: https://github.com/wrysunny/cve-2018-2628
    [CVE-2018-2628: Cve-2018-2628 反弹shell]

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-2018-2628
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:X
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.1 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.1 (Critical)

Go back to menu.

Plugin Source


This is the oracle_weblogic_server_cpu_apr_2018.nasl nessus plugin source code. This script is Copyright (C) 2018-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(109201);
  script_version("1.20");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2013-1768", "CVE-2017-5645", "CVE-2018-2628");
  script_bugtraq_id(60534, 97702);

  script_name(english:"Oracle WebLogic Server Multiple Vulnerabilities (April 2018 CPU)");

  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");
  # https://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html#AppendixFMW
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?4e39ef65");
  # https://www.tenable.com/blog/critical-oracle-weblogic-server-flaw-still-not-patched
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?9cf2dde7");
  script_set_attribute(attribute:"solution", value:
"Apply the appropriate patch according to the April 2018 Oracle
Critical Patch Update advisory.

Note that the patch for CVE-2018-2628 is reportedly incomplete.
Refer to Oracle for any additional patch instructions or
mitigation options.");
  script_set_attribute(attribute:"agent", value:"all");
  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:F/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:F/RL:O/RC:X");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-2628");

  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:'Oracle Weblogic Server Deserialization RCE');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/04/17");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/04/17");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/04/20");

  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:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2018-2022 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("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 + "]");
if (version =~ "^10\.3\.6\.0")
{
  fix_ver = "10.3.6.0.180417";
  fix = make_list('GFWX', 'B47X'); # Smart Patch Update ID, only 10.3.6.0 has a smart patch update id
}
else if (version =~ "^12\.1\.3\.0")
{
  fix_ver = "12.1.3.0.180417";
  fix = make_list("27419391", "27919943");
}
else if (version =~ "^12\.2\.1\.2")
{
  fix_ver = "12.2.1.2.180417";
  fix = make_list("27338939","27741413");
}
else if (version =~ "^12\.2\.1\.3")
{
  fix_ver = "12.2.1.3.180417";
  fix = make_list("27342434", "27912627");
}
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_HOLE, port:port);

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

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

Go back to menu.

How to Run


Here is how to run the Oracle WebLogic Server Multiple Vulnerabilities (April 2018 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 Misc. plugin family.
  6. On the right side table select Oracle WebLogic Server Multiple Vulnerabilities (April 2018 CPU) plugin ID 109201.
  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_weblogic_server_cpu_apr_2018.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 68987 - Fedora 19 : openjpa-2.2.1-6.fc19 (2013-12948)
  • 68988 - Fedora 18 : openjpa-2.2.0-3.fc18 (2013-12960)
  • 68989 - Fedora 17 : openjpa-2.2.0-3.fc17 (2013-12967)
  • 108520 - Juniper Junos Space < 17.2R1 Multiple Vulnerabilities (JSA10838)
  • 70325 - Mandriva Linux Security Advisory : openjpa (MDVSA-2013:246)
  • 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)
  • 120948 - Oracle Business Intelligence Publisher Multiple Vulnerabilities (October 2018 CPU)
  • 111152 - Oracle Enterprise Manager Cloud Control Multiple Vulnerabilities (July 2018 CPU)
  • 133268 - Oracle GoldenGate for Big Data 12.3.2.1.x < 12.3.2.1.2 Apache Log4j Insecure Deserialization RCE (Jan 2019 CPU)
  • 106299 - Oracle Fusion Middleware Oracle HTTP Server Multiple Vulnerabilities (January 2018 CPU)
  • 118330 - Oracle Identity Manager Multiple Vulnerabilities (October 2018 CPU)
  • 111210 - Oracle Application Testing Suite Multiple Vulnerabilities (April / July 2018 CPU)
  • 138610 - Oracle Application Testing Suite (Jul 2020 CPU)
  • 138526 - Oracle Primavera Gateway (Jul 2020 CPU)
  • 106199 - Oracle Secure Global Desktop Multiple Vulnerabilities (January 2018 CPU)
  • 111352 - Oracle WebCenter Portal Multiple Vulnerabilities (April 2018 CPU)
  • 138592 - Oracle WebLogic Server Multiple Vulnerabilities (Jul 2020 CPU)
  • 106349 - Oracle iPlanet Web Server 7.0.x < 7.0.27 NSS Unspecified Vulnerability (January 2018 CPU)
  • 70022 - IBM WebSphere Application Server 6.1 < Fix Pack 47 Multiple Vulnerabilities
  • 68982 - IBM WebSphere Application Server 7.0 < Fix Pack 29 Multiple Vulnerabilities
  • 69449 - IBM WebSphere Application Server 8.0 < Fix Pack 7 Multiple Vulnerabilities
  • 69021 - IBM WebSphere Application Server 8.5 < Fix Pack 8.5.5 Multiple Vulnerabilities
  • 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)
  • 119939 - Oracle Business Intelligence Publisher Multiple Vulnerabilities (April 2018 CPU)
  • 109202 - Oracle Java SE Multiple Vulnerabilities (April 2018 CPU)
  • 109203 - Oracle Java SE Multiple Vulnerabilities (April 2018 CPU) (Unix)
  • 109207 - Oracle JRockit R28.3.17 Multiple Vulnerabilities (April 2018 CPU)
  • 109164 - Oracle Primavera Unifier Multiple Vulnerabilities (April 2018 CPU)
  • 109165 - Oracle Secure Global Desktop Multiple Vulnerabilities (April 2018 CPU)
  • 109209 - Oracle WebCenter Sites Remote Vulnerability (April 2018 CPU)
  • 109682 - Oracle VM VirtualBox 5.1.x < 5.1.36 / 5.2.x < 5.2.10 (April 2018 CPU)

Version


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

Go back to menu.