Vanquish Upload Files for WooCommerce 2.7.13以下 - vanupfi_file_nameパラメータを介した認証不要の任意ファイル読み取り
元情報の公開:2026/11/07 03:19 / 元情報の更新:2026/11/21 07:04(日本時間)
日本語訳
WordPress用プラグイン「Vanquish Upload Files for WooCommerce」は、2.7.13以下のすべてのバージョンで、vanupfi_file_nameパラメータを介したディレクトリトラバーサルの脆弱性があります。購読者以上の権限を持つ認証済みの攻撃者が、機密情報を含む可能性のあるサーバー上の任意のファイルの内容を読み取れます。
認可の回避は、存在しない注文ID(.pdfなど)を指定することで実現します。これによりwc_get_order()がfalseを返し、vanupfi_user_can_access_order_files()チェックが短絡されます。一方、is_pdf()の分岐選択におけるstrpos()の緩い部分文字列一致により、../.pdf/../../../../wp-config.phpのようなトラバーサルのペイロードがPDF分岐の条件を満たし、readfile()を通じてそのままストリーム出力されます。
原文(英語)
Vanquish Upload Files for WooCommerce <= 2.7.13 - Unauthenticated Arbitrary File Read via 'vanupfi_file_name' Parameter
The Vanquish Upload Files for WooCommerce plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 2.7.13 via the 'vanupfi_file_name' parameter parameter. This makes it possible for authenticated attackers, with subscriber-level access and above, to read the contents of arbitrary files on the server, which can contain sensitive information. The authorization bypass is achieved by supplying a non-existent order ID (e.g., '.pdf'), which causes wc_get_order() to return false and short-circuits the vanupfi_user_can_access_order_files() check, while the is_pdf() branch selector's loose strpos() substring match allows a traversal payload such as '../.pdf/../../../../wp-config.php' to satisfy the PDF branch and be streamed verbatim via readfile().
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。