github.com
https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/2019-12-18-2.yaml GHSA-58XV-7H9R-MX3C
Drupal Malicious file upload with filenames stating with dot
Description
Drupal 8 core's file_save_upload() function does not strip the leading and trailing dot ('.') from filenames, like Drupal 7 did. Users with the ability to upload files with any extension in conjunction with contributed modules may be able to use this to upload system files such as .htaccess in order to bypass protections afforded by Drupal's default .htaccess file. After this fix, file_save_upload() now trims leading and trailing dots from filenames.
Description source: GitHub Advisory
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
drupal/drupalBrowse Packagist / drupal/drupal | GitHub Advisory | 8.0.0 to < 8.7.11 · Fixed in 8.7.11 | affected |
| 8.8.0 to < 8.8.1 · Fixed in 8.8.1 | affected |
References
3github.com
https://github.com/drupal/drupal drupal.org
https://www.drupal.org/sa-core-2019-010