Drupal Google Tag Manager Cross-Site Scripting Vulnerability
Vulnerability
A cross-site scripting (XSS) vulnerability has been identified in the Drupal Google Tag Manager module, affecting versions prior to 1.10.0. The issue arises because the module does not properly sanitize the Google Tag Manager container ID input from users with the 'Administer gtm' permission. This unsanitized input is directly inserted into a script tag, creating an XSS vulnerability. The issue is compounded by the fact that the input field allows up to 20 characters, providing enough space for malicious payloads.
Impact
Exploitation of this vulnerability allows for cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user's browser.
Remediation
Users are advised to upgrade to Google Tag Manager version 8.x-1.10, which includes necessary input validation to prevent such injections. Additionally, site administrators should review the roles assigned the 'Administer gtm' permission.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
