macOS 11.x < 11.3 (HT212325) - Nessus

Critical   Plugin ID: 149041

This page contains detailed information about the macOS 11.x < 11.3 (HT212325) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 149041
Name: macOS 11.x < 11.3 (HT212325)
Filename: macos_HT212325.nasl
Vulnerability Published: 2021-04-26
This Plugin Published: 2021-04-28
Last Modification Time: 2022-01-21
Plugin Version: 1.10
Plugin Type: local
Plugin Family: MacOS X Local Security Checks
Dependencies: ssh_get_info.nasl

Vulnerability Information


Severity: Critical
Vulnerability Published: 2021-04-26
Patch Published: 2021-04-26
CVE [?]: CVE-2020-7463, CVE-2020-8037, CVE-2020-8285, CVE-2020-8286, CVE-2021-1739, CVE-2021-1740, CVE-2021-1784, CVE-2021-1808, CVE-2021-1809, CVE-2021-1810, CVE-2021-1811, CVE-2021-1813, CVE-2021-1814, CVE-2021-1815, CVE-2021-1817, CVE-2021-1820, CVE-2021-1824, CVE-2021-1825, CVE-2021-1826, CVE-2021-1828, CVE-2021-1829, CVE-2021-1832, CVE-2021-1834, CVE-2021-1839, CVE-2021-1840, CVE-2021-1841, CVE-2021-1843, CVE-2021-1846, CVE-2021-1847, CVE-2021-1849, CVE-2021-1851, CVE-2021-1853, CVE-2021-1855, CVE-2021-1857, CVE-2021-1858, CVE-2021-1859, CVE-2021-1860, CVE-2021-1861, CVE-2021-1867, CVE-2021-1868, CVE-2021-1872, CVE-2021-1873, CVE-2021-1875, CVE-2021-1876, CVE-2021-1878, CVE-2021-1880, CVE-2021-1881, CVE-2021-1882, CVE-2021-1883, CVE-2021-1884, CVE-2021-1885, CVE-2021-30652, CVE-2021-30653, CVE-2021-30655, CVE-2021-30657, CVE-2021-30658, CVE-2021-30659, CVE-2021-30660, CVE-2021-30661
CPE [?]: cpe:/o:apple:macos, cpe:/o:apple:mac_os_x

Synopsis

The remote host is missing a macOS security update.

Description

The remote host is running a version of macOS / Mac OS X that is 11.x prior to 11.3 Big Sur. It is, therefore, affected by multiple vulnerabilities including the following:

- A memory corruption issue which could allow an application restricted memory read access (CVE-2021-1808).

- A memory corruption issue which could allow an application to cause unexpected system termination or to write kernel memory (CVE-2021-1828).

- An out-of-bounds wirte issue which could allow a malicious application to execute arbitrary code with kernel privileges (CVE-2021-1834).

Note that Nessus has not tested for this issue but has instead relied only on the operating system's self-reported version number.

Solution

Upgrade to macOS 11.3 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): Host/local_checks_enabled, Host/MacOSX/packages/boms, Host/MacOSX/Version
Exploit Available: True (Metasploit Framework, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the macOS 11.x < 11.3 (HT212325) vulnerability:

  1. Metasploit: exploit/osx/browser/osx_gatekeeper_bypass
    [macOS Gatekeeper check bypass]
  2. GitHub: https://github.com/artsking/curl-7.64.1_CVE-2020-8285_WithPatch
    [CVE-2020-8285]
  3. GitHub: https://github.com/YaleSpinup/ecr-api
    [CVE-2020-8286]
  4. GitHub: https://github.com/artsking/curl-7.64.1_CVE-2020-8286_WithPatch
    [CVE-2020-8286]
  5. GitHub: https://github.com/salrashid123/envoy_mtls
    [CVE-2020-8286]
  6. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2021-1740]
  7. GitHub: https://github.com/AlAIAL90/CVE-2021-1810
    [CVE-2021-1810: PoC for exploiting CVE-2021-1810 : A logic issue was addressed with improved state ...]
  8. GitHub: https://github.com/fardeen-ahmed/Bug-bounty-Writeups
    [CVE-2021-1810]
  9. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2021-1815]
  10. GitHub: https://github.com/AlAIAL90/CVE-2021-1829
    [CVE-2021-1829: PoC for exploiting CVE-2021-1829 : A type confusion issue was addressed with ...]
  11. GitHub: https://github.com/AlAIAL90/CVE-2021-1832
    [CVE-2021-1832: PoC for exploiting CVE-2021-1832 : Copied files may not have the expected file ...]
  12. GitHub: https://github.com/AlAIAL90/CVE-2021-1858
    [CVE-2021-1858: PoC for exploiting CVE-2021-1858 : Processing a maliciously crafted image may lead ...]
  13. GitHub: https://github.com/AlAIAL90/CVE-2021-1881
    [CVE-2021-1881: PoC for exploiting CVE-2021-1881 : An out-of-bounds read was addressed with improved ...]
  14. GitHub: https://github.com/Peterpan0927/pocs
    [CVE-2021-1882]
  15. GitHub: https://github.com/Peterpan0927/pocs
    [CVE-2021-1883]
  16. GitHub: https://github.com/gabe-k/CVE-2021-1883
    [CVE-2021-1883]
  17. GitHub: https://github.com/Peterpan0927/pocs
    [CVE-2021-1884]
  18. GitHub: https://github.com/AlAIAL90/CVE-2021-1885
    [CVE-2021-1885: PoC for exploiting CVE-2021-1885 : An out-of-bounds read was addressed with improved ...]
  19. GitHub: https://github.com/AlAIAL90/CVE-2021-30653
    [CVE-2021-30653: PoC for exploiting CVE-2021-30653 : This issue was addressed with improved checks. ...]
  20. GitHub: https://github.com/amanszpapaya/MacPer
    [CVE-2021-30655]
  21. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2021-30655]
  22. GitHub: https://github.com/cedowens/Swift-Attack
    [CVE-2021-30657]
  23. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2021-30657]
  24. GitHub: https://github.com/joydo/CVE-Writeups
    [CVE-2021-30657]
  25. GitHub: https://github.com/Siguza/ios-resources
    [CVE-2021-30660]
  26. GitHub: https://github.com/houjingyi233/macOS-iOS-system-security
    [CVE-2021-30660]
  27. GitHub: https://github.com/shubham0d/CVE-2021-30657
    [CVE-2021-30657: A sample POC for CVE-2021-30657 affecting MacOS]

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-2021-30655
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)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


