macOS 10.13.x < 10.13.5 Multiple Vulnerabilities - Nessus

Critical   Plugin ID: 110324

This page contains detailed information about the macOS 10.13.x < 10.13.5 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: 110324
Name: macOS 10.13.x < 10.13.5 Multiple Vulnerabilities
Filename: macos_10_13_5.nasl
Vulnerability Published: 2018-06-01
This Plugin Published: 2018-06-05
Last Modification Time: 2019-11-04
Plugin Version: 1.11
Plugin Type: combined
Plugin Family: MacOS X Local Security Checks
Dependencies: os_fingerprint.nasl, ssh_get_info.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: 2018-06-01
Patch Published: 2018-06-01
CVE [?]: CVE-2018-4141, CVE-2018-4159, CVE-2018-4180, CVE-2018-4181, CVE-2018-4182, CVE-2018-4183, CVE-2018-4184, CVE-2018-4193, CVE-2018-4194, CVE-2018-4196, CVE-2018-4198, CVE-2018-4202, CVE-2018-4211, CVE-2018-4217, CVE-2018-4219, CVE-2018-4221, CVE-2018-4223, CVE-2018-4224, CVE-2018-4225, CVE-2018-4226, CVE-2018-4227, CVE-2018-4228, CVE-2018-4229, CVE-2018-4230, CVE-2018-4234, CVE-2018-4235, CVE-2018-4236, CVE-2018-4237, CVE-2018-4240, CVE-2018-4241, CVE-2018-4242, CVE-2018-4243, CVE-2018-4249, CVE-2018-4251, CVE-2018-4253, CVE-2018-4254, CVE-2018-4255, CVE-2018-4256, CVE-2018-4257, CVE-2018-4258, CVE-2018-4404, CVE-2018-4478, CVE-2018-5383, CVE-2018-7584
CPE [?]: cpe:/o:apple:macos, cpe:/o:apple:mac_os_x
Exploited by Malware: True

Synopsis

The remote host is missing a macOS update that fixes multiple security vulnerabilities.

Description

The remote host is running a version of macOS / Mac OS X that is 10.13.x prior to 10.13.5. It is, therefore, affected by multiple vulnerabilities.

Note that successful exploitation of the most serious issues can result in arbitrary code execution.

Solution

Upgrade to macOS version 10.13.5 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): Host/MacOSX/Version, Host/OS
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 macOS 10.13.x < 10.13.5 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/osx/browser/safari_proxy_object_type_confusion
    [Safari Proxy Object Type Confusion]
  2. Metasploit: exploit/osx/local/libxpc_mitm_ssudo
    [Mac OS X libxpc MITM Privilege Escalation]
  3. Exploit-DB: exploits/macos/dos/45391.py
    [EDB-45391: Apple macOS 10.13.4 - Denial of Service (PoC)]
  4. Exploit-DB: exploits/macos/local/45916.rb
    [EDB-45916: Mac OS X - libxpc MITM Privilege Escalation (Metasploit)]
  5. Exploit-DB: exploits/macos/remote/45998.rb
    [EDB-45998: Safari - Proxy Object Type Confusion (Metasploit)]
  6. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2018-4184]
  7. GitHub: https://github.com/kai5263499/osx-security-awesome
    [CVE-2018-4184]
  8. GitHub: https://github.com/aslrfellow/aslrfellow.github.io
    [CVE-2018-4193]
  9. GitHub: https://github.com/ret2/P2O_2018
    [CVE-2018-4193]
  10. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2018-4229]
  11. GitHub: https://github.com/ExploitsJB/multi_path
    [CVE-2018-4241]
  12. GitHub: https://github.com/GeoSn0w/Osiris-Jailbreak
    [CVE-2018-4241]
  13. GitHub: https://github.com/Jailbreaks/multi_path
    [CVE-2018-4241]
  14. GitHub: https://github.com/SeaJae/GeoSn0w-Osiris-Jailbreak
    [CVE-2018-4241]
  15. GitHub: https://github.com/yeonnic/Look-at-The-XNU-Through-A-Tube-CVE-2018-4242-Write-up-Translation-
    [CVE-2018-4242]
  16. GitHub: https://github.com/ExploitsJB/RCE_1131
    [CVE-2018-4243]
  17. GitHub: https://github.com/Jailbreaks/rce_1131
    [CVE-2018-4243]
  18. GitHub: https://github.com/NickA1260/My-Coding-Bio
    [CVE-2018-4243]
  19. GitHub: https://github.com/Tom-ODonnell/TFP0-via-Safari-iOS-11.3.1
    [CVE-2018-4243]
  20. GitHub: https://github.com/Yangcheesen/jailbreakme
    [CVE-2018-4243]
  21. GitHub: https://github.com/awesomehd1/JailbreakMe
    [CVE-2018-4243]
  22. GitHub: https://github.com/geeksniper/reverse-engineering-toolkit
    [CVE-2018-4243]
  23. GitHub: https://github.com/kazaf0322/jb5.0
    [CVE-2018-4243]
  24. GitHub: https://github.com/nqcshady/webvfs
    [CVE-2018-4243]
  25. GitHub: https://github.com/ptresearch/mmdetect
    [CVE-2018-4251]
  26. GitHub: https://github.com/engn33r/awesome-bluetooth-security
    [CVE-2018-5383]
  27. GitHub: https://github.com/winterheart/broadcom-bt-firmware
    [CVE-2018-5383]
  28. 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 ...]
  29. GitHub: https://github.com/Synacktiv-contrib/CVE-2018-4193
    [CVE-2018-4193: Exploit for CVE-2018-4193]
  30. 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-4258
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:H/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.7 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:9.4 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.4 (Critical)

