Dokan: AI Powered WooCommerce Multivendor Marketplace Solution 5.3.3以下 - REQUEST_URI内の/dokan/mcp/マーカーを介した認可回避

元情報の公開:2026/11/18 07:23 / 元情報の更新:2026/11/18 20:30(日本時間)

日本語訳

WordPress用プラグイン「Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy」は、5.3.3以下のすべてのバージョンで、認可回避の脆弱性があります。matches_mcp_endpoint()関数が、位置を固定しない正規表現(#/(?:woocommerce|dokan)/mcp(?:/|$)#)を、クエリ文字列を含むREQUEST_URI全体へ適用することが原因です。そのため、クエリパラメータ値の中を含め、URIのどこかに/dokan/mcp/または/woocommerce/mcp/という文字列をそのまま含むリクエストは、信頼された内部MCPコンテキストと誤認されます。これにより、呼び出し元が認証済みかにかかわらず、scope_product_permissions()がWooCommerceのwoocommerce_rest_check_permissionsフィルターで無条件にtrueを返します。

認証されていない攻撃者が、/wc/v1、/wc/v2、/wc/v3、/wc-analyticsのREST名前空間を通じて、任意の公開済み商品の、認証済みユーザー向けの完全なWooCommerce REST商品レコードを読み取れます。これには、アンダースコアで始まる非公開メタデータ、購入メモ、有料デジタル商品のダウンロード用ファイルURL、カタログ非表示の商品、編集コンテキストでの表現が含まれます。

この回避は、いずれかのWooCommerce REST商品エンドポイントへ、値に/dokan/mcp/という文字列をそのまま含むクエリパラメータを追加することで発動します(例:/wp-json/wc/v3/products/{id}?x=/dokan/mcp/)。正規表現の一致にはエンコードされていないスラッシュそのものが必要なため、スラッシュをパーセントエンコードすると回避は成立しません。

原文(英語)

Dokan: AI Powered WooCommerce Multivendor Marketplace Solution <= 5.3.3 - Authorization Bypass via '/dokan/mcp/' Marker in REQUEST_URI

The Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy plugin for WordPress is vulnerable to Authorization Bypass in all versions up to, and including, 5.3.3. The vulnerability exists because the `matches_mcp_endpoint()` function applies an unanchored regular expression (`#/(?:woocommerce|dokan)/mcp(?:/|$)#`) against the entire `REQUEST_URI` including the query string, meaning any request that contains the literal substring `/dokan/mcp/` or `/woocommerce/mcp/` anywhere in its URI — including inside a query parameter value — is incorrectly treated as a trusted internal MCP context, causing `scope_product_permissions()` to unconditionally return `true` on WooCommerce's `woocommerce_rest_check_permissions` filter regardless of whether the caller is authenticated. This makes it possible for unauthenticated attackers to read full authenticated WooCommerce REST product records for any published product — including private underscore-prefixed meta, purchase notes, downloadable file URLs for paid digital products, catalog-hidden products, and edit-context representations — across the `/wc/v1`, `/wc/v2`, `/wc/v3`, and `/wc-analytics` REST namespaces. The bypass is triggered by appending a query parameter whose value contains the literal string `/dokan/mcp/` to any WooCommerce REST product endpoint (e.g., `/wp-json/wc/v3/products/{id}?x=/dokan/mcp/`); note that percent-encoding the slashes prevents the bypass, as the unencoded literal slash characters are required for the regex to match.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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