Advisory Details

March 26th, 2019

Drupal File file_create_filename Persistent Cross-Site Scripting Vulnerability

ZDI-19-291
ZDI-CAN-7246

CVE ID CVE-2019-6341
CVSS SCORE 6.1, AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
AFFECTED VENDORS Drupal
AFFECTED PRODUCTS Drupal 8
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Drupal. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the handling of the filename parameter provided to the file.inc component. The issue results from the lack of proper validation of user-supplied data, which can lead to the injection of an arbitrary script. An attacker can leverage this in conjunction with other vulnerabilities to execute code in the context of the web server.

ADDITIONAL DETAILS Drupal has issued an update to correct this vulnerability. More details can be found at:
https://www.drupal.org/sa-core-2019-004
DISCLOSURE TIMELINE
  • 2018-09-19 - Vulnerability reported to vendor
  • 2019-03-26 - Coordinated public release of advisory
CREDIT Sam Thomas
BACK TO ADVISORIES