Download Manager <= 3.2.50 - Authenticated (Contributor+) Arbitrary File Deletion

8.8
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2022-2431
CVSS 8.8 (High)
Publicly Published July 27, 2022
Last Updated January 27, 2023
Researcher Chloe Chamberland - Wordfence

Description

The Download Manager plugin for WordPress is vulnerable to arbitrary file deletion in versions up to, and including 3.2.50. This is due to insufficient file type and path validation on the deleteFiles() function found in the ~/Admin/Menu/Packages.php file that triggers upon download post deletion. This makes it possible for contributor level users and above to supply an arbitrary file path via the 'file[files]' parameter when creating a download post and once the user deletes the post the supplied arbitrary file will be deleted. This can be used by attackers to delete the /wp-config.php file which will reset the installation and make it possible for an attacker to achieve remote code execution on the server.

References

Share

1 affected software package

Software Type Plugin
Software Slug download-manager (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.2.51, or a newer patched version
Affected Version
  • <= 3.2.50
Patched Version
  • 3.2.51

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation