Skip to content
KitploitKITPLOIT
उपकरणएक्सप्लॉइटब्लॉग
Log in
जमा करें
उपकरणएक्सप्लॉइटब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

फ़ीडसंपर्कगोपनीयता© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
CVE-2026-119977 — Proof-of-concept exploit for a WordPress core update TOCTOU race (CWE-367) that writes a rogue wp-config.php, enabling database takeover, admin login, and RCE. | Kitploit
उपकरण/GitHubGitHub/bugstealers/cve-2026-119977
Privilege EscalationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRemote Access ToolLabs & Practice
GitHubbugstealers/cve-2026-119977

CVE-2026-119977

Proof-of-concept exploit for a WordPress core update TOCTOU race (CWE-367) that writes a rogue wp-config.php, enabling database takeover, admin login, and RCE.

212 दिन पहलेअभी तक समीक्षित नहीं
साझा करें
रिपॉजिटरी देखें
अनुरोधित भाषा में सामग्री उपलब्ध नहीं है। अंग्रेज़ी संस्करण दिखाया जा रहा है।

CVE-2026-119977 — WordPress Core Upgrade-Window TOCTOU RCE

FieldValue
CVECVE-2026-119977
CVSS8.1 (High)
CWECWE-367 (Time-of-Check Time-of-Use)
Attack VectorNetwork (fully remote, HTTP only)
AffectedWordPress 4.7.0 – 7.1.3
Fixed inWordPress 7.1.4

AUTHORIZED SECURITY TESTING ONLY. This PoC is for validating the vulnerability on systems you own or have explicit written permission to test. Unauthorized access to computer systems is illegal under CFAA (US), Computer Misuse Act (UK), and similar laws worldwide.


Table of Contents

  1. Vulnerability Overview
  2. Attack Chain
  3. Architecture — How the Pieces Connect
  4. Option A — Docker Quick-Start (Local Lab)
  5. Option B — VPS Pentest Setup (Authorized Remote Target)
  6. Option C — Docker on VPS (Easiest Remote Setup)
  7. Lab Setup — Simulating WordPress 7.1.3
  8. Exploit Script Reference
  9. Verification & Evidence Collection
  10. How the Fix Works (7.1.4)
  11. Pentest Report Template
  12. Troubleshooting

1. Vulnerability Overview

During a WordPress core update, the updater:

  1. Downloads the update ZIP to wp-content/upgrade/.
  2. Extracts it to a predictable staging path:
    wp-content/upgrade/wordpress-<version>-no-content/wordpress/
    
  3. The staged copy includes /wp-admin/setup-config.php — the WordPress installation wizard. This endpoint is unauthenticated when no wp-config.php exists in its working ABSPATH (the staging directory). It also has error_reporting(0) which masks PHP fatal errors during partial extraction, and sets WP_INSTALLING = true which bypasses maintenance mode.
  4. copy_dir() promotes the entire staging tree into the live root with $overwrite = true. The $skip array in 7.1.3 is:
    $skip = array( 'wp-content', 'wp-includes/version.php' );
    
    wp-config.php is NOT in $skip — so an attacker-written config in the staging directory gets promoted to the live root.

The Race Window

Timeline
──────────────────────────────────────────────────────────────────────
  unpack_package()              copy_dir()
  extracts ZIP ──────────────── snapshots staging dir ──── promotes files
       │                              │
       │   ◄── RACE WINDOW ──►       │
       │                              │
  setup-config.php becomes       copy_dir() sees the new wp-config.php
  accessible in staging dir      and copies it to ABSPATH (live root)
       │                              │
  Attacker POSTs to it           Target now connects to attacker's
  with rogue DB credentials      MySQL database
──────────────────────────────────────────────────────────────────────

Result: The live site's wp-config.php now points to the attacker's MySQL server, which contains a pre-seeded administrator account.

Impact

  • Database takeover: All site data (posts, users, settings) replaced
  • Admin access: Attacker logs in as administrator
  • RCE: Theme/plugin editor → webshell → arbitrary command execution
  • Persistence: Survives WordPress re-installation (DB controls everything)

2. Attack Chain

Phase 0 ─► Prepare attacker MySQL with pre-seeded WordPress tables
           (admin user: attacker/pwned2026, blogname: "PWNED by CVE-2026-119977")

Phase 1 ─► Fingerprint target WordPress version via HTTP
           (RSS feed, meta tag, or version.php source leak)

Phase 2 ─► Compute predictable staging URL:
           {target}/wp-content/upgrade/wordpress-{next_ver}-no-content/wordpress/

