Product Input Fields for WooCommerce 2.1.0以下 - カートのファイルアップロードフィールドを介した認証不要の任意ファイルアップロード
元情報の公開:2026/11/25 09:00 / 元情報の更新:2026/11/26 23:36(日本時間)
日本語訳
WordPress用プラグイン「Product Input Fields for WooCommerce」は、2.1.0以下のすべてのバージョンで、process_file_input_field関数を介した任意ファイルアップロードの脆弱性があります。process_file_input_field関数にファイル形式の検証がなく、クライアントが指定するmultipartのContent-Typeヘッダーだけで形式を判定し、クライアント指定のファイル名をそのまま使って、保護されていないpif_tempディレクトリへアップロードファイルを書き込むことが原因です。認証されていない攻撃者が実行可能なファイルをアップロードできる可能性があり、リモートコード実行が可能になります。
悪用には、管理者が少なくとも1つの商品にFile型のProduct Input Fieldを設定し、「Show thumbnail」オプションを有効にしている必要があります。これは、この機能の標準的な使用方法です。さらに、pif_temp/アップロードディレクトリは.htaccessやindex.phpによる制限なしで作成されるため、書き込まれたファイルはウェブから直接アクセスでき、デフォルトのApache/mod_php構成では実行可能です。
原文(英語)
Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Arbitrary File Upload via Cart File Upload Field
The Product Input Fields for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.1.0 via the process_file_input_field function. This is due to missing file type validation in the process_file_input_field function, which accepts the client-supplied multipart Content-Type header as the sole type gate and writes the uploaded file to the unprotected pif_temp directory using the verbatim client-supplied filename. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. Exploitation requires that an administrator has configured at least one product with a File-type Product Input Field with the "Show thumbnail" option enabled, which is a standard use of the feature; additionally, the pif_temp/ upload directory is created without .htaccess or index.php restrictions, leaving written files directly web-accessible and executable on default Apache/mod_php configurations.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。