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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-119977-Toolkit — Red/blue team toolkit for CVE-2026-119977 WordPress core upgrade-window RCE: version triage, WAF origin discovery, race oracle, staged wp-config takeover and Bait MySQL proof. | Kitploit
工具/GitHubGitHub/tc4dy/cve-2026-119977-toolkit
Defensive ToolsReconnaissanceWeb Vulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationWAF BypassPenetration TestingRed TeamingPayload Development
7113天前尚未审核
分享
GitHub
tc4dy/cve-2026-119977-toolkit

CVE-2026-119977-Toolkit

Red/blue team toolkit for CVE-2026-119977 WordPress core upgrade-window RCE: version triage, WAF origin discovery, race oracle, staged wp-config takeover and Bait MySQL proof.

查看仓库
内容在请求的语言中不可用。显示英文版本。

CVE-2026-119977 – WordPress Core Upgrade-Window RCE Toolkit

CI Python 3.8+ CVSS Zero Deps Red/Blue

Ethical Use Only – Authorized Tested
This repository provides tools for authorized security professionals, blue teams, and penetration testers only.
Unauthorized access to computer systems is illegal under CFAA (US), Computer Misuse Act (UK), TCK 243/244 (Turkey), and similar laws worldwide.


CVEPoC

[*] Vulnerability Overview

CVE-2026-119977 is a use-after-free in the Linux kernel's IPv4 TCP stack... no, wait. It is a TOCTOU race condition in WordPress Core versions 4.7.0 through 7.1.3. During a full-package core update, WordPress unpacks the new release into a predictable, web-accessible staging directory under wp-content/upgrade/. Because update_core() does not skip wp-config.php when copying the staged tree to the live root, an unauthenticated attacker who reaches the staged installer inside the update window can plant an attacker-controlled wp-config.php that replaces the live one.

How it works

  1. Predictable staging directory – WP_Upgrader::unpack_package() derives the working directory from the package basename, which is wordpress-<version>.
  2. Staged installer reachable – the staged tree contains wp-admin/setup-config.php, which runs without the live wp-config.php.
  3. Config write – an unauthenticated attacker drives setup-config.php?step=2 with database credentials they control. WordPress writes wp-config.php into the staged tree.
  4. Promotion – update_core() copies the staged tree into ABSPATH. Before 7.1.4, wp-config.php was not in the skip list, so the attacker-written config replaces the live one.
  5. Impact – the live site now loads an attacker-controlled wp-config.php. Pointing DB_HOST at an endpoint the attacker owns yields full configuration takeover and code execution through the theme editor.

The upstream fix is in WordPress 7.1.4 (backported to 4.7): the staging name includes a 16-char random suffix, wp-content/upgrade/index.php is written and preserved, and wp-config.php is added to the update_core() skip list. IPv6 is not related; that was the other CVE.

Affected Versions

  • WordPress Core – 4.7.0 through 7.1.3
  • Fixed in – 7.1.4 and later, plus the 7.1.4 backport for older branches
  • CISA KEV – added 2026-11-03
  • CVSS – 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)

Patch

  • Upgrade to WordPress 7.1.4 or later.
  • If upgrade is not possible:
    • Block wp-content/upgrade/ at the web server.
    • Disable automatic background updates until patched.
    • Monitor inbound HTTP requests for wp-content/upgrade/.

[</>] Tools

ToolPurposeIntended User
exploit.pyRed team toolkit. Fingerprints WordPress, discovers origin behind CDNs, watches for the upgrade window, races the staged config write, proves promotion via a Bait MySQL server, optionally creates an admin account and deploys a mu-plugin shell. Includes SOCKS5 proxy pool, rate limiter, state file, and retry loop.Red teams / authorized pentesters
safecheck.pyNon-intrusive local triage. Grades a WordPress version against the fixed release for its branch. Reads wp-includes/version.php from a local install, a version file, or a JSON inventory. Never sends a network request.Blue teams / security auditors

[>] Feature Matrix

Featureexploit.pysafecheck.py
WordPress version fingerprint[+][+]
Local version triage[-][+]
WAF detection[+][-]
Origin discovery behind CDN[+][-]
Upgrade-window race oracle[+][-]
Staged config write[+][-]
Bait MySQL promotion proof[+][-]
Admin creation via attacker DB[+][-]
mu-plugin shell deploy[+][-]
Log cleanup[+][-]
SOCKS5 proxy pool with circuit breaker[+][-]
Rate limiter[+][-]
State file for resume[+][-]
Retry with backoff[+][-]
HTTP/2 single-packet race[+][-]
JSON inventory input[-][+]
JSON / JSONL / CSV output[+][+]
Async, zero-dependency runtime[+][+]

[/] Installation

git clone https://github.com/tc4dy/CVE-2026-119977-PoC-Exploit
cd CVE-2026-119977-PoC-Exploit/tools/
pip install -r requirements.txt

requirements.txt

requests

#optional
httpx
pymysql
passlib
h2spacex

Note: only httpx is required for the core exploit path. pymysql enables the real-database admin creation path. passlib produces a WordPress-compatible phpass hash. h2spacex enables the HTTP/2 single-packet race. The tool falls back gracefully when any of them is missing.


[>_] Usage

python exploit.py -t https://blog.example --authorized

Without flags, both tools print their help. exploit.py refuses to run without --authorized.

exploit.py flags

FlagDescription
-t, --targetTarget URL
--authorizedConfirm authorized testing (required)
--modecheck, watch, or exploit (default: exploit)
--race-modehttpx or single (HTTP/2 single-packet)
--db-hostDB_HOST to plant in the staged config
--db-portDB port
--db-nameDatabase name
--db-userDatabase user
--db-passDatabase password
--workersConcurrent window pollers (default: 16)
--threadsConcurrent race POSTs (default: 32)
--timeoutHTTP timeout (default: 8.0)
--rateRequests per second (default: 20.0)
--durationWindow watch duration (default: 3600)
--retryRetry attempts (default: 3)
--pathForced staging directory name
--state-fileResume state file
--log-fileDebug log file
--proxy-fileSOCKS5 proxy list
--cleanupRemove the created admin and wipe logs
--bait-portBind a Bait MySQL server and wait for promotion
--deploy-shellDeploy a mu-plugin shell after login
--versionsCandidate staging names
--upgrade-pathWeb path of the upgrade dir
--distro-dirTop-level directory inside the package
--no-colorDisable ANSI colors

safecheck.py flags

FlagDescription
--versionWordPress version string
--version-filePath to wp-includes/version.php
--wp-rootPath to a WordPress install
--inventory-jsonJSON list of site entries
--upgrade-exposedMark wp-content/upgrade as web-accessible
--upgrade-blockedMark wp-content/upgrade as blocked
--auto-updates-offMark automatic updates as off
--jsonMachine-readable output
--listPrint the fixed table

[>] Scenarios

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

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

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    593
  • 3

    looking-glass

    anonghosty/looking-glass

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

    381
  • 4

    ARTEX

    baarai/artex

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

    321
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    316
  • 6

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    305

探索所有工具

浏览我们的工具集合

查看所有工具 →