CVE-2021-24376CWE-434

Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"

published June 21, 2021

CVSS
—
EPSS
4%
Percentile
89.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky exploit lets you upload an unfiltered zip file containing PHP scripts to WordPress without a hitch! 🚨 Think of it like a hotel that checks the contents of luggage but ignores what’s tucked away in sneaky corners. Just because the bellhop sees a suitcase doesn’t mean they’ll check what’s inside! This oversight could allow an attacker to snuggle a malicious PHP file right into your server, potentially leading to remote code execution. If they get control, they could manipulate your site or steal sensitive information, creating chaos without anyone the wiser!

Put simply

Think of it like a hotel that checks the contents of luggage but ignores what’s tucked away in sneaky corners. Just because the bellhop sees a suitcase doesn’t mean they’ll check what’s inside! The Autoptimize plugin's "Import Settings" feature fails to properly scan extracted directories, allowing PHP files to remain on the server after a zip upload. This bypasses an earlier vulnerability (CVE-2020-24948) designed to prevent exactly this sort of issue.

What to do

This oversight could allow an attacker to snuggle a malicious PHP file right into your server, potentially leading to remote code execution. If they get control, they could manipulate your site or steal sensitive information, creating chaos without anyone the wiser! Update the Autoptimize plugin to version 2.7.8 or later immediately to close this gap. Additionally, review your upload policies to ensure rigorous checks are in place for file types and extensions. Regular audits will help maintain security! You've got this! Follow these steps to keep your site safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.03727 · 89.8th percentile
Weakness
CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2021-06-21T19:18Z
EPSS history
Timeline
  • 21 JUN 19:18Z
    Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"
    cvelistv5