Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated) - Nessus

High   Plugin ID: 111932

This page contains detailed information about the Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 111932
Name: Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated)
Filename: PhotonOS_PHSA-2018-1_0-0130.nasl
Vulnerability Published: N/A
This Plugin Published: 2018-08-17
Last Modification Time: 2019-02-07
Plugin Version: 1.2
Plugin Type: local
Plugin Family: PhotonOS Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/PhotonOS/release, Host/PhotonOS/rpm-list

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: 2018-04-30
CVE [?]: CVE-2018-2755, CVE-2018-2783, CVE-2018-2794, CVE-2018-2795, CVE-2018-2796, CVE-2018-2797, CVE-2018-2798, CVE-2018-2799, CVE-2018-2811, CVE-2018-2814, CVE-2018-2815, CVE-2018-2825, CVE-2018-2826
CPE [?]: cpe:/o:vmware:photonos:1.0, p-cpe:/a:vmware:photonos:mysql, p-cpe:/a:vmware:photonos:openjdk

Synopsis

This plugin has been deprecated.

Description

An update of 'mysql', 'openjdk',openjre packages of Photon OS has been released.

Solution

n/a.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)

Here's the list of publicly known exploits and PoCs for verifying the Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated) vulnerability:

  1. GitHub: https://github.com/spiegel-im-spiegel/jvnman
    [CVE-2018-2783]

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-2783
CVSS V2 Vector: AV:N/AC:M/Au:N/C:P/I:P/A:N
CVSS Base Score:5.8 (Medium)
Impact Subscore:4.9
Exploitability Subscore:8.6
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.8 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Base Score:7.4 (High)
Impact Subscore:5.2
Exploitability Subscore:2.2
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.4 (High)

Go back to menu.

Plugin Source


This is the PhotonOS_PHSA-2018-1_0-0130.nasl nessus plugin source code. This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#
# @DEPRECATED@
#
# Disabled on 2/7/2019
#

# The descriptive text and package checks in this plugin were
# extracted from VMware Security Advisory PHSA-2018-1.0-0130. The text
# itself is copyright (C) VMware, Inc.

include("compat.inc");

if (description)
{
  script_id(111932);
  script_version("1.2");
  script_cvs_date("Date: 2019/02/07 18:59:50");

  script_cve_id(
    "CVE-2018-2755",
    "CVE-2018-2783",
    "CVE-2018-2794",
    "CVE-2018-2795",
    "CVE-2018-2796",
    "CVE-2018-2797",
    "CVE-2018-2798",
    "CVE-2018-2799",
    "CVE-2018-2811",
    "CVE-2018-2814",
    "CVE-2018-2815",
    "CVE-2018-2825",
    "CVE-2018-2826"
  );

  script_name(english:"Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated)");
  script_summary(english:"Checks the rpm output for the updated packages.");

  script_set_attribute(attribute:"synopsis", value:
"This plugin has been deprecated.");
  script_set_attribute(attribute:"description", value:
"An update of 'mysql', 'openjdk',openjre packages of Photon OS has been
released.");
  # https://github.com/vmware/photon/wiki/Security-Updates-1.0-130
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8e96d19b");
  script_set_attribute(attribute:"solution", value:"n/a.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:N");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-2783");

  script_set_attribute(attribute:"patch_publication_date", value:"2018/04/30");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/08/17");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:vmware:photonos:mysql");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:vmware:photonos:openjdk");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:photonos:1.0");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"PhotonOS Local Security Checks");

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

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/PhotonOS/release", "Host/PhotonOS/rpm-list");

  exit(0);
}

exit(0, "This plugin has been deprecated.");

include("audit.inc");
include("global_settings.inc");
include("rpm.inc");

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);

release = get_kb_item("Host/PhotonOS/release");
if (isnull(release) || release !~ "^VMware Photon") audit(AUDIT_OS_NOT, "PhotonOS");
if (release !~ "^VMware Photon (?:Linux|OS) 1\.0(\D|$)") audit(AUDIT_OS_NOT, "PhotonOS 1.0");

if (!get_kb_item("Host/PhotonOS/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$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "PhotonOS", cpu);

flag = 0;

pkgs = [
  "mysql-5.7.22-1.ph1",
  "mysql-debuginfo-5.7.22-1.ph1",
  "mysql-devel-5.7.22-1.ph1",
  "openjdk-1.8.0.172-1.ph1",
  "openjdk-debuginfo-1.8.0.172-1.ph1",
  "openjdk-doc-1.8.0.172-1.ph1",
  "openjdk-sample-1.8.0.172-1.ph1",
  "openjdk-src-1.8.0.172-1.ph1"
];

foreach (pkg in pkgs)
  if (rpm_check(release:"PhotonOS-1.0", reference:pkg)) flag++;

if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_WARNING,
    extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "mysql / openjdk");
}

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

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/PhotonOS_PHSA-2018-1_0-0130.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\PhotonOS_PHSA-2018-1_0-0130.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/PhotonOS_PHSA-2018-1_0-0130.nasl

