WP Duplicate 1.1.11以下 - handle_batch_upload_filesのfiles_dataパラメータを介した認証不要の任意ファイルアップロードによるリモートコード実行
元情報の公開:2026/11/19 05:54 / 元情報の更新:2026/11/19 18:32(日本時間)
日本語訳
WordPress用プラグイン「WP Duplicate – WordPress Migration Plugin」は、1.1.11以下のすべてのバージョンで、save_single_batch_file関数を介したリモートコード実行の脆弱性があります。is_string()による制限のない緩い!=比較を介したPHPの型変換による認証回避と、ディレクトリトラバーサルを範囲内に制限する処理が一切ないsave_single_batch_file()内で、サニタイズされていないbase64デコード済みのパスを構築する処理が組み合わさることが原因です。
カスタム権限以上を持つ認証済みの攻撃者が、サーバー上でコードを実行できます。悪用には、サイト所有者がプラグインの初期設定を完了し、site_typeとprod_key_random_idオプションが空でない必要があります。ただし、空でない秘密値であれば、どの値でも型変換の不具合によって回避できます。
原文(英語)
WP Duplicate <= 1.1.11 - Unauthenticated Arbitrary File Upload to Remote Code Execution via 'files_data' Parameter in handle_batch_upload_files
The WP Duplicate – WordPress Migration Plugin plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.1.11 via the save_single_batch_file function. This is due to a PHP type-juggling authentication bypass via loose != comparison with no is_string() guard, combined with unsanitized base64-decoded path construction in save_single_batch_file() lacking any directory traversal containment. This makes it possible for authenticated attackers, with custom-level access and above, to execute code on the server. Exploitation requires that the site owner has completed the plugin's initial setup so that the site_type and prod_key_random_id options are non-empty, though any non-empty secret value is bypassable via the type-juggling flaw.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
修正版が未確認の製品は、まず提供元の最新情報を確認してください。記事の取得時点より後に修正版が公開されている場合があります。
プラグインの代替を探す場合は、必要な機能と既存データの移行方法を確認してください。削除前にバックアップを確保し、代替製品の動作を検証してください。