Researchers from Wordfence team discovered a vulnerability, tracked as CVE-2021-34639, affecting the WordPress Download Manager plugin that could allow attackers to execute arbitrary code under specific configurations.
The flaw could allow authors and other users with the upload_files capability to upload files with php4 extensions as well as other potentially executable files.
“Prior to our findings, the WordPress Download Manager plugin patched a vulnerability allowing authors and other users with the upload_files capability to upload files with php4 extensions as well as other potentially executable files. While the patch in question was sufficient to protect many configurations, it only checked the very last file extension, so it was still possible to perform a “double extension” attack by uploading a file with multiple extensions.” reads the analysis published by Wordfence. “For instance, it was possible to upload a file titled info.php.png. This file would be executable on certain Apache/mod_php configurations that use an AddHandler or AddType directive.”
The plugin was vulnerable to a double extension attack, that could occur when attackers submit a file with multiple extensions in order to get it being executed.
Experts pointed out that although the CVSS score of this vulnerability is 7.5 (High), its exploitation is not simple because in a real attack scenario the use of an .htaccess file in the downloads directory making it difficult to execute uploaded files.
The flaw impacts versions of WordPress Download Manager prior to 3.1.24. The development team behind the plugin addressed the vulnerability in May.
The development team also addressed a directory traversal issue, tracked as CVE-2021-34638 (CVSS score of 6.5) that could allow a low privileged user (i.e. a contributor) to retrieve the contents of a site’s wp-config.php file by adding a new download and carrying out a directory traversal attack using the file[page_template] parameter.
(SecurityAffairs – hacking, WordPress Download Manager plugin )