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.
References
Link | Resource |
---|---|
https://rastating.github.io/unrestricted-file-upload-via-plugin-uploader-in-wordpress/ | Third Party Advisory |
https://github.com/rastating/wordpress-exploit-framework/pull/52 | Third Party Advisory |
https://core.trac.wordpress.org/ticket/44710 | Third Party Advisory |
http://www.securityfocus.com/bid/105060 | Third Party Advisory VDB Entry |
Configurations
Information
Published : 2018-08-10 09:29
Updated : 2018-10-10 06:06
NVD link : CVE-2018-14028
Mitre link : CVE-2018-14028
JSON object : View
CWE
CWE-434
Unrestricted Upload of File with Dangerous Type
Products Affected
wordpress
- wordpress