CVE-2021-24377

Autoptimize <= 2.7.7 - Race Condition leading to Remote Code Execution

2020-10-09 00:00
Marcin Węgłowski

Strategic Overview

Status
Patched in 2.7.8
Affected Plugin
Autoptimize
Affected Version
< 2.7.8
CVSS
8.1High
Weakness type
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CVE
CVE-2021-24377
View all Autoptimize vulnerabilities

At a glance

CVE-2021-24377 is a high-severity Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') vulnerability in the Autoptimize WordPress plugin, affecting versions < 2.7.8. It carries a CVSS score of 8.1 (reachable over the network; high confidentiality, integrity, availability impact). Exploitation requires no authentication. The issue is fixed in version 2.7.8; sites on affected versions should update now. Disclosed October 2020, reported by Marcin Węgłowski.

Vulnerability Overview

The Autoptimize WordPress plugin before 2.7.8 attempts to remove potential malicious files from the extracted archive uploaded via the 'Import Settings' feature, however this is not sufficient to protect against RCE as a race condition can be achieved in between the moment the file is extracted on the disk but not yet removed. It is a bypass of CVE-2020-24948.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.

CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.

Remediation

Update to version 2.7.8, or a newer patched version

How does WordSec protect against this?

The fix is the thing that ends this: Autoptimize 2.7.8 closes this, and updating the plugin is the step that ends it.

  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C