WebToffee WooCommerce Product Feeds <= 2.4.4 - 認証済み(管理者以上)'cron_id' パラメータによるパストラバーサルで任意のファイル書き込み
元情報の公開:2026-12-01 20:48:04 / 更新:2026-12-02 09:28:23(UTC)
日本語訳
WordPress 用プラグイン「WebToffee WooCommerce Product Feeds – Google Shopping, Pinterest, TikTok Ads, & More」は、`duplicate_feed()` 関数の `cron_id` パラメータを介したパストラバーサル脆弱性が、バージョン 2.4.4 まで(含む)すべてのバージョンに存在します。この脆弱性は、`duplicate_feed()` が新しい履歴行の `file_name` を、ソース行のシリアライズされた `form_data` に保存されている `item_filename` と `wt_pf_file_as` の値を単純に連結して構築することに起因します。この連結処理では `sanitize_text_field()` のみが適用されており、`/` と `.` 文字は除去されませんが、`sanitize_file_name()` が呼び出されていません。その結果、汚染されたファイル名が `create_history_entry()` によってそのまま保存され、`process_action()` で再読み込みされた際に追加のサニタイズが行われず、`get_file_path()` がエクスポート基底ディレクトリに対して連結する際に `realpath()` 正規化やディレクトリジャイルチェックが行われません。これにより、管理者レベル以上の認証済み攻撃者は、プラグインの `uploads/webtoffee_product_feed/` エクスポートディレクトリからトラバーサル可能な、Web プロセスが書き込み可能な任意のパスへフィードエクスポートの出力を書き込むことが可能になります。また、ファイル拡張子は `wt_pf_file_as` で制御できるため、Web からアクセス可能な場所に PHP ファイルを配置し、リモートコード実行を達成できます。攻撃の実行には、正当なショップマネージャまたは管理者のノンスを使用した 3 つの認証済み AJAX リクエストが必要です。具体的には、トラバーサル文字列を `form_data` に植え付けるためのシードエクスポート POST、汚染された `file_name` を新しい履歴行に伝搬させる `pf_feed_duplicate` 呼び出し、そして解決されたトラバーサルパスで `file_put_contents` をトリガーする書き出しエクスポート呼び出しです。
原文(英語)
WebToffee WooCommerce Product Feeds <= 2.4.4 - Authenticated (Administrator+) Path Traversal to Arbitrary File Write via 'cron_id' Parameter
The WebToffee WooCommerce Product Feeds – Google Shopping, Pinterest, TikTok Ads, & More plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 2.4.4 via the `cron_id` parameter of the `duplicate_feed()` function. The vulnerability exists because `duplicate_feed()` builds a new history row's `file_name` by concatenating the `item_filename` and `wt_pf_file_as` values previously persisted in a source row's serialized `form_data` — where only `sanitize_text_field()` was applied, a filter that preserves `/` and `.` characters — without calling `sanitize_file_name()`; that tainted name is then stored verbatim by `create_history_entry()`, reloaded by `process_action()` with no further sanitization, and concatenated onto the export base directory by `get_file_path()` with no `realpath()` normalization or directory-jail check. This makes it possible for authenticated attackers, with administrator-level access and above, to write the feed exporter's output to any web-process-writable path reachable by traversal from the plugin's `uploads/webtoffee_product_feed/` export directory — and, because the file extension is controlled through `wt_pf_file_as`, to drop PHP files at web-accessible locations and achieve remote code execution. Exploitation requires three authenticated AJAX requests using a valid Shop Manager or Administrator nonce: a seed export POST to plant the traversal sequences in `form_data`, a `pf_feed_duplicate` call to propagate the unsanitized `file_name` into a new history row, and a subsequent write-export call to trigger `file_put_contents` at the resolved traversal path.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。