Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2026-87902 — Proof-of-concept exploit for CVE-2026-87902, a WordPress Core pre-auth path traversal chaining LFI to remote code execution. | Kitploit
도구/GitHubGitHub/lutfifakee-project/cve-2026-87902
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRemote Access Tool
GitHublutfifakee-project/cve-2026-87902

CVE-2026-87902

Proof-of-concept exploit for CVE-2026-87902, a WordPress Core pre-auth path traversal chaining LFI to remote code execution.

저장소 보기
3424일 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

CVE-2026-87902 PoC — WordPress Path Traversal → LFI → Conditional RCE

WordPress get_page_template() — Unauthenticated Path Traversal → Local File Inclusion → Conditional RCE

A security research tool for detecting and testing CVE-2026-87902 / GHSA-7hp8-65ch-5whp, including vulnerability scanning and authorized single-target testing.

Important: Only use this project against systems you own or systems for which you have explicit authorization to perform security testing.


Vulnerability Overview

CVE-2026-87902 is an unauthenticated path traversal vulnerability in WordPress page-template resolution involving the get_page_template() function.

An unauthenticated attacker can manipulate the pagename parameter so that WordPress resolves a local PHP file outside the expected active-theme page-template directory.

This can result in:

  • Local File Inclusion (LFI) — inclusion of a chosen readable local PHP file.
  • Conditional Remote Code Execution (RCE) — under specific server and theme conditions, the LFI primitive can potentially be chained into code execution.

According to the official WordPress security advisory, successful RCE requires additional environmental and theme-specific prerequisites.

RCE Prerequisites

The official advisory identifies conditions including:

  1. The active parent or child theme contains a top-level directory whose name begins with page-.
  2. A suitable local PHP file exists and is readable by the web-server account.
  3. For the commonly referenced pearcmd.php transition, register_argc_argv must be enabled.
  4. The relevant server environment must otherwise satisfy the conditions required by the exploitation chain.

Therefore, not every vulnerable WordPress installation is automatically exploitable for RCE.


Vulnerability Information

ItemDetails
CVECVE-2026-87902
GHSAGHSA-7hp8-65ch-5whp
CWECWE-98
SeverityCritical
CVSS v4.09.2
Affected SoftwareWordPress
Attack TypeUnauthenticated Path Traversal / Local File Inclusion
RCEConditional, environment-dependent
DisclosureSeptember 2026

The official advisory identifies CWE-98 and a CVSS v4.0 base score of 9.2.


Affected Versions

The vulnerability affects the following WordPress branches:

BranchAffectedFixed
7.17.1.0 – 7.1.17.1.2
7.07.0.0 – 7.0.57.0.6
6.96.9.0 – 6.9.86.9.9
6.86.8.0 – 6.8.96.8.10
6.76.7.0 – 6.7.86.7.9
6.66.6.0 – 6.6.86.6.9
6.56.5.0 – 6.5.116.5.12
6.46.4.0 – 6.4.116.4.12
6.36.3.0 – 6.3.116.3.12
6.26.2.0 – 6.2.126.2.13
6.16.1.0 – 6.1.136.1.14
6.06.0.0 – 6.0.156.0.16
5.95.9.0 – 5.9.175.9.18
5.85.8.0 – 5.8.165.8.17
5.75.7.0 – 5.7.185.7.19
5.65.6.0 – 5.6.205.6.21
5.55.5.0 – 5.5.215.5.22
5.45.4.0 – 5.4.225.4.23
5.35.3.0 – 5.3.245.3.25
5.25.2.0 – 5.2.275.2.28
5.15.1.0 – 5.1.255.1.26
5.05.0.0 – 5.0.285.0.29
4.94.9.0 – 4.9.324.9.33
4.84.8.0 – 4.8.314.8.32
4.74.7.0 – 4.7.364.7.37

These affected and patched versions are taken from the official WordPress security advisory.


Credits

  • Vulnerability Researcher / Original Discoverer: Robert Ressl
  • Original PoC: ressl/cve-2026-87902-poc
  • Scanner + Tool Author: Lutfifakee-Project
  • Advisory: WordPress Security Team

The vulnerability was discovered and responsibly disclosed by Robert Ressl. This repository provides a separate scanner and testing tool based on the publicly documented vulnerability.


Features

  • Fast mass scanning

    • Multiple targets
    • Concurrent workers
    • Fast vulnerability oracle
    • URL file input
    • STDIN support
  • Deep single-target scanning

    • Multiple detection oracles
    • Multiple encodings
    • Multiple HTTP methods
    • Comparative oracle validation
  • WAF detection

    • Wordfence
    • Cloudflare
    • Imperva
    • Sucuri
    • Akamai
    • AWS WAF
    • F5
  • Theme discovery

    • WordPress SVN lookup
    • HTML-based discovery
    • HEAD request fallback
  • LFI testing

    • Controlled local-file inclusion validation
    • WordPress core file oracle
    • Readable PHP-file testing
  • Conditional RCE testing

    • PEAR-based transition testing
    • Environment-aware checks
    • Designed for authorized testing only
  • Structured output

    • Console output
    • Full log files
    • Vulnerable-only output
    • JSON
    • JSONL
  • Cross-platform

    • Linux
    • macOS
    • Windows 10+

Requirements

  • Python 3.7 or newer
  • Tested with Python 3.10 – 3.13
  • Python Standard Library only

No third-party Python packages are required.


Installation

git clone https://github.com/Lutfifakee-Project/CVE-2026-87902.git
cd CVE-2026-87902

python cve-2026-87902.py --help

Usage

Mass Scan

Scan multiple authorized targets from a file:

python cve-2026-87902.py -f urls.txt --threads 30 --vuln-only vuln.txt -o results.txt

Deep Scan

Run deeper validation against a single authorized target:

python cve-2026-87902.py http://localhost:8081 --deep -v

Authorized Testing

Testing modes that can perform active exploitation require the explicit authorization flag:

python cve-2026-87902.py http://localhost:8081 --rce "id" --i-have-authorization

File Inclusion Testing

python cve-2026-87902.py http://localhost:8081 --read wp-config.php --i-have-authorization

Multiple File Checks

python cve-2026-87902.py http://localhost:8081 --files /etc/passwd /etc/hosts --i-have-authorization

Use active exploitation functionality only in an environment where you have explicit permission to conduct the test.


Local Test Environment

For controlled local testing, you can run a vulnerable WordPress environment:

docker run --rm -d -p 8081:80 wordpress:7.0.2-php8.3-apache

Then test the local instance:

python cve-2026-87902.py http://localhost:8081 --deep -v

The official advisory notes that the official PHP Docker image can satisfy the environment conditions relevant to the pearcmd.php transition.


Command-Line Options

도구 다운로드