WP-Optimize <= 4.5.2 - Authenticated (Author+) Arbitrary File Deletion via 'original-file' Post Meta
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the unscheduled_original_file_deletion function in all versions up to, and including, 4.5.2 This makes it possible for authenticated attackers, with author-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). This is possible because 'original-file' is a public (non-protected) meta key — it does not begin with an underscore — allowing Authors to freely create or modify it on their own attachment posts via the standard Edit Media form or the REST API.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- davidanderson WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
through 4.5.2
References 9
plugins.trac.wordpress.org
- browser/wp-optimize/trunk/includes/class-updraft-smush-manager.php#L1649
- browser/wp-optimize/tags/4.5.2/includes/class-updraft-smush-manager.php#L1649
- browser/wp-optimize/trunk/includes/class-updraft-smush-manager.php#L1645
- browser/wp-optimize/tags/4.5.2/includes/class-updraft-smush-manager.php#L1645
- browser/wp-optimize/trunk/includes/class-updraft-smush-manager.php#L81
- browser/wp-optimize/tags/4.5.2/includes/class-updraft-smush-manager.php#L81
- changeset/3518513/wp-optimize/trunk/includes/class-updraft-smush-manager.php
- changeset?old_path=%2Fwp-optimize/tags/4.5.2&new_path=%2Fwp-optimize/tags/4.5.3