修正版ありWP ImageViewer

WP ImageViewer 3.0.2以下 - 画像の'alt'属性を介した認証済み(購読者以上)の格納型DOMベースのクロスサイトスクリプティング

元情報の公開:2026/11/07 06:45 / 元情報の更新:2026/11/07 20:26(日本時間)

日本語訳

WordPress用プラグイン「WP ImageViewer」の3.0.2以下のすべてのバージョンには、入力の無害化と出力のエスケープが不十分なため、img.altパラメーターを介した格納型DOMベースのクロスサイトスクリプティングの脆弱性があります。これにより、購読者以上の権限を持つ認証済みの攻撃者はページに任意のWebスクリプトを挿入でき、利用者がそのページにアクセスするたびにスクリプトが実行されます。

これには、bbPressなどのフロントエンドのコンテンツプラグインが有効である必要があります。このようなプラグインは、エンコードされたペイロードを含む画像入りコンテンツの公開に必要なbbp_participant権限を購読者に付与します。寄稿者以上の権限を持つ攻撃者による悪用には、寄稿者以上の利用者が投稿本文に画像のHTMLを送信できることが必要で、これはWordPressの既定の動作です。その設定がない既定のインストールでは、この脆弱性の悪用にはカスタムレベル以上の権限を持つ攻撃者が必要です。

原文(英語)

WP ImageViewer <= 3.0.2 - Authenticated (Subscriber+) Stored DOM-Based Cross-Site Scripting via Image 'alt' Attribute

The WP ImageViewer plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'img.alt' parameter in all versions up to, and including, 3.0.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires a front-end content plugin such as bbPress to be active, as it grants Subscriber-level users the bbp_participant capability needed to publish image-bearing content containing the encoded payload. Exploitation by attackers with contributor-level access and above requires that the site allows Contributors (or higher) to submit image HTML in post content — the WordPress default. On a default installation, where that is not configured, the vulnerability requires attackers with custom-level access and above.

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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