Плагин форм Database for Contact Form 7, WPforms, Elementor для WordPress уязвим для произвольной загрузки файлов во всех версиях вплоть до 1.5.5 с помощью функции copy_files. Это связано с отсутствием проверки расширения файла в функции copy_files, которая принимает управляемую злоумышленником обертку потока URIs в качестве источника файла и выводит имя файла назначения без ограничения исполняемых расширений. Это позволяет неаутентифицированным злоумышленникам загружать файлы, которые могут быть исполняемыми, что делает возможным удаленное выполнение кода.
Плагин помещает файл .htaccess в свой каталог загрузок, чтобы заблокировать выполнение PHP, но это смягчение неэффективно на Nginx, LiteSpeed в определенных конфигурациях и серверах Apache с AllowOverride None, и файл не восстанавливается при удалении.
Показать оригинальное описание (EN)
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 1.5.5 via the copy_files function. This is due to missing file extension validation in the copy_files function, which accepts attacker-controlled stream wrapper URIs as the file source and derives the destination filename without restricting executable extensions. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. The plugin places an .htaccess file in its uploads directory to block PHP execution, but this mitigation is ineffective on Nginx, LiteSpeed in certain configurations, and Apache servers with AllowOverride None, and the file is not restored if deleted.
Характеристики атаки
Последствия
Строка CVSS v3.1