Bootstrap - Moderately critical - Cross site scripting - SA-CONTRIB-2018-074

Project: BootstrapVersion: 7.x-3.228.x-3.14Date: 2018-November-28Security risk: Moderately critical 11∕25 AC:Complex/A:User/CI:Some/II:Some/E:Theoretical/TD:UncommonVulnerability: Cross site scriptingDescription: 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
  • If you use the Drupal Bootstrap base-theme for Drupal 8.x, upgrade to 8.x-3.14

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 and later a fix for this vulnerability was merged 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 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 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 project page.Reported By: 

Fixed By: 

Coordinated By: 

Path to article https://www.drupal.org/sa-contrib-2018-074