Shortcodes Ultimate 7.9.1以下 - [su_qrcode]の%CURRENT_URL%とHostヘッダーを介した認証不要のローカルファイルインクルード

元情報の公開:2026/11/21 04:45 / 元情報の更新:2026/11/21 16:45(日本時間)

日本語訳

WordPress用プラグイン「Shortcodes Ultimate」は、7.9.1以下のバージョンで、ローカルファイルインクルードの脆弱性があります。su_get_current_url()が加工されていないHostリクエストヘッダーをURLのauthority部分へ埋め込み、esc_url()へ渡すことが原因です。esc_url()は設計上、IPv6のリテラルホストを有効に保つため、authority内の「[」と「]」を保持します。[su_qrcode]ショートコードはその値をdata属性内の、文書に記載された%CURRENT_URL%トークンへ代入してからdo_shortcode()へ渡します。

[su_qrcode data="%CURRENT_URL%"]を描画する公開側のページでは、認証されていない攻撃者が、有効なテーマのルートディレクトリ内に存在する任意のPHPファイルをインクルードできます。範囲がこのディレクトリに限定されるのは、属性値内の「/」がparse_url()のhost部分を終端させ、その後パーセントエンコードされて取り除かれるためです。また、出荷時のデフォルトである「Unsafe features」オプションが有効のままなら、同じページで任意の投稿の任意の投稿メタデータを読み取れます。

原文(英語)

Shortcodes Ultimate <= 7.9.1 - Unauthenticated Local File Inclusion via 'Host' Header via %CURRENT_URL% in [su_qrcode]

The Shortcodes Ultimate plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 7.9.1 This is due to su_get_current_url() interpolating the raw Host request header into the authority portion of a URL that is then passed to esc_url() — which by design preserves '[' and ']' inside the authority so IPv6 literal hosts remain valid — and the [su_qrcode] shortcode substituting that value into its data attribute (the documented %CURRENT_URL% token) before feeding it to do_shortcode(). This makes it possible for unauthenticated attackers to include arbitrary PHP files that reside within the active theme's root directory (bounded because '/' inside an attribute value terminates parse_url()'s host and is then percent-encoded and stripped), and — when the shipped-default 'Unsafe features' option remains on — to read arbitrary post meta of any post, on any front-end page that renders [su_qrcode data="%CURRENT_URL%"].

引用元:Wordfence

確認と対応の進め方

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

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

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

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

運営元KanriPressのサービス案内

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

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

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