ShopMagic 4.9.5以下 - shopmagic_visitor_〈COOKIEHASH〉 Cookieの暗号署名検証不備による認証不要のゲストなりすまし・任意ゲストプロフィール変更

元情報の公開:2026/11/26 06:04 / 元情報の更新:2026/11/26 18:33(日本時間)

日本語訳

WordPress用プラグイン「ShopMagic – email automation for WordPress」は、4.9.5以下のすべてのバージョンで、暗号署名の検証不備の脆弱性があります。CurrentCustomer::encode_tracking_data()は、改ざんを防ぐためshopmagic_visitor_〈COOKIEHASH〉 Cookieにmd5ハッシュを付加します。しかし、CookiePersistence::get_tracking_data()はハッシュを計算・検証せず、json_decode()したCookieの値をそのまま返すため、Cookieのuser_id、email、metaフィールドは攻撃者が完全に制御できます。

認証されていない攻撃者が訪問者Cookieを偽造し、nonceも権限も確認せずに登録された、保護されていないwp_ajax_nopriv_capture_email_urlエンドポイントへ送信できます。Cookie名は公開サイトURLからmd5(siteurl)として生成されるため、予測可能です。これにより、ShopMagicの顧客識別の範囲で、管理者を含む任意のWordPressユーザーになりすませます。また、GuestManager::save()を通じて、wp_shopmagic_guestとwp_shopmagic_guest_meta内の任意の既存ゲストレコードについて、名前、電話番号、請求先住所を含む保存済みプロフィールのメタデータを上書きできます。

原文(英語)

ShopMagic <= 4.9.5 - Unauthenticated Improper Verification of Cryptographic Signature to Guest Impersonation and Arbitrary Guest Profile Modification via 'shopmagic_visitor_<COOKIEHASH>' Cookie

The ShopMagic – email automation for WordPress plugin for WordPress is vulnerable to Improper Verification of Cryptographic Signature in all versions up to, and including, 4.9.5 Although `CurrentCustomer::encode_tracking_data()` appends an md5 hash to the `shopmagic_visitor_<COOKIEHASH>` cookie to make it tamper-resistant, `CookiePersistence::get_tracking_data()` returns the raw `json_decode()`'d cookie value directly without computing or verifying that hash, leaving the cookie's `user_id`, `email`, and `meta` fields fully under attacker control. This makes it possible for unauthenticated attackers to forge the visitor cookie — which is predictable because its name is derived as `md5(siteurl)` from the public site URL — and submit it to the unprotected `wp_ajax_nopriv_capture_email_url` endpoint (which is registered without a nonce check or capability check) to impersonate any WordPress user including administrators in ShopMagic's customer-identity context, and to overwrite the stored profile metadata — including name, phone number, and billing address — of any existing guest record in `wp_shopmagic_guest` and `wp_shopmagic_guest_meta` via `GuestManager::save()`.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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