Arbitrary file upload in WordPress Popular Posts - CVE-2021-42362
Published: November 19, 2021 / Updated: December 20, 2021
Vulnerability identifier: #VU58267
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Green
CVE-ID: CVE-2021-42362
CWE-ID: CWE-434
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vendor: Hector Cabrera
Affected software:
WordPress Popular Posts
WordPress Popular Posts
Detailed vulnerability description
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to insufficient validation of file during file upload in the ~/src/Image.php file. A remote authenticated attacker can upload a malicious file and execute it on the server.
How to mitigate CVE-2021-42362
Install update from vendor's website.
Sources
- https://www.wordfence.com/vulnerability-advisories/#CVE-2021-42362
- https://wpscan.com/vulnerability/bd4f157c-a3d7-4535-a587-0102ba4e3009
- https://plugins.trac.wordpress.org/changeset/2542638/wordpress-popular-posts/trunk/src/Image.php
- https://blog.nintechnet.com/improper-input-validation-fixed-in-wordpress-popular-posts-plugin/