Warehouse Cargo 2.7.4以下 - plugin_details[plugin_url]パラメータを介した認証済みの購読者以上による任意ファイルアップロード
元情報の公開:2026/11/26 11:43 / 元情報の更新:2026/11/27 00:47(日本時間)
日本語訳
WordPressテーマ「Warehouse Cargo」は、2.7.4以下のバージョンで、warehouse_cargo_install_and_activate_plugin() AJAXハンドラーを介した任意ファイルアップロードの脆弱性があります。
このハンドラーはwp_ajax_に登録されていますが、nonce検証も権限チェックも行いません。そのため、認証済みユーザーなら誰でも、攻撃者が制御するURLを指定できます。サーバーはそのURLから取得した内容をfile_put_contents()でwp-content/plugins/へ書き込み、ファイル拡張子を制限しないunzip_file()で展開し、activate_plugin()で有効化します。
購読者以上の権限を持つ認証済みの攻撃者が、対象サイトのサーバーへ任意のファイルをアップロードし、リモートコードを実行できます。
原文(英語)
Warehouse Cargo <= 2.7.4 - Authenticated (Subscriber+) Arbitrary File Upload via 'plugin_details[plugin_url]' Parameter
The Warehouse Cargo theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 2.7.4 via the warehouse_cargo_install_and_activate_plugin() AJAX handler. The handler is registered on wp_ajax_ but performs no nonce verification and no capability check, allowing any authenticated user to supply an attacker-controlled URL that the server fetches, writes into wp-content/plugins/ with file_put_contents(), extracts with unzip_file() (which does not filter file extensions), and then activates via activate_plugin(). This makes it possible for authenticated attackers, with Subscriber-level access and above, to upload arbitrary files on the affected site's server which makes remote code execution possible.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「外観」→「テーマ」で、対象テーマの「テーマの詳細」を開き、バージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。