DRUPAL-CONTRIB-2019-033 This module addresses the General Data Protection Regulation (GDPR) that came into effect 25th May 2018, and the EU Directive on Privacy and

Not scored Published

An admin can inject scripts into cookie banner labels, potentially executing code or hijacking user sessions in Drupal sites.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is DRUPAL-CONTRIB-2019-033?

DRUPAL-CONTRIB-2019-033 is a cross-site scripting vulnerability in drupal/eu_cookie_compliance, published on 6 Mar 2019. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

This module addresses the General Data Protection Regulation (GDPR) that came into effect 25th May 2018, and the EU Directive on Privacy and Electronic Communications from 2012. It provides a banner where you can gather consent from the user when the website stores cookies on their computer or otherwise handles their personal information.

The module doesn't sufficiently sanitize data for some interface labels and strings shown in the cookie policy banner, opening up possibility of Cross Site Scripting exploits that can be created by somebody that has access to the admin interface of the module.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission "Administer EU Cookie Compliance banner". For Drupal 8, the vulnerability also requires access to a text format that doesn't sanitize data.

Which versions are affected by DRUPAL-CONTRIB-2019-033?

Linux distribution packages (1)
drupal/eu_cookie_compliance Packagist:https://packages.drupal.org/8All versions1.3.0

How do I fix DRUPAL-CONTRIB-2019-033?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is DRUPAL-CONTRIB-2019-033 being exploited?

There is no known exploitation of DRUPAL-CONTRIB-2019-033 in the wild and no public exploit code.

Sources

Is DRUPAL-CONTRIB-2019-033 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free