Apple TV < 11.4 Multiple Vulnerabilities - Nessus

High   Plugin ID: 110325

This page contains detailed information about the Apple TV < 11.4 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: 110325
Name: Apple TV < 11.4 Multiple Vulnerabilities
Filename: appletv_11_4.nasl
Vulnerability Published: 2018-06-01
This Plugin Published: 2018-06-05
Last Modification Time: 2019-04-05
Plugin Version: 1.6
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: 2018-06-01
Patch Published: 2018-06-01
CVE [?]: CVE-2018-4188, CVE-2018-4190, CVE-2018-4192, CVE-2018-4198, CVE-2018-4199, CVE-2018-4200, CVE-2018-4201, CVE-2018-4204, CVE-2018-4206, CVE-2018-4211, CVE-2018-4214, CVE-2018-4218, CVE-2018-4222, CVE-2018-4223, CVE-2018-4224, CVE-2018-4232, CVE-2018-4233, CVE-2018-4235, CVE-2018-4237, CVE-2018-4240, CVE-2018-4241, CVE-2018-4243, CVE-2018-4246, CVE-2018-4249, CVE-2018-5383
CPE [?]: cpe:/a:apple:apple_tv
Exploited by Malware: True

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.4. It is, therefore, affected by multiple vulnerabilities as described in the HT208850 security advisory.

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

Solution

Upgrade to Apple TV version 11.4 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.4 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/osx/local/libxpc_mitm_ssudo
    [Mac OS X libxpc MITM Privilege Escalation]
  2. Metasploit: exploit/osx/browser/safari_proxy_object_type_confusion
    [Safari Proxy Object Type Confusion]
  3. Metasploit: exploit/apple_ios/browser/webkit_createthis
    [Safari Webkit Proxy Object Type Confusion]
  4. Exploit-DB: exploits/macos/dos/45391.py
    [EDB-45391: Apple macOS 10.13.4 - Denial of Service (PoC)]
  5. Exploit-DB: exploits/multiple/dos/46248.c
    [EDB-46248: iOS/macOS - 'task_swap_mach_voucher()' Use-After-Free]
  6. Exploit-DB: exploits/macos/local/45916.rb
    [EDB-45916: Mac OS X - libxpc MITM Privilege Escalation (Metasploit)]
  7. Exploit-DB: exploits/macos/remote/45998.rb
    [EDB-45998: Safari - Proxy Object Type Confusion (Metasploit)]
  8. GitHub: https://github.com/dothanthitiendiettiende/Exploits
    [CVE-2018-4192]
  9. GitHub: https://github.com/ret2/P2O_2018
    [CVE-2018-4192]
  10. GitHub: https://github.com/rudinyu/KB
    [CVE-2018-4192]
  11. GitHub: https://github.com/wzw19890321/Exploits/tree/master/CVE-2018-4192
    [CVE-2018-4192]
  12. GitHub: https://github.com/googleprojectzero/domato
    [CVE-2018-4200]
  13. GitHub: https://github.com/Metnew/uxss-db/tree/master/webkit/CVE-2018-4204
    [CVE-2018-4204]
  14. GitHub: https://github.com/ExploitsJB/RCE_1131
    [CVE-2018-4233]
  15. GitHub: https://github.com/Jailbreaks/rce_1131
    [CVE-2018-4233]
  16. GitHub: https://github.com/LinusHenze/WebKit-RegEx-Exploit
    [CVE-2018-4233]
  17. GitHub: https://github.com/NickA1260/My-Coding-Bio
    [CVE-2018-4233]
  18. GitHub: https://github.com/Tom-ODonnell/TFP0-via-Safari-iOS-11.3.1
    [CVE-2018-4233]
  19. GitHub: https://github.com/WRFan/jailbreak10.3.3
    [CVE-2018-4233]
  20. GitHub: https://github.com/Yangcheesen/jailbreakme
    [CVE-2018-4233]
  21. GitHub: https://github.com/awesomehd1/JailbreakMe
    [CVE-2018-4233]
  22. GitHub: https://github.com/externalist/exploit_playground
    [CVE-2018-4233]
  23. GitHub: https://github.com/kai5263499/osx-security-awesome
    [CVE-2018-4233]
  24. GitHub: https://github.com/kazaf0322/jb5.0
    [CVE-2018-4233]
  25. GitHub: https://github.com/likescam/exploit_playground_lists_androidCVE
    [CVE-2018-4233]
  26. GitHub: https://github.com/m00zh33/sploits
    [CVE-2018-4233]
  27. GitHub: https://github.com/niklasb/sploits
    [CVE-2018-4233]
  28. GitHub: https://github.com/nqcshady/webvfs
    [CVE-2018-4233]
  29. GitHub: https://github.com/tunz/js-vuln-db
    [CVE-2018-4233]
  30. GitHub: https://github.com/ExploitsJB/multi_path
    [CVE-2018-4241]
  31. GitHub: https://github.com/GeoSn0w/Osiris-Jailbreak
    [CVE-2018-4241]
  32. GitHub: https://github.com/Jailbreaks/multi_path
    [CVE-2018-4241]
  33. GitHub: https://github.com/SeaJae/GeoSn0w-Osiris-Jailbreak
    [CVE-2018-4241]
  34. GitHub: https://github.com/ExploitsJB/RCE_1131
    [CVE-2018-4243]
  35. GitHub: https://github.com/Jailbreaks/rce_1131
    [CVE-2018-4243]
  36. GitHub: https://github.com/NickA1260/My-Coding-Bio
    [CVE-2018-4243]
  37. GitHub: https://github.com/Tom-ODonnell/TFP0-via-Safari-iOS-11.3.1
    [CVE-2018-4243]
  38. GitHub: https://github.com/Yangcheesen/jailbreakme
    [CVE-2018-4243]
  39. GitHub: https://github.com/awesomehd1/JailbreakMe
    [CVE-2018-4243]
  40. GitHub: https://github.com/geeksniper/reverse-engineering-toolkit
    [CVE-2018-4243]
  41. GitHub: https://github.com/kazaf0322/jb5.0
    [CVE-2018-4243]
  42. GitHub: https://github.com/nqcshady/webvfs
    [CVE-2018-4243]
  43. GitHub: https://github.com/engn33r/awesome-bluetooth-security
    [CVE-2018-5383]
  44. GitHub: https://github.com/winterheart/broadcom-bt-firmware
    [CVE-2018-5383]
  45. GitHub: https://github.com/saelo/cve-2018-4233
    [CVE-2018-4233: Exploit for CVE-2018-4233, a WebKit JIT optimization bug used during Pwn2Own 2018 ...]
  46. GitHub: https://github.com/0neday/multi_path
    [CVE-2018-4241: CVE-2018-4241: XNU kernel heap overflow due to bad bounds checking in MPTCP for iOS ...]
  47. GitHub: https://github.com/Jailbreaks/empty_list
    [CVE-2018-4243: Empty_list - exploit for p0 issue 1564 (CVE-2018-4243) iOS 11.0 - 11.3.1 kernel r/w ...]

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

