Stop Spammers Classic 2026.6以下 - 'author'パラメーターを介した認証不要の格納型クロスサイトスクリプティング
元情報の公開:2026/11/07 00:44 / 元情報の更新:2026/11/07 13:27(日本時間)
日本語訳
WordPress用プラグイン「Stop Spammers Classic」の2026.6以下のバージョンには、author POSTパラメーターを介した格納型クロスサイトスクリプティングの脆弱性があります。initで処理される認証不要のPOSTは、攻撃者が指定したauthorフィールドを、シングルクォートをエスケープしないsanitize_text_fieldに通した後、ss_stop_sp_reg_statsオプションの履歴へ保存します。その後、管理画面のLog Reportページが、保存された値をesc_js()を使って、ダブルクォートで囲まれたonclick属性内のシングルクォートで囲まれたJavaScript文字列に出力します。esc_js()はENT_COMPATを指定した_wp_specialcharsを使うため、シングルクォートをエスケープせず、保存された値がJavaScriptの文字列リテラルから抜け出し、任意のJavaScriptを挿入できます。
これにより、認証されていない攻撃者はページに任意のWebスクリプトを挿入でき、manage_options権限を持つ管理者が、攻撃者の汚染したログ行の「Report to SFS」リンクをクリックするとスクリプトが実行されます(このリンクを表示するにはStopForumSpamのAPIキーが設定されている必要があり、このフィールドは既定では空欄です)。悪用の成功にはさらに管理者の操作が必要であり、攻撃者だけではこの脆弱性を発動できません。
原文(英語)
Stop Spammers Classic <= 2026.6 - Unauthenticated Stored Cross-Site Scripting via 'author' Parameter
The Stop Spammers Classic plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'author' POST parameter in versions up to, and including, 2026.6. An unauthenticated POST handled on init stores the attacker-supplied author field (after sanitize_text_field, which does not escape single quotes) into the ss_stop_sp_reg_stats option history. The Log Report admin page then renders that stored value inside a single-quoted JavaScript string within a double-quoted onclick attribute using esc_js(); because esc_js() uses _wp_specialchars with ENT_COMPAT it does not escape single quotes, allowing the stored value to break out of the JS string literal and inject arbitrary JavaScript. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute whenever an administrator with manage_options access clicks the 'Report to SFS' link on an attacker-poisoned log row (the StopForumSpam API key must be configured for that link to be rendered — the field is empty by default). Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。