Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-87902-A-working-PoC-for-WordPress-s-critical-path-traversal — Reference notes and mitigation configs for CVE-2026-87902, a WordPress Core unauthenticated path traversal and LFI flaw chainable to RCE, with Nginx, Apache, and PHP hardening rules. | Kitploit
Tools/GitHubGitHub/rabakuku/cve-2026-87902-a-working-poc-for-wordpress-s-critical-path-traversal
Defensive ToolsVulnerability AnalysisWeb Application ExploitationWeb SecurityPapers & ResearchLearning & Education
GitHubrabakuku/cve-2026-87902-a-working-poc-for-wordpress-s-critical-path-traversal

CVE-2026-87902-A-working-PoC-for-WordPress-s-critical-path-traversal

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

Reference notes and mitigation configs for CVE-2026-87902, a WordPress Core unauthenticated path traversal and LFI flaw chainable to RCE, with Nginx, Apache, and PHP hardening rules.

View Repository
115h 38m agoNot yet reviewed
Share

🚨 CVE-2026-87902: WordPress Core Unauthenticated Path Traversal & RCE Mitigation

CVE-2026-87902 Video Walkthrough

🔴 Watch the Full Breakdown & Mitigation Tutorial:
👉 Click Here to Watch on YouTube


📖 Overview

This repository provides emergency reference notes, web server mitigation rules, and hardening configs covered in our technical analysis of CVE-2026-87902 (CVSS 9.2 Critical).

CVE-2026-87902 affects WordPress Core versions from 4.7.0 through 7.1.1. It allows an unauthenticated remote attacker to perform path traversal and Local File Inclusion (LFI) via theme template resolution functions (locate_template / get_page_template), which can be chained with environments like pearcmd.php to achieve full Remote Code Execution (RCE).


⚡ Quick Mitigation Reference

1. Disable register_argc_argv in php.ini

Disabling this setting neutralizes command-line argument injection through web requests (such as the pearcmd.php RCE vector):

root@kitploit:~
register_argc_argv = Off


2. Nginx WAF / Reverse Proxy Rule

Block unauthenticated traversal sequences passed via the pagename query parameter:

root@kitploit:~
# Block path traversal attempts in query parameters
if ($query_string ~* "pagename=.*(\.\.|%2e%2e)") {
    return 403;
}


3. Apache (.htaccess / VirtualHost)

root@kitploit:~
RewriteEngine On
RewriteCond %{QUERY_STRING} pagename=.*(\.\.|%2e%2e) [NC]
RewriteRule .* - [F,L]


4. Official Core Patching (WP-CLI)

Update your WordPress instance immediately to the patched 7.1.2 release or your branch's specific backported security release:

root@kitploit:~
wp core update --version=7.1.2


📺 Connect & Follow

  • YouTube: @ccnadailytips)
  • Topics: Enterprise Networking, Fortinet Firewalls, Linux Administration, and Cybersecurity Walkthroughs.

Disclaimer: This repository and video tutorial are provided strictly for educational and defense-in-depth security hardening purposes.

root@kitploit:~
http://googleusercontent.com/youtube_content/1

Download Tool