WPSyncSheets For Contact Form 7 1.8.0以下 - maybe_unserialize()による信頼できないCF7送信フィールドを介した認証不要のPHPオブジェクトインジェクションによるリモートコード実行
元情報の公開:2026/11/06 07:08 / 元情報の更新:2026/11/06 20:17(日本時間)
日本語訳
WordPress用プラグイン「WPSyncSheets For Contact Form 7 – CF7 Google Sheets Connector & Save to Database」の1.8.0以下のすべてのバージョンには、システム用ではない任意のCF7フィールド(例えばyour-message)パラメーターを介したリモートコード実行の脆弱性があります。原因は、データベースへの保存前のCF7送信フィールド値の無害化が不十分なことと、管理画面で取得する際のmaybe_unserialize()にallowed_classesの制限がないことです。これにより、認証されていない攻撃者はサーバー上でコードを実行できます。
リモートコード実行のガジェットチェーンによる悪用の成功には、プラグインにGoogle Sheetsアクセストークンが設定されている必要があります。これはプラグインが主に宣伝している機能であり、悪用可能なガジェットチェーンを構成するクラスを含む、同梱のMonolog 2.10.0ライブラリの自動読み込みを引き起こします。ただし、根本のPHPオブジェクトインジェクションは、この設定の有無にかかわらず発生します。
原文(英語)
WPSyncSheets For Contact Form 7 <= 1.8.0 - Unauthenticated PHP Object Injection to Remote Code Execution via Untrusted CF7 Submission Field via maybe_unserialize()
The WPSyncSheets For Contact Form 7 – CF7 Google Sheets Connector & Save to Database plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.8.0 via the 'any non-system CF7 field (e.g., your-message)' parameter parameter. This is due to insufficient sanitization of CF7 submission field values before database storage and the absence of an allowed_classes restriction on maybe_unserialize() during admin retrieval. This makes it possible for unauthenticated attackers to execute code on the server. Successful exploitation of the remote code execution gadget chain requires that a Google Sheets access token be configured in the plugin (its primary advertised feature), as this triggers autoloading of the bundled Monolog 2.10.0 library whose classes form the exploitable gadget chain; however, the underlying PHP Object Injection occurs regardless.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。