Product Options and Price Calculation Formulas for WooCommerce 4.9.69以前 — price_disabled_msg設定を介した認証済みショップ管理者以上による保存型クロスサイトスクリプティング

元情報の公開:2026/11/26 23:37 / 元情報の更新:2026/11/27 12:33(日本時間)

日本語訳

WordPressプラグイン「Product Options and Price Calculation Formulas for WooCommerce – Uni CPO」の4.9.69以前のバージョンには、price_disabled_msg設定を介した保存型クロスサイトスクリプティングの脆弱性があります。

uni_cpo_save_settings_data() AJAXハンドラーは、uni_cpo_sanitize_text()の出力にhtml_entity_decode()を適用します。uni_cpo_sanitize_text()自体も、wp_kses()の前にhtml_entity_decode()を実行しています。この二重のデコードにより、HTMLエンティティで二重に符号化されたタグが、無害なテキストとしてwp_ksesを通過し、その後、有効なHTMLに戻されます。その状態で_cpo_price_disabled_msg投稿メタに保存され、後で個別商品ページにdo_shortcode()を通じて追加のエスケープなしで出力されます。

これにより、ショップ管理者レベル(edit_products)以上の権限を持つ認証済みの攻撃者が、ページに任意のウェブスクリプトを埋め込めます。ユーザーが埋め込み先の商品ページにアクセスするたびに、そのスクリプトが実行されます。

原文(英語)

Product Options and Price Calculation Formulas for WooCommerce <= 4.9.69 - Authenticated (Shop Manager+) Stored Cross-Site Scripting via 'price_disabled_msg' Setting

The Product Options and Price Calculation Formulas for WooCommerce – Uni CPO plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'price_disabled_msg' setting in versions up to, and including, 4.9.69 The uni_cpo_save_settings_data() AJAX handler applies html_entity_decode() to the output of uni_cpo_sanitize_text(), which itself already runs html_entity_decode() before wp_kses(); this double decode allows a double-entity-encoded tag to pass wp_kses as inert text and then be re-materialised as live HTML before being stored in the _cpo_price_disabled_msg post meta and later echoed via do_shortcode() on the single-product page without further escaping. This makes it possible for authenticated attackers, with Shop Manager-level access (edit_products) and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected product page.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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