Description
In WordPress 4.9.7, plugins uploaded via the admin area are not verified as being ZIP files. This allows for PHP files to be uploaded. Once a PHP file is uploaded, the plugin extraction fails, but the PHP file remains in a predictable wp-content/uploads location, allowing for an attacker to then execute the file. This represents a security risk in limited scenarios where an attacker (who does have the required capabilities for plugin uploads) cannot simply place arbitrary PHP code into a valid plugin ZIP file and upload that plugin, because a machine's wp-content/plugins directory permissions were set up to block all new plugins.
Remediation
References
Related Vulnerabilities
WordPress Plugin Stop User Enumeration User Enumeration (1.3.8)
WordPress Plugin spideranalyse Cross-Site Scripting (0.0.1)
WordPress Plugin WP?????? Cross-Site Scripting (1.3.9)
OpenSSL Cryptographic Issues Vulnerability (CVE-2015-4000)
WordPress Plugin WooCommerce-GloBee Payment Gateway Security Bypass (1.1.1)