Product Feed Manager for WooCommerce 8.0.26以下 - 'feedConfigCustom2'パラメーターのeval()を介した認証済み(ショップマネージャー以上)のPHPコードインジェクション
元情報の公開:2026/11/05 09:00 / 元情報の更新:2026/11/06 18:38(日本時間)
日本語訳
WordPress用プラグイン「Product Feed Manager for WooCommerce – CTX Feed – Support 220+ Shopping, AI & Social Channels」の8.0.26以下のすべてのバージョンには、PHPコードインジェクションの脆弱性があります。原因は、feedConfigCustom2パラメーターの無害化が不十分なことです。wp_unslash()だけを適用して値をupdate_option()でそのまま保存し、フィード生成時にCustom2Template::evaluate_return()メソッドが、保存された{(return ...)}テンプレート式を、コードレベルの無害化なしにPHPのeval()へ直接渡します。
これにより、ショップマネージャー以上の権限を持つ認証済みの攻撃者は、サーバー上で任意のPHPコードを挿入・実行し、通常そのロールに許される範囲を超えて権限を昇格させ、完全なリモートコード実行とサイトの乗っ取りを行えます。ctxfeed_custom2_eval_enabledオプションは既定でtrueなので、この攻撃経路は初期状態で悪用可能であり、管理者による追加設定は不要です。
原文(英語)
Product Feed Manager for WooCommerce <= 8.0.26 - Authenticated (Shop Manager+) PHP Code Injection via eval() via 'feedConfigCustom2' Parameter
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.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。