This is the macos_HT212325.nasl nessus plugin source code. This script is Copyright (C) 2021-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

##
# (C) Tenable Network Security, Inc.
##

include('compat.inc');

if (description)
{
  script_id(149041);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/01/21");

  script_cve_id(
    "CVE-2020-7463",
    "CVE-2020-8037",
    "CVE-2020-8285",
    "CVE-2020-8286",
    "CVE-2021-1739",
    "CVE-2021-1740",
    "CVE-2021-1784",
    "CVE-2021-1808",
    "CVE-2021-1809",
    "CVE-2021-1810",
    "CVE-2021-1811",
    "CVE-2021-1813",
    "CVE-2021-1814",
    "CVE-2021-1815",
    "CVE-2021-1817",
    "CVE-2021-1820",
    "CVE-2021-1824",
    "CVE-2021-1825",
    "CVE-2021-1826",
    "CVE-2021-1828",
    "CVE-2021-1829",
    "CVE-2021-1832",
    "CVE-2021-1834",
    "CVE-2021-1839",
    "CVE-2021-1840",
    "CVE-2021-1841",
    "CVE-2021-1843",
    "CVE-2021-1846",
    "CVE-2021-1847",
    "CVE-2021-1849",
    "CVE-2021-1851",
    "CVE-2021-1853",
    "CVE-2021-1855",
    "CVE-2021-1857",
    "CVE-2021-1858",
    "CVE-2021-1859",
    "CVE-2021-1860",
    "CVE-2021-1861",
    "CVE-2021-1867",
    "CVE-2021-1868",
    "CVE-2021-1872",
    "CVE-2021-1873",
    "CVE-2021-1875",
    "CVE-2021-1876",
    "CVE-2021-1878",
    "CVE-2021-1880",
    "CVE-2021-1881",
    "CVE-2021-1882",
    "CVE-2021-1883",
    "CVE-2021-1884",
    "CVE-2021-1885",
    "CVE-2021-30652",
    "CVE-2021-30653",
    "CVE-2021-30655",
    "CVE-2021-30657",
    "CVE-2021-30658",
    "CVE-2021-30659",
    "CVE-2021-30660",
    "CVE-2021-30661"
  );
  script_xref(name:"APPLE-SA", value:"HT212325");
  script_xref(name:"APPLE-SA", value:"APPLE-SA-2021-04-26-2");
  script_xref(name:"IAVA", value:"2021-A-0202-S");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2021/11/17");

  script_name(english:"macOS 11.x < 11.3 (HT212325)");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is missing a macOS security update.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of macOS / Mac OS X that is 11.x prior to 11.3 Big Sur. It is, therefore,
affected by multiple vulnerabilities including the following:

  - A memory corruption issue which could allow an application restricted memory read access (CVE-2021-1808).

  - A memory corruption issue which could allow an application to cause unexpected system termination or to 
    write kernel memory (CVE-2021-1828).

  - An out-of-bounds wirte issue which could allow a malicious application to execute arbitrary code with 
    kernel privileges (CVE-2021-1834).

Note that Nessus has not tested for this issue but has instead relied only on the operating system's self-reported
version number.");
  script_set_attribute(attribute:"see_also", value:"https://support.apple.com/en-us/HT212325");
  script_set_attribute(attribute:"solution", value:
"Upgrade to macOS 11.3 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-2021-30655");

  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:'macOS Gatekeeper check bypass');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/04/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/04/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/04/28");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:apple:mac_os_x");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:apple:macos");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

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

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

  script_dependencies("ssh_get_info.nasl");
  script_require_ports("Host/MacOSX/Version", "Host/local_checks_enabled", "Host/MacOSX/packages/boms");

  exit(0);
}

