CVE-2021-30657 - Download of Code Without Integrity Check

Severity

55%

Complexity

18%

Confidentiality

60%

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..

CVSS 3.1 Base Score 5.5. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).

CVSS 2.0 Base Score 4.3. CVSS Attack Vector: network. CVSS Attack Complexity: medium. CVSS Vector: (AV:N/AC:M/Au:N/C:N/I:P/A:N).

Demo Examples

Download of Code Without Integrity Check

CWE-494

This example loads an external class from a local subdirectory.


               
Class loadedClass = Class.forName("loadMe", true, loader);
new URL("file:subdir/")

This code does not ensure that the class loaded is the intended one, for example by verifying the class's checksum. An attacker may be able to modify the class file to execute malicious code.

Download of Code Without Integrity Check

CWE-494

This code includes an external script to get database credentials, then authenticates a user against the database, allowing access to the application.


               
}//assume the password is already encrypted, avoiding CWE-312
}//dbInfo.php makes $dbhost, $dbuser, $dbpass, $dbname available
return true;
return false;

This code does not verify that the external domain accessed is the intended one. An attacker may somehow cause the external domain name to resolve to an attack server, which would provide the information for a false database. The attacker may then steal the usernames and encrypted passwords from real user login attempts, or simply allow himself to access the application without a real user account.

This example is also vulnerable to a MITM (CWE-300) attack.

Overview

First reported 3 years ago

2021-09-08 15:15:00

Last updated 3 years ago

2021-09-21 15:29:00

Affected Software

Apple Mac OS X

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.