Go back to menu.

Plugin Source


This is the appletv_11_4.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(110325);
  script_version("1.6");
  script_cvs_date("Date: 2019/04/05 23:25:06");

  script_cve_id(
    "CVE-2018-4188",
    "CVE-2018-4190",
    "CVE-2018-4192",
    "CVE-2018-4198",
    "CVE-2018-4199",
    "CVE-2018-4200",
    "CVE-2018-4201",
    "CVE-2018-4204",
    "CVE-2018-4206",
    "CVE-2018-4211",
    "CVE-2018-4214",
    "CVE-2018-4218",
    "CVE-2018-4222",
    "CVE-2018-4223",
    "CVE-2018-4224",
    "CVE-2018-4232",
    "CVE-2018-4233",
    "CVE-2018-4235",
    "CVE-2018-4237",
    "CVE-2018-4240",
    "CVE-2018-4241",
    "CVE-2018-4243",
    "CVE-2018-4246",
    "CVE-2018-4249",
    "CVE-2018-5383"
  );
  script_bugtraq_id(
    103957,
    103958,
    103961,
    104378
  );
  script_xref(name:"APPLE-SA", value:"APPLE-SA-2018-6-01-6");

  script_name(english:"Apple TV < 11.4 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.4. It is, therefore, affected by multiple
vulnerabilities as described in the HT208850 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/HT208850");
  # https://lists.apple.com/archives/security-announce/2018/Jun/msg00003.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0e8b8fb7");
  # https://lists.apple.com/archives/security-announce/2018/Jul/msg00011.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b0bb7d4f");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Apple TV version 11.4 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:H/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:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-4241");
  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:'Mac OS X libxpc MITM Privilege Escalation');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/06/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/06/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/06/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 = "15L577";
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_HOLE
);

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

Go back to menu.

How to Run


Here is how to run the Apple TV < 11.4 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.4 Multiple Vulnerabilities plugin ID 110325.
  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_4.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a appletv_11_4.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_4.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_4.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: APPLE-SA | Apple Security Advisory:
  • 2018-6-01-6
See also: Similar and related Nessus plugins:
  • 109397 - Apple iOS < 11.3.1 Multiple Vulnerabilities
  • 110398 - Apple iOS < 11.4 Multiple Vulnerabilities (EFAIL)
  • 111110 - Apple TV < 11.4.1 Multiple Vulnerabilities
  • 110383 - Apple iTunes < 12.7.5 Multiple Vulnerabilities (uncredentialed check)
  • 110384 - Apple iTunes < 12.7.5 Multiple Vulnerabilities (credentialed check)
  • 108786 - macOS 10.13.x < 10.13.4 Multiple Vulnerabilities
  • 110324 - macOS 10.13.x < 10.13.5 Multiple Vulnerabilities
  • 109392 - macOS : Apple Safari 11.1 APPLE-SA-2018-04-24-3 Multiple Vulnerabilities
  • 109361 - macOS Multiple Vulnerabilities (Security Update 2018-001)

Version


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

Go back to menu.