CVE-2019-14845 - Download of Code Without Integrity Check

Severity

53%

Complexity

16%

Confidentiality

60%

A vulnerability was found in OpenShift builds, versions 4.1 up to 4.3. Builds that extract source from a container image, bypass the TLS hostname verification. An attacker can take advantage of this flaw by launching a man-in-the-middle attack and injecting malicious content.

A vulnerability was found in OpenShift builds, versions 4.1 up to 4.3. Builds that extract source from a container image, bypass the TLS hostname verification. An attacker can take advantage of this flaw by launching a man-in-the-middle attack and injecting malicious content.

CVSS 3.1 Base Score 5.3. CVSS Attack Vector: adjacent_network. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

CVSS 2.0 Base Score 2.9. CVSS Attack Vector: adjacent_network. CVSS Attack Complexity: medium. CVSS Vector: (AV:A/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 5 years ago

2019-10-08 19:15:00

Last updated 5 years ago

2019-12-11 13:15:00

Affected Software

Red Hat OpenShift

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.