Database for Contact Form 7, WPforms, Elementor forms 1.5.5以前 — Ninja Forms送信を介した認証不要の任意ファイルアップロード
元情報の公開:2026/11/26 21:50 / 元情報の更新:2026/11/27 10:33(日本時間)
日本語訳
WordPressプラグイン「Database for Contact Form 7, WPforms, Elementor forms」の1.5.5以前のすべてのバージョンには、copy_files関数を介した任意ファイルアップロードの脆弱性があります。この関数はファイル拡張子を検証せず、攻撃者が制御するストリームラッパーURIをファイルの取得元として受け入れ、実行可能な拡張子を制限せずに保存先のファイル名を決めます。
これにより、認証されていない攻撃者が実行可能であるかもしれないファイルをアップロードでき、リモートコード実行が可能になります。プラグインはアップロード先ディレクトリに.htaccessファイルを配置してPHPの実行を防ぎますが、Nginx、特定の設定のLiteSpeed、AllowOverride Noneが設定されたApacheでは、この緩和策は機能しません。また、このファイルが削除されても復元されません。
原文(英語)
Database for Contact Form 7, WPforms, Elementor forms <= 1.5.5 - Unauthenticated Arbitrary File Upload via Ninja Forms Submission
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 1.5.5 via the copy_files function. This is due to missing file extension validation in the copy_files function, which accepts attacker-controlled stream wrapper URIs as the file source and derives the destination filename without restricting executable extensions. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. The plugin places an .htaccess file in its uploads directory to block PHP execution, but this mitigation is ineffective on Nginx, LiteSpeed in certain configurations, and Apache servers with AllowOverride None, and the file is not restored if deleted.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。