User Frontend 4.3.14以下 - post_contentパラメータでの認証済みの投稿者以上による権限昇格
元情報の公開:2026/11/18 06:41 / 元情報の更新:2026/11/18 20:30(日本時間)
日本語訳
WordPress用プラグイン「User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission」は、4.3.14以下のすべてのバージョンで、draft_post()関数を介した権限昇格の脆弱性があります。この関数が、関連するsubmit_post()ハンドラーに4.3.14で導入された保護対象ショートコードの許可リストチェックを行わずに、post_contentパラメータをwp_insert_post()で保存することが原因です。wp_ksesフィルターはHTMLタグしか取り除かず、[wpuf-registration role="editor"]のようなショートコードのテキストはそのまま残すため、この欠落を補えません。
投稿者以上の権限を持つ認証済みの攻撃者が登録用ショートコードを投稿へ埋め込み、その後、描画されたフォームを通じて登録するサイト訪問者に編集者権限を与えられます。保護対象ショートコードを無害化するための描画時のwpuf_modify_shortcodesフィルターも、ここでは保護になりません。wpuf_draft_post AJAXエンドポイントで作成された投稿には_edit_last投稿メタデータがないため、フィルターは内容を変更せずに返し、ショートコードが完全に描画・実行されるからです。
原文(英語)
User Frontend <= 4.3.14 - Authenticated (Author+) Privilege Escalation to 'post_content' Parameter
The User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.3.14 via the `draft_post()` function. This is due to the function storing the `post_content` parameter via `wp_insert_post()` without the protected-shortcode allow-list check that was introduced in 4.3.14 for the sibling `submit_post()` handler — a gap that `wp_kses` filtering does not close, as it strips only HTML tags while leaving shortcode text such as `[wpuf-registration role="editor"]` intact. This makes it possible for authenticated attackers, with Author-level access and above, to embed a registration shortcode in a post and cause any site visitor who subsequently registers through the rendered form to receive Editor-level access. The render-time `wpuf_modify_shortcodes` filter that is designed to neutralize protected shortcodes provides no protection here because posts created via the `wpuf_draft_post` AJAX endpoint carry no `_edit_last` post meta, causing the filter to return the content unchanged and allowing the shortcode to render and execute fully.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。