Apple TV < 11.2 Multiple Vulnerabilities - Nessus

High   Plugin ID: 105612

This page contains detailed information about the Apple TV < 11.2 Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 105612
Name: Apple TV < 11.2 Multiple Vulnerabilities
Filename: appletv_11_2.nasl
Vulnerability Published: 2017-12-04
This Plugin Published: 2018-01-05
Last Modification Time: 2019-06-04
Plugin Version: 1.9
Plugin Type: remote
Plugin Family: Misc.
Dependencies: appletv_version.nasl
Required KB Items [?]: AppleTV/Model, AppleTV/Port, AppleTV/URL, AppleTV/Version

Vulnerability Information


Severity: High
Vulnerability Published: 2017-12-04
Patch Published: 2017-12-04
CVE [?]: CVE-2017-7154, CVE-2017-7156, CVE-2017-7157, CVE-2017-7160, CVE-2017-7162, CVE-2017-13833, CVE-2017-13855, CVE-2017-13856, CVE-2017-13861, CVE-2017-13862, CVE-2017-13865, CVE-2017-13866, CVE-2017-13867, CVE-2017-13868, CVE-2017-13869, CVE-2017-13870, CVE-2017-13876
CPE [?]: cpe:/a:apple:apple_tv

Synopsis

The remote Apple TV device is affected by multiple vulnerabilities.

Description

According to its banner, the version of Apple TV on the remote device is prior to 11.2. It is, therefore, affected by multiple vulnerabilities as described in the HT208327 security advisory.

Note that only 4th and 5th generation models are affected by these vulnerabilities.

Solution

Upgrade to Apple TV version 11.2 or later. Note that this update is only available for 4th and 5th generation models.

Public Exploits


Target Network Port(s): 7000
Target Asset(s): Services/www
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 Apple TV < 11.2 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/apple_ios/browser/webkit_createthis
    [Safari Webkit Proxy Object Type Confusion]
  2. Exploit-DB: exploits/multiple/dos/46248.c
    [EDB-46248: iOS/macOS - 'task_swap_mach_voucher()' Use-After-Free]
  3. Exploit-DB: exploits/macos/local/44234.c
    [EDB-44234: Apple macOS High Sierra 10.13 - 'ctl_ctloutput-leak' Information Leak]
  4. GitHub: https://github.com/bazad/sysctl_coalition_get_pid_list-dos
    [CVE-2017-13833]
  5. GitHub: https://github.com/Jailbreaks/async_wake_ios
    [CVE-2017-13861]
  6. GitHub: https://github.com/WRFan/jailbreak10.3.3
    [CVE-2017-13861]
  7. GitHub: https://github.com/blacktop/async_wake
    [CVE-2017-13861]
  8. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2017-13861]
  9. GitHub: https://github.com/Jailbreaks/async_wake_ios
    [CVE-2017-13865]
  10. GitHub: https://github.com/blacktop/async_wake
    [CVE-2017-13865]
  11. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2017-13868]
  12. GitHub: https://github.com/offensive-security/exploitdb-bin-sploits/blob/master/bin-sploits/44234.zip
    [EDB-44234]
  13. GitHub: https://github.com/bazad/ctl_ctloutput-leak
    [CVE-2017-13868: CVE-2017-13868: Information leak of uninitialized kernel heap data in XNU.]

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-2017-7162
CVSS V2 Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:7.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.7 (High)
CVSS V3 Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
CVSS Base Score:7.8 (High)
Impact Subscore:5.9
Exploitability Subscore:1.8
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 appletv_11_2.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.
#

include("compat.inc");

