Product Feed Manager for WooCommerce CTX Feed Support 220+ Shopping, плагин AI & Social Channels для WordPress уязвим для PHP Code Injection во всех версиях вплоть до 8.0.26. Это связано с недостаточной санацией параметра feedConfigCustom2 — только wp_unslash() применяется до того, как значение хранится дословно через update_option(), и во время генерации потока данных метод Custom2Template::evaluate_return() передает сохраненные выражения шаблона (return...) непосредственно в функцию PHP eval() без какой-либо санации на уровне кода. Это позволяет аутентифицированным злоумышленникам с доступом Shop Manager-level и выше вводить и выполнять произвольный код PHP на сервере, увеличивая их привилегии сверх того, что обычно позволяет выполнять удаленный код и захват сайта.
Опция ctxfeed_custom2_eval_enabled по умолчанию используется для true, что означает, что для использования этого пути атаки из коробки не требуется дополнительная настройка администратора.
Показать оригинальное описание (EN)
The Product Feed Manager for WooCommerce – CTX Feed – Support 220+ Shopping, AI & Social Channels plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 8.0.26. This is due to insufficient sanitization of the `feedConfigCustom2` parameter — only `wp_unslash()` is applied before the value is stored verbatim via `update_option()`, and during feed generation the `Custom2Template::evaluate_return()` method passes the stored `{(return ...)}` template expressions directly to PHP's `eval()` function without any code-level sanitization. This makes it possible for authenticated attackers, with Shop Manager-level access and above, to inject and execute arbitrary PHP code on the server, escalating their privileges beyond what the role normally permits to full remote code execution and site takeover. The `ctxfeed_custom2_eval_enabled` option defaults to `true`, meaning no additional administrator configuration is required for this attack path to be exploitable out of the box.
Характеристики атаки
Последствия
Строка CVSS v3.1