Photon OS 1.0: Linux / Openssh PHSA-2016-0014 (deprecated) - Nessus

High   Plugin ID: 111848

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

Plugin Overview


ID: 111848
Name: Photon OS 1.0: Linux / Openssh PHSA-2016-0014 (deprecated)
Filename: PhotonOS_PHSA-2016-0014.nasl
Vulnerability Published: N/A
This Plugin Published: 2018-08-17
Last Modification Time: 2019-04-05
Plugin Version: 1.5
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: 2016-12-15
CVE [?]: CVE-2016-8655, CVE-2016-8858
CPE [?]: cpe:/o:vmware:photonos:1.0, p-cpe:/a:vmware:photonos:linux, p-cpe:/a:vmware:photonos:openssh
Exploited by Malware: True

Synopsis

This plugin has been deprecated.

Description

An update of [ openssh , linux ] packages for PhotonOS has been released.

Solution

n/a.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Photon OS 1.0: Linux / Openssh PHSA-2016-0014 (deprecated) vulnerability:

  1. Metasploit: exploit/linux/local/af_packet_chocobo_root_priv_esc
    [AF_PACKET chocobo_root Privilege Escalation]
  2. Exploit-DB: exploits/linux/local/44696.rb
    [EDB-44696: Linux 4.4.0 < 4.4.0-53 - 'AF_PACKET chocobo_root' Local Privilege Escalation (Metasploit)]
  3. Exploit-DB: exploits/windows_x86-64/local/47170.c
    [EDB-47170: Linux Kernel 4.4.0-21 < 4.4.0-51 (Ubuntu 14.04/16.04 x64) - 'AF_PACKET' Race Condition Privilege Escalation]
  4. GitHub: https://github.com/KosukeShimofuji/CVE-2016-8655
    [CVE-2016-8655: Linux af_packet.c race condition (local root)]
  5. GitHub: https://github.com/LakshmiDesai/CVE-2016-8655
    [CVE-2016-8655]
  6. GitHub: https://github.com/Metarget/metarget
    [CVE-2016-8655]
  7. GitHub: https://github.com/SeaJae/exploitPlayground
    [CVE-2016-8655]
  8. GitHub: https://github.com/Snoopy-Sec/Localroot-ALL-CVE
    [CVE-2016-8655]
  9. GitHub: https://github.com/Technoashofficial/kernel-exploitation-linux
    [CVE-2016-8655]
  10. GitHub: https://github.com/agkunkle/chocobo
    [CVE-2016-8655: Chocobo Root (CVE-2016-8655) Analysis]
  11. GitHub: https://github.com/anoaghost/Localroot_Compile
    [CVE-2016-8655]
  12. GitHub: https://github.com/bcoles/kernel-exploits
    [CVE-2016-8655]
  13. GitHub: https://github.com/bsauce/kernel-exploit-factory
    [CVE-2016-8655]
  14. GitHub: https://github.com/externalist/exploit_playground
    [CVE-2016-8655]
  15. GitHub: https://github.com/jondonas/linux-exploit-suggester-2
    [CVE-2016-8655]
  16. GitHub: https://github.com/likescam/exploit_playground_lists_androidCVE
    [CVE-2016-8655]
  17. GitHub: https://github.com/mzet-/linux-exploit-suggester
    [CVE-2016-8655]
  18. GitHub: https://github.com/n3t1nv4d3/kernel-exploits
    [CVE-2016-8655]
  19. GitHub: https://github.com/scarvell/cve-2016-8655
    [CVE-2016-8655: PoC for CVE-2016-8655 that causes a kernel panic]
  20. GitHub: https://github.com/skbasava/Linux-Kernel-exploit
    [CVE-2016-8655]
  21. GitHub: https://github.com/xairy/linux-kernel-exploitation
    [CVE-2016-8655]
  22. GitHub: https://github.com/xyongcn/exploit
    [CVE-2016-8655]
  23. GitHub: https://github.com/dag-erling/kexkill
    [CVE-2016-8858: Proof of concept for CVE-2016-8858]
  24. GitHub: https://github.com/scmanjarrez/CVEScannerV2
    [CVE-2016-8858]
  25. GitHub: https://github.com/martinmullins/CVE-2016-8655_Android
    [CVE-2016-8655: Android attempt at PoC CVE-2016-8655]

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-2016-8858
CVSS V2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:C/E:H/RL:OF/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:6.9
Exploitability Subscore:10.0
CVSS Temporal Score:6.8 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.8 (Medium)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:H/RL:O/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:3.6
Exploitability Subscore:3.9
CVSS Temporal Score:7.2 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.2 (High)

