[Security-news] Bootstrap - Moderately critical - Cross site scripting - SA-CONTRIB-2018-074

security-news at drupal.org security-news at drupal.org
Wed Nov 28 18:57:06 UTC 2018


View online: https://www.drupal.org/sa-contrib-2018-074

Project: Bootstrap [1]
Version: 7.x-3.228.x-3.14
Date: 2018-November-28
Security risk: *Moderately critical* 11∕25
AC:Complex/A:User/CI:Some/II:Some/E:Theoretical/TD:Uncommon [2]
Vulnerability: Cross site scripting

Description: 
This base theme bridges the gap between Drupal and the Bootstrap Framework.

The theme doesn't sufficiently filter valid targets under the scenario of
opening modals, popovers, and tooltips.

This vulnerability is mitigated by the fact that an attacker must already
have the ability to either:

   1) Edit/save custom content that supplies a value for the data-target
      attribute by injecting malicious code.
   2) Inject custom markup onto the page that further exploits the data-target
      attribute by injecting malicious code. This method of attack is highly
      unlikely if they already have this level of access.

Note: while the base-theme does not provide either of these opportunities to
do this out-of-the-box; a custom sub-theme may, however, be susceptible if it
didn't sanitize or filter user provided input for XSS properly.

Solution: 
Install the latest version *and* take additional manual steps (see below).

   * If you use the Drupal Bootstrap base-theme for Drupal 7.x, upgrade to
     7.x-3.22 [3]
   * If you use the Drupal Bootstrap base-theme for Drupal 8.x, upgrade to
     8.x-3.14 [4]

*Extra Note:*

The vulnerability fixed in the Bootstrap theme releases on Drupal.org is a
by-product from forking parts of the external framework's JavaScript code.
The external framework's vulnerability was first reported in a public issue
[5] and later a fix for this vulnerability was merged [6] into the external
framework, however an official release of the external framework has yet to
be made.

Users of this theme should take two additional steps:

   1) Follow this external framework issue [7] for further information and to
      keep up-to-date on when you need to upgrade your sub-theme's external
      framework source. You may consider using the distributed files from the
      temporary branch master-xmr-v3-fixes [8] until an official release is
      made.
   2) Review any custom code on your site that might have copied from the
      external framework's vulnerable code.

Also see the Bootstrap [9] project page.

Reported By: 
   * Gomez_in_the_South  [10]

Fixed By: 
   * Mark Carver  [11]

Coordinated By: 
   * Greg Knaddison [12] of the Drupal Security Team
   * Samuel Mortenson
     of the Drupal Security Team


[1] https://www.drupal.org/project/bootstrap
[2] https://www.drupal.org/security-team/risk-levels
[3] https://www.drupal.org/project/bootstrap/releases/7.x-3.22
[4] https://www.drupal.org/project/bootstrap/releases/8.x-3.14
[5] https://github.com/twbs/bootstrap/issues/20184
[6] https://github.com/twbs/bootstrap/issues/20184#ref-pullrequest-253002925
[7] https://github.com/twbs/bootstrap/issues/25679
[8] https://github.com/twbs/bootstrap/tree/master-xmr-v3-fixes
[9] https://www.drupal.org/project/bootstrap
[10] https://www.drupal.org/user/153735
[11] https://www.drupal.org/user/501638
[12] https://www.drupal.org/u/greggles



More information about the Security-news mailing list