Go back to menu.

How to Run


Here is how to run the Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated) 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 PhotonOS Local Security Checks plugin family.
  6. On the right side table select Photon OS 1.0: Mysql / Openjdk PHSA-2018-1.0-0130 (deprecated) plugin ID 111932.
  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 PhotonOS_PHSA-2018-1_0-0130.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a PhotonOS_PHSA-2018-1_0-0130.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - PhotonOS_PHSA-2018-1_0-0130.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 PhotonOS_PHSA-2018-1_0-0130.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 110115 - RHEL 7 : java-1.8.0-ibm (RHSA-2018:1721)
  • 110116 - RHEL 6 : java-1.8.0-ibm (RHSA-2018:1722)
  • 110117 - RHEL 7 : java-1.7.1-ibm (RHSA-2018:1723)
  • 110118 - RHEL 6 : java-1.7.1-ibm (RHSA-2018:1724)
  • 110186 - SUSE SLES11 Security Update : java-1_7_1-ibm (SUSE-SU-2018:1447-1)
  • 110223 - SUSE SLES11 Security Update : java-1_7_0-ibm (SUSE-SU-2018:1458-1)
  • 110620 - SUSE SLES12 Security Update : java-1_8_0-ibm (SUSE-SU-2018:1738-1)
  • 110638 - SUSE SLES12 Security Update : java-1_7_1-ibm (SUSE-SU-2018:1764-1)
  • 110692 - RHEL 6 : java-1.7.1-ibm (RHSA-2018:1974)
  • 110793 - RHEL 6 : java-1.8.0-ibm (RHSA-2018:1975)
  • 110816 - Debian DLA-1407-1 : mariadb-10.0 security update
  • 110857 - EulerOS 2.0 SP3 : java-1.7.0-openjdk (EulerOS-SA-2018-1193)
  • 110859 - EulerOS 2.0 SP3 : java-1.8.0-openjdk (EulerOS-SA-2018-1195)
  • 111298 - Photon OS 2.0 : openjdk8 / httpd / librelp / zsh / libvirt (PhotonOS-PHSA-2018-2.0-0039) (deprecated)
  • 111800 - Oracle Linux 7 : mariadb (ELSA-2018-2439)
  • 111802 - RHEL 7 : mariadb (RHSA-2018:2439)
  • 111806 - Scientific Linux Security Update : mariadb on SL7.x x86_64 (20180816)
  • 112020 - CentOS 7 : mariadb (CESA-2018:2439)
  • 117592 - Amazon Linux 2 : mariadb (ALAS-2018-1078)
  • 117745 - EulerOS 2.0 SP2 : mariadb (EulerOS-SA-2018-1302)
  • 117746 - EulerOS 2.0 SP3 : mariadb (EulerOS-SA-2018-1303)
  • 118267 - SUSE SLES12 Security Update : java-1_8_0-ibm (SUSE-SU-2018:1738-2)
  • 118268 - SUSE SLES12 Security Update : java-1_7_1-ibm (SUSE-SU-2018:1764-2)
  • 118425 - EulerOS Virtualization 2.5.1 : mariadb (EulerOS-SA-2018-1337)
  • 118434 - EulerOS Virtualization 2.5.0 : mariadb (EulerOS-SA-2018-1346)
  • 118663 - F5 Networks BIG-IP : Oracle Java SE vulnerability (K44923228)
  • 119040 - Debian DSA-4341-1 : mariadb-10.1 - security update
  • 120060 - SUSE SLES15 Security Update : java-1_8_0-ibm (SUSE-SU-2018:2068-1)
  • 121835 - Photon OS 1.0: Openjdk PHSA-2018-1.0-0130
  • 122836 - GLSA-201903-14 : Oracle JDK/JRE: Multiple vulnerabilities
  • 127190 - NewStart CGSL CORE 5.04 / MAIN 5.04 : java-1.8.0-openjdk Multiple Vulnerabilities (NS-SA-2019-0027)
  • 127199 - NewStart CGSL CORE 5.04 / MAIN 5.04 : java-1.7.0-openjdk Multiple Vulnerabilities (NS-SA-2019-0032)
  • 127203 - NewStart CGSL CORE 5.04 / MAIN 5.04 : mariadb Multiple Vulnerabilities (NS-SA-2019-0034)
  • 127385 - NewStart CGSL MAIN 4.05 : java-1.7.0-openjdk Multiple Vulnerabilities (NS-SA-2019-0131)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file PhotonOS_PHSA-2018-1_0-0130.nasl version 1.2. For more plugins, visit the Nessus Plugin Library.

Go back to menu.