if (description)
{
  script_id(105612);
  script_version("1.9");
  script_cvs_date("Date: 2019/06/04  9:45:00");

  script_cve_id(
    "CVE-2017-7154",
    "CVE-2017-7156",
    "CVE-2017-7157",
    "CVE-2017-7160",
    "CVE-2017-7162",
    "CVE-2017-13833",
    "CVE-2017-13855",
    "CVE-2017-13856",
    "CVE-2017-13861",
    "CVE-2017-13862",
    "CVE-2017-13865",
    "CVE-2017-13866",
    "CVE-2017-13867",
    "CVE-2017-13868",
    "CVE-2017-13869",
    "CVE-2017-13870",
    "CVE-2017-13876"
  );
  script_xref(name:"APPLE-SA", value:"APPLE-SA-2017-12-6-4");

  script_name(english:"Apple TV < 11.2 Multiple Vulnerabilities");
  script_summary(english:"Checks the build number.");

  script_set_attribute(attribute:"synopsis", value:
"The remote Apple TV device is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its banner, the version of Apple TV on the remote device
is prior to 11.2. It is, therefore, affected by multiple
vulnerabilities as described in the HT208327 security advisory.

Note that only 4th and 5th generation models are affected by these
vulnerabilities.");
  script_set_attribute(attribute:"see_also", value:"https://support.apple.com/en-us/HT208327");
  # https://seclists.org/fulldisclosure/2017/Dec/29
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?262ee1b8");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Apple TV version 11.2 or later. Note that this update is
only available for 4th and 5th generation models.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/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:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2017-7162");
  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:'Safari Webkit Proxy Object Type Confusion');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2017/12/04");
  script_set_attribute(attribute:"patch_publication_date", value:"2017/12/04");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/01/05");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:apple:apple_tv");
  script_end_attributes();

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

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

  script_dependencies("appletv_version.nasl");
  script_require_keys("AppleTV/Version", "AppleTV/Model", "AppleTV/URL", "AppleTV/Port");
  script_require_ports("Services/www", 7000);

  exit(0);
}

include("audit.inc");
include("appletv_func.inc");

url = get_kb_item('AppleTV/URL');
if (empty_or_null(url)) exit(0, 'Cannot determine Apple TV URL.');
port = get_kb_item('AppleTV/Port');
if (empty_or_null(port)) exit(0, 'Cannot determine Apple TV port.');

build = get_kb_item('AppleTV/Version');
if (empty_or_null(build)) audit(AUDIT_UNKNOWN_DEVICE_VER, 'Apple TV');

model = get_kb_item('AppleTV/Model');
if (empty_or_null(model)) exit(0, 'Cannot determine Apple TV model.');

# https://en.wikipedia.org/wiki/TvOS
# 4th gen model "5,3" and 5th gen model "6,2" share same build
fixed_build = "15K106";
tvos_ver = '11';

# determine gen from the model
gen = APPLETV_MODEL_GEN[model];

appletv_check_version(
  build          : build,
  fix            : fixed_build,
  affected_gen   : make_list(4, 5),
  fix_tvos_ver   : tvos_ver,
  model          : model,
  gen            : gen,
  port           : port,
  url            : url,
  severity       : SECURITY_WARNING
);

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

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

Go back to menu.

How to Run


Here is how to run the Apple TV < 11.2 Multiple Vulnerabilities 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 Apple TV < 11.2 Multiple Vulnerabilities plugin ID 105612.
  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 appletv_11_2.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


APPLE-SA | Apple Security Advisory:
  • 2017-12-6-4
See also: Similar and related Nessus plugins:
  • 103420 - Apple iOS < 11 Multiple Vulnerabilities
  • 105075 - Apple iOS < 11.2 Multiple Vulnerabilities
  • 108703 - FreeBSD : webkit2-gtk3 -- multiple vulnerabilities (1ce95bc7-3278-11e8-b527-00012e582166) (Spectre)
  • 108526 - GLSA-201803-11 : WebKitGTK+: Multiple Vulnerabilities
  • 105080 - macOS 10.13.x < 10.13.2 Multiple Vulnerabilities (Meltdown)
  • 103598 - macOS < 10.13 Multiple Vulnerabilities
  • 104379 - macOS and Mac OS X Multiple Vulnerabilities (Security Update 2017-001 and 2017-004)
  • 105081 - macOS and Mac OS X Multiple Vulnerabilities (Security Update 2017-002 and 2017-005)
  • 106549 - openSUSE Security Update : webkit2gtk3 (openSUSE-2018-118) (Meltdown) (Spectre)
  • 118453 - openSUSE Security Update : webkit2gtk3 (openSUSE-2018-1288)
  • 106370 - SUSE SLED12 / SLES12 Security Update : webkit2gtk3 (SUSE-SU-2018:0219-1) (Meltdown) (Spectre)
  • 118389 - SUSE SLED12 / SLES12 Security Update : webkit2gtk3 (SUSE-SU-2018:3387-1)

Version


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

Go back to menu.