Phase 3 ─► Aggressive POST-as-detection loop:
           Continuously POST setup-config.php?step=2 with attacker DB creds
           ├── 404           → staging not up yet (keep polling)
           ├── 200 + 0 bytes → extraction incomplete (retry fast)
           └── 200 + HTML    → SUCCESS: wp-config.php written!

Phase 4 ─► Verify DB takeover: GET target homepage, check for attacker markers

Phase 5 ─► Login as attacker admin (attacker / pwned2026)

Phase 6 ─► Deploy webshell via theme editor (functions.php injection)

Phase 7 ─► Interactive remote command execution

3. Architecture — How the Pieces Connect

Network Diagram

                        ┌─────────────────────────────────────┐
                        │         ATTACKER VPS                │
                        │         (e.g. 203.0.113.50)         │
                        │                                     │
                        │  ┌──────────────────────────────┐   │
                        │  │  exploit.py                   │   │
                        │  │  Python 3.8+ (stdlib only)    │   │
                        │  │                               │   │
                        │  │  Sends HTTP POST to target's  │   │
                        │  │  staging setup-config.php     │   │
                        │  │  with DB creds pointing to    │   │
                        │  │  THIS server's MySQL          │   │
                        │  └──────────┬───────────────────┘   │
                        │             │                        │
                        │  ┌──────────▼───────────────────┐   │
                        │  │  MySQL 8.0                    │   │
                        │  │  Port 3306 (open to target)   │   │
                        │  │                               │   │
                        │  │  Database: attacker_db        │   │
                        │  │  ├── wp_users (attacker admin)│   │
                        │  │  ├── wp_options (PWNED title) │   │
                        │  │  ├── wp_posts                 │   │
                        │  │  └── ... (12 tables total)    │   │
                        │  └──────────────────────────────┘   │
                        └────────────┬────────────────────────┘
                                     │
            HTTP POST (port 443/80)  │  MySQL (port 3306)
            ─────────────────────►   │  ◄─────────────────
                                     │
                        ┌────────────▼────────────────────────┐
                        │         TARGET SERVER               │
                        │         (WordPress 7.1.3)           │
                        │                                     │
                        │  During update, staging dir appears:│
                        │  wp-content/upgrade/                │
                        │    wordpress-7.1.4-no-content/      │
                        │      wordpress/                     │
                        │        wp-admin/                    │
                        │          setup-config.php  ◄── POST │
                        │        wp-config.php  ◄── WRITTEN   │
                        │                                     │
                        │  copy_dir() promotes wp-config.php  │
                        │  to ABSPATH (live root)             │
                        │                                     │
                        │  Site now connects to attacker DB   │
                        └─────────────────────────────────────┘

Critical Networking Requirement

The --atk-host parameter is NOT the attacker's local address. It is the MySQL hostname/IP as the TARGET server sees it:

टूल डाउनलोड करें

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 अंतिम OSINT टूलकिट: जाँच ग्राफ़, विश्वास स्कोरिंग, उपनाम परिवार, मानचित्र, टाइमलाइन और रिपोर्ट। 49 मॉड्यूल, 400+ साइटें, किसी API कुंजी की आवश्यकता नहीं।

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # घोस्टलॉक वन-टैप निष्पादन ऐप (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT प्लेटफ़ॉर्म जो Shadowserver रिपोर्ट्स को MongoDB में इनजेस्ट करता है और उन्हें इंटरैक्टिव मैप्स, विश्लेषण, निष्कर्षों, सलाहों और कार्यकारी डैशबोर्ड के रूप में पुनः प्रस्तुत करता है।

    371
  • 4

    redforge

    cybersecurity91/redforge

    ब्राउज़र-साइड रेड टीम टूलकिट, जिसमें रेकॉन, पेलोड जनरेशन, क्रेडेंशियल हमलों, क्रिप्टो, एन्कोडिंग और एंगेजमेंट रिपोर्टिंग के लिए 102 ऑफ़लाइन टूल्स हैं।

    336
  • 5

    ARTEX

    baarai/artex

    प्लानर/वर्कर एजेंट, एसेट और एक्सप्लोरेशन ग्राफ़, MITM ट्रैफ़िक रिकॉर्डिंग, और भेद्यता पुनःपरीक्षण के साथ LLM मल्टी-एजेंट स्वायत्त पेनेट्रेशन टेस्टिंग प्लेटफ़ॉर्म।

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI-मूल साइबरसुरक्षा के लिए कार्रवाई की प्रणाली—जहाँ इरादा नियंत्रित निष्पादन बन जाता है, साक्ष्य परिचालन स्मृति बन जाता है, और हर ऑपरेशन अगले को बेहतर बनाता है।

    322

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →