Autoptimize <= 2.7.7 - Arbitrary File Upload (and Remote Code Execution) via Import Settings

9.8
Unrestricted Upload of File with Dangerous Type
CVE CVE-2021-24376
CVSS 9.8 (Critical)
Publicly Published October 9, 2020
Last Updated January 19, 2023
Researcher Marcin Węgłowski

Description

The Autoptimize WordPress plugin before 2.7.8 attempts to delete malicious files (such as .php) form the uploaded archive via the "Import Settings" feature, after its extraction. However, the extracted folders are not checked and it is possible to upload a zip which contained a directory with PHP file in it and then it is not removed from the disk. It is a bypass of CVE-2020-24948 which allows sending a PHP file via the "Import Settings" functionality to achieve Remote Code Execution.

References

Share

Vulnerability Details for Autoptimize

Software Type Plugin
Software Slug autoptimize (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.7.8, or a newer patched version
Affected Version
  • < 2.7.8
Patched Version
  • 2.7.8

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

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