Schema & Structured Data for WP & AMP 1.68以前 — 公開レビューフォームのsaswp_reviewer_nameパラメータを介した認証不要の非信頼データのデシリアライズによる任意ファイル削除
元情報の公開:2026/11/26 22:03 / 元情報の更新:2026/11/27 10:33(日本時間)
日本語訳
WordPressプラグイン「Schema & Structured Data for WP & AMP」の1.68以前のバージョンには、PHPオブジェクトインジェクションの脆弱性があります。管理画面のエクスポート処理(saswp_export_all_settings_and_schema)が、すべての生の投稿メタ値に制限なしでunserialize()を呼び出し、信頼できない入力をデシリアライズすることが原因です。これが、認証されていない訪問者の指定したレビュー投稿者名をupdate_post_metaで保存するsaswp_review_form_process_data()と組み合わさります。
プラグインはsanitize_text_field()でサニタイズしますが、この関数はPHPのシリアライズ構文や、プロパティ名の区切りとなるNUL文字を認識しません。また、WordPressのmaybe_serialize/is_serializedは、旧式のPHPのカスタムシリアライズトークンC(ArrayObject)に対応していません。そのため、攻撃用の内容は1バイトも変わらず保存され、保護のための追加のシリアライズ層で包まれることもありません。
これにより、認証されていない攻撃者がプラグインの処理にPHPオブジェクトを注入できます。脆弱なプラグイン自体には既知のPOPチェーンはありませんが、サイトにインストールされた別のプラグインやテーマに適切なチェーンが存在する場合、任意のファイルの削除や、その他の影響を引き起こすために利用される可能性があります。悪用の成功には管理者の操作も別途必要であり、攻撃者だけで脆弱性を発動させることはできません。
原文(英語)
Schema & Structured Data for WP & AMP <= 1.68 - Unauthenticated Deserialization of Untrusted Data to Arbitrary File Deletion via 'saswp_reviewer_name' Parameter via Public Review Form
The Schema & Structured Data for WP & AMP plugin for WordPress is vulnerable to PHP Object Injection in versions up to, and including, 1.68. This is due to deserialization of untrusted input via the admin export (saswp_export_all_settings_and_schema) which calls unrestricted unserialize() on every raw post meta value, combined with saswp_review_form_process_data() which stores unauthenticated-visitor-supplied reviewer-name data through update_post_meta — the plugin sanitizes with sanitize_text_field(), which does not recognise PHP serialization syntax or the NUL property-name delimiters, and WordPress's maybe_serialize/is_serialized has no case for the legacy PHP 'C' custom-serialization token (ArrayObject), so the payload is persisted byte-for-byte and never wrapped in a protective extra serialize layer. This makes it possible for unauthenticated attackers to inject a PHP Object into the processing of the plugin. No known POP chain is present in the vulnerable plugin itself, but if a suitable chain exists via an additional plugin or theme installed on the blog, it could be used to delete arbitrary files, or achieve other impacts. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。