Go back to menu.

Plugin Source


This is the PhotonOS_PHSA-2016-0014.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-2016-0014. The text
# itself is copyright (C) VMware, Inc.

include("compat.inc");

if (description)
{
  script_id(111848);
  script_version("1.5");
  script_cvs_date("Date: 2019/04/05 23:25:07");

  script_cve_id("CVE-2016-8655", "CVE-2016-8858");

  script_name(english:"Photon OS 1.0: Linux / Openssh PHSA-2016-0014 (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 [ openssh , linux ] packages for PhotonOS has been
released.");
  # https://github.com/vmware/photon/wiki/Security-Updates-14
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?22f925a3");
  script_set_attribute(attribute:"solution", value:"n/a.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  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:N/I:N/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-2016-8858");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'AF_PACKET chocobo_root Privilege Escalation');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"patch_publication_date", value:"2016/12/15");
  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:linux");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:vmware:photonos:openssh");
  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 = [
  "linux-4.4.35-3.ph1",
  "linux-debuginfo-4.4.35-3.ph1",
  "linux-dev-4.4.35-3.ph1",
  "linux-docs-4.4.35-3.ph1",
  "linux-drivers-gpu-4.4.35-3.ph1",
  "linux-esx-4.4.35-4.ph1",
  "linux-esx-debuginfo-4.4.35-4.ph1",
  "linux-esx-devel-4.4.35-4.ph1",
  "linux-esx-docs-4.4.35-4.ph1",
  "linux-oprofile-4.4.35-3.ph1",
  "linux-sound-4.4.35-3.ph1",
  "openssh-7.1p2-5.ph1",
  "openssh-debuginfo-7.1p2-5.ph1"
];

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

if (flag)
{
  security_report_v4(
    port       : 0,
    severity   : SECURITY_HOLE,
    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, "linux / openssh");
}

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

Go back to menu.

How to Run


Here is how to run the Photon OS 1.0: Linux / Openssh PHSA-2016-0014 (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: Linux / Openssh PHSA-2016-0014 (deprecated) plugin ID 111848.
  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-2016-0014.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a PhotonOS_PHSA-2016-0014.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-2016-0014.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-2016-0014.nasl -t <IP/HOST>

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 101431 - Virtuozzo 7 : kernel / kernel-abi-whitelists / kernel-debug / etc (VZLSA-2017-0386)
  • 102511 - Oracle Linux 7 : kernel (ELSA-2017-1842-1) (Stack Clash)
  • 106394 - Juniper Junos Key Exchange Initialization Handling Memory Exhaustion Remote DoS (JSA10837)
  • 106503 - pfSense < 2.3.3 Multiple Vulnerabilities (SA-17_01 - SA-17_03)
  • 121658 - Photon OS 1.0: Linux PHSA-2016-0014
  • 121659 - Photon OS 1.0: Openssh PHSA-2016-0014
  • 124806 - EulerOS Virtualization for ARM 64 3.0.1.0 : kernel (EulerOS-SA-2019-1482)
  • 124819 - EulerOS Virtualization 3.0.1.0 : kernel (EulerOS-SA-2019-1496)
  • 136324 - AIX OpenSSH Advisory : openssh_advisory10.asc
  • 94418 - FreeBSD : FreeBSD -- OpenSSH Remote Denial of Service vulnerability (6a2cfcdc-9dea-11e6-a298-14dae9d210b8)
  • 95566 - Ubuntu 14.04 LTS : linux vulnerability (USN-3149-1)
  • 95567 - Ubuntu 12.04 LTS : linux-lts-trusty vulnerability (USN-3149-2)
  • 95568 - Ubuntu 12.04 LTS : linux vulnerability (USN-3150-1)
  • 95569 - Ubuntu 16.04 LTS : linux vulnerability (USN-3151-1)
  • 95570 - Ubuntu 14.04 LTS : linux-lts-xenial vulnerability (USN-3151-2)
  • 95571 - Ubuntu 16.04 LTS : linux-snapdragon vulnerability (USN-3151-3)
  • 95572 - Ubuntu 16.04 LTS : linux-raspi2 vulnerability (USN-3151-4)
  • 95573 - Ubuntu 16.10 : linux vulnerability (USN-3152-1)
  • 95574 - Ubuntu 16.10 : linux-raspi2 vulnerabilities (USN-3152-2)
  • 95604 - GLSA-201612-18 : OpenSSH: Multiple vulnerabilities
  • 95606 - SUSE SLED12 / SLES12 Security Update : kernel (SUSE-SU-2016:3039-1)

Version


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

Go back to menu.