Плагин WCPOS — точка продаж (POS) для плагина WooCommerce для WordPress уязвим к внедрению кода через «термальный» механизм шаблонов во всех версиях до 1.9.14 включительно из-за того, что Receipt_Renderer_Factory отправляет шаблоны с «термальным» движком в Legacy_Php_Renderer вместо безопасного термического средства рендеринга. Это позволяет аутентифицированным злоумышленникам с доступом уровня Shop Manager и выше вставлять произвольный код PHP в сообщение шаблона, которое впоследствии записывается во временный файл и выполняется с помощью PHP include(), что приводит к удаленному выполнению кода на сервере. Для этого злоумышленнику необходим доступ на уровне Shop Manager или выше, поскольку путь сохранения шаблона требует наличия nonce wcpos_template_settings и проверки возможности Manage_woocommerce_pos.
Показать оригинальное описание (EN)
The WCPOS – Point of Sale (POS) plugin for WooCommerce plugin for WordPress is vulnerable to Code Injection via the 'thermal' Template Engine in all versions up to, and including, 1.9.14 due to the Receipt_Renderer_Factory dispatching templates with the 'thermal' engine to the Legacy_Php_Renderer instead of a safe thermal-specific renderer. This makes it possible for authenticated attackers, with Shop Manager-level access and above, to inject arbitrary PHP code into a template post that is subsequently written to a temporary file and executed via PHP's include(), resulting in remote code execution on the server. This requires the attacker to have Shop Manager-level access or above, as the template save path enforces a wcpos_template_settings nonce and the manage_woocommerce_pos capability check.
Характеристики атаки
Последствия
Строка CVSS v3.1