Exploit database

Vulnerability

CVE-2021-30657

Vulnerability details

Score
5.5
Severity
medium

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Description

A logic issue was addressed with improved state management. This issue is fixed in macOS Big Sur 11.3, Security Update 2021-002 Catalina. A malicious application may bypass Gatekeeper checks. Apple is aware of a report that this issue may have been actively exploited..

CVE Program

Exploit source choices

4 sources
macOS Gatekeeper check bypass
MSF-osx--browser--osx_gatekeeper_bypassMetasploitOSX,Python,Unix / remotePreferred

This module exploits two CVEs that bypass Gatekeeper. For CVE-2021-30657, this module serves an OSX app (as a zip) that contains no Info.plist, which bypasses gatekeeper in macOS < 11.3. If the user visits the site on Safari, the zip file is automatically extracted, and clicking on the downloaded file will automatically launch the payload. If the user visits the site in another browser, the user must click once to unzip the app, and click again in order to execute the payload. For CVE-2022-22616, this module serves a gzip-compressed zip file with its file header pointing to the `Contents` directory which contains an OSX app. If the user downloads the file via Safari, Safari will automatically decompress the file, removing its `com.apple.quarantine` attribute. Because of this, the file will not require quarantining, bypassing Gatekeeper on MacOS versions below 12.3.

2021-03-25osx_gatekeeper_bypass.rb
cedowens/swift-attack
GH-6c70612533d3def6a3fc51cac883dd0aGitHubUnofficial GitHub source

Unit tests for blue teams to aid with building detections for some common macOS post exploitation methods.

2021-02-219 files · 106 stars
shubham0d/cve-2021-30657
GH-a3470168f28f9d866ccb5a9b0b3d669eGitHubUnofficial GitHub source

A sample POC for CVE-2021-30657 affecting MacOS

2021-11-074 files · 29 stars
shubham0d/cve-2021-30853
GH-2e413c737d81fbb49bc2349d01a59a2aGitHubUnofficial GitHub source

A sample POC to test CVE-2021-30853

2022-01-023 files · 2 stars