Плагин Product Input Fields for WooCommerce для WordPress уязвим для произвольной загрузки файлов во всех версиях вплоть до 2.1.0 с помощью функции process_file_input_field. Это связано с отсутствием проверки типа файла в функции process_file_input_field, которая принимает клиентский многоэлементный заголовок Content-Type в качестве единственного типа и записывает загруженный файл в незащищенный каталог pif_temp, используя дословное имя файла, предоставленное клиентом. Это позволяет неаутентифицированным злоумышленникам загружать файлы, которые могут быть исполняемыми, что делает возможным удаленное выполнение кода.
Эксплуатация требует, чтобы администратор настроил по крайней мере один продукт с File-type Product Input Field с включенной опцией «Show миниатюра», что является стандартным использованием этой функции; кроме того, каталог загрузки pif_temp/ создается без ограничений .htaccess или index.php, оставляя записанные файлы непосредственно веб-доступными и исполняемыми на конфигурациях по умолчанию Apache/mod_php.
Показать оригинальное описание (EN)
The Product Input Fields for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.1.0 via the process_file_input_field function. This is due to missing file type validation in the process_file_input_field function, which accepts the client-supplied multipart Content-Type header as the sole type gate and writes the uploaded file to the unprotected pif_temp directory using the verbatim client-supplied filename. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. Exploitation requires that an administrator has configured at least one product with a File-type Product Input Field with the "Show thumbnail" option enabled, which is a standard use of the feature; additionally, the pif_temp/ upload directory is created without .htaccess or index.php restrictions, leaving written files directly web-accessible and executable on default Apache/mod_php configurations.
Характеристики атаки
Последствия
Строка CVSS v3.1