include('vcf.inc');
include('vcf_extras_apple.inc');

var app_info = vcf::apple::macos::get_app_info();
var constraints = [{ 'min_version' : '11.0', 'fixed_version' : '11.3', 'fixed_display' : 'macOS Big Sur 11.3' }];

vcf::apple::macos::check_version_and_report(
  app_info:app_info, 
  constraints:constraints, 
  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/macos_HT212325.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\macos_HT212325.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/macos_HT212325.nasl

Go back to menu.

How to Run


Here is how to run the macOS 11.x < 11.3 (HT212325) 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 11.x < 11.3 (HT212325) plugin ID 149041.
  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_HT212325.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2021-A-0202-S
APPLE-SA | Apple Security Advisory:
  • HT212325, 2021-04-26-2
See also: Similar and related Nessus plugins:
  • 144497 - Debian DLA-2500-1 : curl security update
  • 144500 - Fedora 32 : curl (2020-7ab62c73bc)
  • 144598 - GLSA-202012-14 : cURL: Multiple vulnerabilities
  • 144667 - EulerOS 2.0 SP9 : curl (EulerOS-SA-2021-1022)
  • 144670 - EulerOS 2.0 SP9 : curl (EulerOS-SA-2021-1003)
  • 145210 - EulerOS 2.0 SP3 : curl (EulerOS-SA-2021-1063)
  • 145279 - openSUSE Security Update : curl (openSUSE-2020-2249)
  • 145754 - EulerOS 2.0 SP8 : curl (EulerOS-SA-2021-1137)
  • 146647 - EulerOS 2.0 SP2 : curl (EulerOS-SA-2021-1287)
  • 147112 - EulerOS Virtualization for ARM 64 3.0.6.0 : curl (EulerOS-SA-2021-1548)
  • 147470 - EulerOS Virtualization 2.9.1 : curl (EulerOS-SA-2021-1596)
  • 147531 - EulerOS Virtualization 3.0.2.6 : curl (EulerOS-SA-2021-1410)
  • 147561 - EulerOS Virtualization 3.0.6.6 : curl (EulerOS-SA-2021-1466)
  • 147600 - EulerOS Virtualization for ARM 64 3.0.2.0 : curl (EulerOS-SA-2021-1399)
  • 147702 - EulerOS Virtualization 2.9.0 : curl (EulerOS-SA-2021-1645)
  • 148043 - EulerOS 2.0 SP5 : curl (EulerOS-SA-2021-1672)
  • 148277 - Debian DSA-4881-1 : curl - security update
  • 149042 - macOS 10.15.x < 10.15.7 Security Update 2021-002 Catalina (HT212326)
  • 149043 - macOS 10.14.x < 10.14.6 Security Update 2021-003 Mojave (HT212327)
  • 149061 - Apple iOS < 14.5 Multiple Vulnerabilities (HT212317)
  • 149331 - Apple iOS < 12.5.3 Multiple Vulnerabilities (HT212341)
  • 149676 - RHEL 8 : curl (RHSA-2021:1610)
  • 149767 - CentOS 8 : curl (CESA-2021:1610)
  • 149932 - Oracle Linux 8 : curl (ELSA-2021-1610)
  • 149984 - macOS 10.15.x < 10.15.7 Security Update 2021-002 Catalina (HT212530)
  • 149985 - macOS 10.14.x < 10.14.6 Security Update 2021-004 Mojave (HT212531)
  • 150083 - SUSE SLES12 Security Update : curl (SUSE-SU-2021:1786-1)
  • 150636 - SUSE SLES11 Security Update : curl (SUSE-SU-2020:14585-1)
  • 150852 - RHEL 7 / 8 : Red Hat JBoss Core Services Apache HTTP Server 2.4.37 SP8 (RHSA-2021:2472)
  • 151421 - EulerOS Virtualization 3.0.2.2 : curl (EulerOS-SA-2021-2132)
  • 151626 - Juniper Junos OS Multiple Vulnerabilities (JSA11207)
  • 152237 - Amazon Linux 2 : curl (ALAS-2021-1693)
  • 154679 - F5 Networks BIG-IP : cURL vulnerability (K15402727)
  • 154693 - F5 Networks BIG-IP : cURL vulnerability (K61186963)

Version


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

Go back to menu.