DRUPAL-CONTRIB-2023-019 This module provides social media share & follow buttons.

Not scored Published

Low-privilege users with block administration permissions can inject malicious scripts via AddToAny settings, leading to Cross-Site Scripting attacks.

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

What is DRUPAL-CONTRIB-2023-019?

DRUPAL-CONTRIB-2023-019 is a cross-site scripting vulnerability in drupal/addtoany, published on 31 May 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

This module provides social media share & follow buttons.

The module doesn't sufficiently restrict AddToAny block settings to users who have permission to administer AddToAny. This allows users with lower permission to configure malicious code leading to a Cross Site Scripting (XSS) vulnerability.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission "administer blocks".

Which versions are affected by DRUPAL-CONTRIB-2023-019?

Linux distribution packages (1)
drupal/addtoany Packagist:https://packages.drupal.org/8All versions1.21.0, 2.0.4

How do I fix DRUPAL-CONTRIB-2023-019?

Apply the vendor's patch.

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-2023-019 being exploited?

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

Sources

Is DRUPAL-CONTRIB-2023-019 in your software?

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

Check your SBOMs for free