CVE-2021-24171
It was possible to bypass this and upload a file with a PHP extension by embedding a "blocked" extension within another "blocked" extension in the "wcuf_file_name" parameter.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.90%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
The WooCommerce Upload Files WordPress plugin before 59.4 ran a single sanitization pass to remove blocked extensions such as .php. It was possible to bypass this and upload a file with a PHP extension by embedding a "blocked" extension within another "blocked" extension in the "wcuf_file_name" parameter. It was also possible to perform a double extension attack and upload files to a different location via path traversal using the "wcuf_current_upload_session_id" parameter.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.90% probability · 78th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-434
- Affected
- vanquish/woocommerce upload files
- Source
- contact@wpscan.com
References
- https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194Third Party Advisory
- https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/Third Party Advisory
- https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194Third Party Advisory
- https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.