Go back to menu.

Plugin Source


This is the macos_10_13_5.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(110324);
  script_version("1.11");
  script_cvs_date("Date: 2019/11/04");

  script_cve_id(
    "CVE-2018-4141",
    "CVE-2018-4159",
    "CVE-2018-4180",
    "CVE-2018-4181",
    "CVE-2018-4182",
    "CVE-2018-4183",
    "CVE-2018-4184",
    "CVE-2018-4193",
    "CVE-2018-4194",
    "CVE-2018-4196",
    "CVE-2018-4198",
    "CVE-2018-4202",
    "CVE-2018-4211",
    "CVE-2018-4217",
    "CVE-2018-4219",
    "CVE-2018-4221",
    "CVE-2018-4223",
    "CVE-2018-4224",
    "CVE-2018-4225",
    "CVE-2018-4226",
    "CVE-2018-4227",
    "CVE-2018-4228",
    "CVE-2018-4229",
    "CVE-2018-4230",
    "CVE-2018-4234",
    "CVE-2018-4235",
    "CVE-2018-4236",
    "CVE-2018-4237",
    "CVE-2018-4240",
    "CVE-2018-4241",
    "CVE-2018-4242",
    "CVE-2018-4243",
    "CVE-2018-4249",
    "CVE-2018-4251",
    "CVE-2018-4253",
    "CVE-2018-4254",
    "CVE-2018-4255",
    "CVE-2018-4256",
    "CVE-2018-4257",
    "CVE-2018-4258",
    "CVE-2018-4404",
    "CVE-2018-4478",
    "CVE-2018-5383",
    "CVE-2018-7584"
  );
  script_bugtraq_id(
    103204,
    104378,
    104879,
    104888,
    104889,
    104897,
    107135
  );
  script_xref(name:"APPLE-SA", value:"APPLE-SA-2018-7-23-2");

  script_name(english:"macOS 10.13.x < 10.13.5 Multiple Vulnerabilities");
  script_summary(english:"Checks the version of Mac OS X / macOS.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is missing a macOS update that fixes multiple security
vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of macOS / Mac OS X that is
10.13.x prior to 10.13.5. It is, therefore, affected by multiple
vulnerabilities.

Note that successful exploitation of the most serious issues can
result in arbitrary code execution.");
  script_set_attribute(attribute:"see_also", value:"https://support.apple.com/en-us/HT208849");
  # https://lists.apple.com/archives/security-announce/2018/Jul/msg00009.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?68a789b4");
  script_set_attribute(attribute:"solution", value:
"Upgrade to macOS version 10.13.5 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/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:N/AC:L/PR:N/UI:N/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-4258");

  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:'Safari Proxy Object Type Confusion');
  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:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:apple:mac_os_x");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:apple:macos");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X 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", "os_fingerprint.nasl");
  script_require_ports("Host/MacOSX/Version", "Host/OS");

  exit(0);
}

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

