Simple Membership 4.8.9以下 - swpm_level_hashの偽造による認証不要の編集者への権限昇格
元情報の公開:2026/11/26 11:29 / 元情報の更新:2026/11/26 23:36(日本時間)
日本語訳
WordPress用プラグイン「Simple Membership」は、4.8.9以下のバージョンで、権限昇格の脆弱性があります。
サイト全体の署名用秘密値swpm_private_key_oneは、インストール時にSwpmInstallation::installer()内でPHPの暗号学的に安全ではないuniqid('', true)を使って生成されます。タイムスタンプ由来の鍵の候補空間は約10の15乗(約50ビット)ですが、プラグインが自動作成する登録ページの日付を公開WordPress REST APIから取得することで、候補を絞り込めます。さらに、公開登録フォームはswpm_level_hashとして単一のMD5計算による値md5(key|level)を表示し、候補を照合できます。SwpmFrontRegistration::register_front_end()では、処理時間が一定でない「!=」比較だけで、訪問者が登録できる会員レベルを認可しています。
SwpmUtils::get_free_level()は、無料会員の設定に関係なく、攻撃者が送信したlevel_identifier=md5(level)を受け入れます。prepare_and_create_wp_user_front_end()は、その会員レベルに設定されたロールでWordPressアカウントを作成し、administratorロールだけを拒否します。
認証されていない攻撃者は、公開MD5値を使ったオフラインの総当たりでインストール時の秘密値を復元した後、設定済みの任意の会員レベルに対する有効なswpm_level_hashを偽造し、そのレベルへ自分で登録できます。これにより、新しく作成したWordPressアカウントを、そのレベルに割り当てられたロールへ昇格させられます。攻撃が成功すると、攻撃者自身のアカウントに編集者ロールの権限がすべて付与されます。
原文(英語)
Simple Membership <= 4.8.9 - Unauthenticated Privilege Escalation to Editor via Forged 'swpm_level_hash'
The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 4.8.9 This is due to the site-wide signing secret `swpm_private_key_one` being generated at install time with PHP's non-cryptographic `uniqid('', true)` function in `SwpmInstallation::installer()`, whose timestamp-derived keyspace (~10^15 candidates / ~50 bits) can be constrained via the public WordPress REST API date of the plugin's auto-created registration page, combined with a single-MD5 oracle (`md5(key|level)`) that the public registration form prints as `swpm_level_hash` and a non-constant-time `!=` comparison in `SwpmFrontRegistration::register_front_end()` as the sole authorization gate on which membership level a visitor may register into; `SwpmUtils::get_free_level()` then honors an attacker-posted `level_identifier=md5(level)` regardless of the configured free-membership setting, and `prepare_and_create_wp_user_front_end()` creates the WordPress account with whatever role the level is configured to grant (only the `administrator` role is refused). This makes it possible for unauthenticated attackers, after an offline brute-force recovery of the install-time secret against the public MD5 oracle, to forge a valid `swpm_level_hash` for any configured membership level and self-register into that level, elevating their newly created WordPress account to the level's assigned role — e. Successful exploitation causes the attacker's own account to receive the complete editor role.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。