Google Analytics – Moderately Critical – Cross Site Scripting – SA-CONTRIB-2016-042

Description

This module enables you to add integration with Google Analytics statistics service.
The module allows admin users to enter custom JavaScript snippets to add advanced tracking functionality. The permission required to enter this JavaScript was not marked as restricted.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission “Administer Google Analytics”.

For greater flexibility a new feature has been added to the module to implement the new permission “Add JavaScript snippets” that can be assigned to users who are allowed to add JS code snippets into your web site.

If you have granted the Administer Google Analytics to non trusted users, please check your settings to make sure all javascript entered is valid.

CVE identifier(s) issued

  • A CVE identifier will be requested, and added upon issuance, in accordance with Drupal Security Team processes.

Versions affected

  • Google Analytics 7.x-2.x versions prior to 7.x-2.3.
  • Google Analytics 8.x-2.x versions prior to 8.x-2.1.
  • Drupal core is not affected. If you do not use the contributed Google Analytics module, there is nothing you need to do.

    Solution

    Install the latest version:

  • If you use the Google Analytics module for Drupal 7.x, upgrade to Google Analytics 7.x-2.3
  • If you use the Google Analytics module for Drupal 8.x, upgrade to Google Analytics 8.x-2.1
  • Also see the Google Analytics project page.

    Reported by

    Fixed by

    Coordinated by

    Contact and More Information

    The Drupal security team can be reached at security at drupal.org or via the contact form at https://www.drupal.org/contact.

    Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.

    Follow the Drupal Security Team on Twitter at https://twitter.com/drupalsecurity

    Drupal version: 

    Leave a Reply