Modula Image Gallery 3.0.17以下 - 'items'パラメーターを介した認証済み(投稿者以上)の格納型クロスサイトスクリプティング
元情報の公開:2026/11/07 06:49 / 元情報の更新:2026/11/07 20:26(日本時間)
日本語訳
WordPress用プラグイン「Modula」の3.0.17以下のバージョンには、itemsパラメーターを介した格納型クロスサイトスクリプティングの脆弱性があります。
原因は、save_merged_items() RESTハンドラーとImages\Adapter::normalize_item_row()で、画像ごとのlinkフィールドの入力の無害化が不十分で、未知のキーをそのまま保持することと、Modula_Helper::generate_attributes()の出力エスケープが、生成されるリンクのhrefにesc_attr()だけを適用し、javascript: URLスキームを除去しないことの組み合わせです。これにより、投稿者以上の権限を持つ認証済みの攻撃者はページに任意のWebスクリプトを挿入でき、利用者がそのページにアクセスしてギャラリーのタイルをクリックするたびにスクリプトが実行されます。
原文(英語)
Modula Image Gallery <= 3.0.17 - Authenticated (Author+) Stored Cross-Site Scripting via 'items' Parameter
The Modula plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'items' parameter in versions up to, and including, 3.0.17 This is due to insufficient input sanitization of the per-image 'link' field in the save_merged_items() REST handler and Images\Adapter::normalize_item_row(), which preserves unknown keys verbatim, combined with output escaping in Modula_Helper::generate_attributes() that applies only esc_attr() to the resulting anchor href and does not strip the 'javascript:' URL scheme. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page and clicks the gallery tile.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。