SB2021111916 - Arbitrary file upload in WordPress Popular Posts plugin
Published: November 19, 2021
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Arbitrary file upload (CVE-ID: CVE-2021-42362)
CWE-ID: CWE-434 - Unrestricted Upload of File with Dangerous Type
CVSSv4: 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
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.
Remediation
Install update from vendor's website.
References
- 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/