9.8critical
Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 3.73% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- WPScan
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unknown Autoptimize | from 2.7.8 before 2.7.8 | CVE List |
| autoptimize autoptimize | before 2.7.8 | NVD |
All scores
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
El plugin Autoptimize de WordPress versiones anteriores a 2.7.8, intenta eliminar los archivos maliciosos (como los .php) del archivo subido por medio de la funcionalidad "Import Settings", después de su extracción. Sin embargo, las carpetas extraídas no era comprobadas y es posible subir un zip que contenga un directorio con un archivo PHP en él y que luego no se elimine del disco. Se trata de una omisión del CVE-2020-24948 que permite enviar un archivo PHP por medio de la funcionalidad "Import Settings" para lograr una ejecución de código remota
References
| https://wpscan.com/vulnerability/93edcc23-894a-46c2-84d2-407dcb64ba1e | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24376 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-24376 changed 2026-06-17 | Public domain |