os = get_kb_item("Host/MacOSX/Version");
if (!os)
{
  os = get_kb_item_or_exit("Host/OS");
  if ("Mac OS X" >!< os) audit(AUDIT_OS_NOT, "macOS / Mac OS X");

  c = get_kb_item("Host/OS/Confidence");
  if (c <= 70) exit(1, "Can't determine the host's OS with sufficient confidence.");
}
if (!os) audit(AUDIT_OS_NOT, "macOS / Mac OS X");

matches = pregmatch(pattern:"Mac OS X ([0-9]+(\.[0-9]+)+)", string:os);
if (empty_or_null(matches)) exit(1, "Failed to parse the macOS / Mac OS X version ('" + os + "').");

version = matches[1];
fix = "10.13.5";

if (version !~"^10\.13($|[^0-9])")
  audit(AUDIT_OS_NOT, "macOS 10.13.x");

if (ver_compare(ver:version, fix:fix, strict:FALSE) == -1)
{
  security_report_v4(
    port:0,
    severity:SECURITY_HOLE,
    extra:
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fix +
      '\n'
  );
}
else audit(AUDIT_INST_VER_NOT_VULN, "macOS / Mac OS X", version);

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

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

Go back to menu.

How to Run


Here is how to run the macOS 10.13.x < 10.13.5 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 MacOS X Local Security Checks plugin family.
  6. On the right side table select macOS 10.13.x < 10.13.5 Multiple Vulnerabilities plugin ID 110324.
  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 macos_10_13_5.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: APPLE-SA | Apple Security Advisory:
  • 2018-7-23-2
See also: Similar and related Nessus plugins:
  • 110398 - Apple iOS < 11.4 Multiple Vulnerabilities (EFAIL)
  • 117632 - Apple iOS < 12.0 Multiple Vulnerabilities (EFAIL)
  • 110325 - Apple TV < 11.4 Multiple Vulnerabilities
  • 117588 - Apple TV < 12 Multiple Vulnerabilities
  • 128369 - CentOS 7 : linux-firmware (CESA-2019:2169)
  • 110697 - Debian DLA-1397-1 : php5 security update
  • 123567 - Debian DLA-1747-1 : firmware-nonfree security update
  • 110928 - Debian DSA-4240-1 : php7.0 - security update
  • 111014 - Debian DSA-4243-1 : cups - security update
  • 127957 - GLSA-201908-08 : CUPS: Multiple vulnerabilities
  • 110383 - Apple iTunes < 12.7.5 Multiple Vulnerabilities (uncredentialed check)
  • 110384 - Apple iTunes < 12.7.5 Multiple Vulnerabilities (credentialed check)
  • 111137 - macOS 10.13.x < 10.13.6 Multiple Vulnerabilities
  • 118178 - macOS < 10.14 Multiple Vulnerabilities
  • 110323 - macOS and Mac OS X Multiple Vulnerabilities (Security Update 2018-003)
  • 111136 - macOS and Mac OS X Multiple Vulnerabilities (Security Update 2018-004)
  • 118573 - macOS and Mac OS X Multiple Vulnerabilities (Security Update 2018-005)
  • 129919 - NewStart CGSL CORE 5.04 / MAIN 5.04 : linux-firmware Vulnerability (NS-SA-2019-0204)
  • 132451 - NewStart CGSL CORE 5.05 / MAIN 5.05 : linux-firmware Vulnerability (NS-SA-2019-0251)
  • 122579 - openSUSE Security Update : kernel-firmware (openSUSE-2019-275)
  • 127690 - RHEL 7 : linux-firmware (RHSA-2019:2169)
  • 117672 - Tenable SecurityCenter < 5.7.1 Multiple Vulnerabilities (TNS-2018-12)
  • 128239 - Scientific Linux Security Update : linux-firmware on SL7.x x86_64 (20190806)
  • 108650 - SUSE SLES11 Security Update : php53 (SUSE-SU-2018:0806-1)
  • 127889 - Ubuntu 16.04 LTS / 18.04 LTS : Linux kernel vulnerabilities (USN-4094-1)
  • 127890 - Ubuntu 16.04 LTS : Linux kernel vulnerabilities (USN-4095-1)
  • 128478 - Ubuntu 16.04 LTS / 18.04 LTS : linux-aws vulnerabilities (USN-4118-1)
  • 136400 - Ubuntu 16.04 LTS / 18.04 LTS : linux-firmware vulnerability (USN-4351-1)
  • 111110 - Apple TV < 11.4.1 Multiple Vulnerabilities

Version


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

Go back to menu.