- Advisory ID: DRUPAL-SA-CONTRIB-2016-042
- Project: Google Analytics (third-party module)
- Version: 7.x, 8.x
- Date: 2016-August-10
- Security risk: 13/25 ( Moderately Critical) AC:None/A:Admin/CI:Some/II:Some/E:Theoretical/TD:Uncommon
- Vulnerability: Cross Site Scripting
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
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:
Also see the Google Analytics project page.
Reported by
- Michael Hess of the Drupal Security Team
Fixed by
- Lee Rowlands of the Drupal Security Team
- Alexander Hass the module maintainer
Coordinated by
- Michael Hess of the Drupal Security Team
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