Printcart Store 2.13.2以下 - nbu_crop_imageの'url'パラメーターを介した認証不要の任意のファイルアップロード

元情報の公開:2026/11/07 00:17 / 元情報の更新:2026/11/07 12:28(日本時間)

日本語訳

WordPress用プラグイン「Printcart Store – Web to Print Product Designer for WooCommerce」の2.13.2以下のすべてのバージョンには、任意のファイルアップロードの脆弱性があります。原因は、nbu_crop_image AJAXハンドラーが受け取る利用者指定のurlパラメーターを、Nbdesigner_IO::convert_url_to_path()が../の並びを正規化も除去もせずuploadsの基準ディレクトリに連結し、さらに、同じ攻撃者制御のパスからpathinfo()で出力ディレクトリと出力ファイルの拡張子の両方を決定することです。writeImage()を呼び出す前にstripImage()も呼び出されません。

これにより、認証されていない攻撃者は、uploadsディレクトリ外の任意の場所に攻撃者の制御するPHPの内容を書き込むことができ、そのファイルが後でリクエストされるとリモートコード実行につながります。悪用できるのは、サイトのnbdesigner_upload_popup_styleオプションがa(Advanced Upload Popup)に設定され、ハンドラーが認証不要のリクエスト向けに登録される場合だけです。ただし、必要なsave-design nonceは完全に公開されたフロントエンドのupload-design-fileページに出力されるため、その設定が有効なら、匿名の訪問者は誰でも容易に取得できます。

原文(英語)

Printcart Store <= 2.13.2 - Unauthenticated Arbitrary File Upload via nbu_crop_image 'url' Parameter

The Printcart Store – Web to Print Product Designer for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.13.2. This is due to the `nbu_crop_image` AJAX handler accepting a user-supplied `url` parameter that `Nbdesigner_IO::convert_url_to_path()` concatenates onto the uploads base directory without normalizing or stripping `../` sequences, and then deriving both the output directory and output file extension via `pathinfo()` from the same attacker-controlled path — with no `stripImage()` call before `writeImage()` is invoked. This makes it possible for unauthenticated attackers to write attacker-controlled PHP content to arbitrary locations outside the uploads directory, resulting in remote code execution when the written file is subsequently requested. This vulnerability is only exploitable when the `nbdesigner_upload_popup_style` site option is set to `a` (Advanced Upload Popup), which causes the handler to be registered for unauthenticated requests; however, the required `save-design` nonce is printed on the fully public frontend `upload-design-file` page, making it trivially obtainable by any anonymous visitor once that configuration is active.

引用元:Wordfence

確認と対応の進め方

WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。

影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。

更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。

プラグインの管理・更新方法(WordPress公式・日本語)

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る