{"id":"CVE-2021-24171","state":"PUBLISHED","title":"WooCommerce Upload Files < 59.4 - Unauthenticated Arbitrary File Upload","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.","publishedAt":"2021-04-05T18:27:44.000Z","updatedAt":"2024-08-03T19:21:18.699Z","severity":null,"assigner":"WPScan","products":["Unknown WooCommerce Upload Files"],"affected":[{"vendor":"Unknown","product":"WooCommerce Upload Files","versions":[{"version":"59.4","status":"affected","lessThan":"59.4","versionType":"custom"}]}],"references":["https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194","https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/"],"weaknesses":["CWE-434"],"ingestedAt":"2026-10-29T19:48:07.505Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/24xxx/CVE-2021-24171.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-24171","state":"PUBLISHED","datePublished":"2021-04-05T18:27:44.000Z","dateUpdated":"2024-08-03T19:21:18.699Z","assignerShortName":"WPScan","assignerOrgId":"1bfdd5d7-9bf6-4a53-96ea-42e2716d7a81","dateReserved":"2021-01-14T00:00:00.000Z"},"containers":{"cna":{"title":"WooCommerce Upload Files < 59.4 - Unauthenticated Arbitrary File Upload","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Unknown","product":"WooCommerce Upload Files","versions":[{"version":"59.4","status":"affected","lessThan":"59.4","versionType":"custom"}]}],"references":[{"url":"https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194","tags":["x_refsource_CONFIRM"]},{"url":"https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-434","description":"CWE-434 Unrestricted Upload of File with Dangerous Type","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"WPScan","dateUpdated":"2021-04-05T18:27:44.000Z","orgId":"1bfdd5d7-9bf6-4a53-96ea-42e2716d7a81"},"credits":[{"lang":"en","value":"Ramuel Gall"}],"source":{"discovery":"UNKNOWN"},"x_generator":"WPScan CVE Generator","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"contact@wpscan.com","ID":"CVE-2021-24171","STATE":"PUBLIC","TITLE":"WooCommerce Upload Files < 59.4 - Unauthenticated Arbitrary File Upload"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"WooCommerce Upload Files","version":{"version_data":[{"version_affected":"<","version_name":"59.4","version_value":"59.4"}]}}]},"vendor_name":"Unknown"}]}},"credit":[{"lang":"eng","value":"Ramuel Gall"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":"WPScan CVE Generator","problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-434 Unrestricted Upload of File with Dangerous Type"}]}]},"references":{"reference_data":[{"name":"https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194","refsource":"CONFIRM","url":"https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194"},{"name":"https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/","refsource":"MISC","url":"https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/"}]},"source":{"discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T19:21:18.699Z"}}]}}}