Ninja Forms - File Uploads 3.3.36以下 - 'extra.saveProgress'を通じた'files[].data.file_path'パラメーターを介した認証不要の任意のファイル削除
元情報の公開:2026/11/11 09:01 / 元情報の更新:2026/11/11 21:34(日本時間)
日本語訳
WordPress用アドオン「Ninja Forms - File Uploads」の3.3.36以下のバージョンには、任意のファイル削除、およびS3・Dropbox・Google Driveへのデータ持ち出しを介した任意のファイル読み取りの脆弱性があります。この欠陥は、includes/fields/upload.phpのNF_FU_Fields_Upload::process()と、includes/external/abstracts/service.phpのNF_FU_External_Abstracts_Service::process_upload()にまたがっています。前者は、公開フォームの送信に空でないextra.saveProgressが含まれると早期に処理を戻し、クライアントが指定したfiles[]をそのまま残します。後者が信頼できるパスを再読み込みするのは、クライアントがupload_idを送信した場合だけです。
攻撃者がupload_idを省略すると、そのdata[file_path]はBackground Uploadキューに残り、upload_file_to_s3()ではSourceFileとして、またincludes/external/abstracts/backgroundupload.phpのmaybe_delete_server_file()ではunlink()の呼び出しに使用されます。パスの正規化も、アップロードディレクトリ内に収まるかの確認も行われません。プラグイン自身のis_path_within_upload_dir()ヘルパーが適用されるのは、管理者向けの処理経路だけです。
これにより、認証されていない攻撃者は、影響を受けるサイトのサーバー上にある任意のファイルを削除でき、リモートコード実行が可能になるおそれがあります。具体的には、wp-config.phpを削除するとWordPressが強制的にセットアップ画面へ移行し、サイト全体の乗っ取りが可能になります。
原文(英語)
Ninja Forms - File Uploads <= 3.3.36 - Unauthenticated Arbitrary File Deletion via 'files[].data.file_path' Parameter via 'extra.saveProgress'
The Ninja Forms - File Uploads add-on for WordPress is vulnerable to Arbitrary File Deletion (and arbitrary file read via S3/Dropbox/Google Drive exfiltration) in versions up to, and including, 3.3.36. The flaw spans NF_FU_Fields_Upload::process() in includes/fields/upload.php — which returns early (leaving the client-supplied files[] intact) whenever a public submission carries a nonempty extra.saveProgress — and NF_FU_External_Abstracts_Service::process_upload() in includes/external/abstracts/service.php, whose authoritative-path reload only fires when the client sends upload_id. By omitting upload_id, an attacker's data[file_path] survives into the Background Upload queue and is used by both upload_file_to_s3() (as SourceFile) and the maybe_delete_server_file() unlink() call in includes/external/abstracts/backgroundupload.php, with no canonicalization or upload-directory containment check (the plugin's own is_path_within_upload_dir() helper is only applied on admin paths). This makes it possible for unauthenticated attackers to delete arbitrary files on the affected site's server which may make remote code execution possible — specifically, deleting wp-config.php forces WordPress into its setup screen, enabling full site takeover.
引用元:Wordfence
確認と対応の進め方
WordPress管理画面の「プラグイン」→「インストール済みプラグイン」で、対象製品の名前とバージョンを確認してください。
影響バージョンに該当する場合は、バックアップを確認し、「ダッシュボード」→「更新」から対象製品を更新してください。更新後は、記事に記載した修正版になっていることと、サイトの表示・機能を確認してください。
更新が表示されない場合は、製品の提供元で更新情報と更新方法を確認してください。