CVE-2021-4434

10.0 CRITICAL

📋 TL;DR

This vulnerability in the WordPress Social Warfare plugin allows attackers to execute arbitrary code on the server via the 'swp_url' parameter. It affects all WordPress sites running Social Warfare versions up to 3.5.2. Attackers can take full control of vulnerable websites.

💻 Affected Systems

Products:
  • WordPress Social Warfare Plugin
Versions: All versions up to and including 3.5.2
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with the vulnerable plugin version installed and activated.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete server compromise allowing attackers to install malware, steal data, deface websites, or use the server for further attacks.

🟠

Likely Case

Website defacement, data theft, or installation of backdoors for persistent access.

🟢

If Mitigated

Limited impact if proper network segmentation and least privilege principles are implemented.

🌐 Internet-Facing: HIGH - WordPress sites are typically internet-facing and this vulnerability requires no authentication.
🏢 Internal Only: LOW - Only affects WordPress installations, which are rarely used internally-only.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: CONFIRMED
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Public exploit code is available and exploitation requires minimal technical skill.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.5.3 and later

Vendor Advisory: https://wordpress.org/plugins/social-warfare/#developers

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find Social Warfare and click 'Update Now'. 4. Verify version is 3.5.3 or higher.

🔧 Temporary Workarounds

Disable Social Warfare Plugin

all

Temporarily disable the vulnerable plugin until patching is possible.

wp plugin deactivate social-warfare

Web Application Firewall Rule

all

Block requests containing malicious 'swp_url' parameter patterns.

🧯 If You Can't Patch

  • Remove the Social Warfare plugin completely from the WordPress installation
  • Implement strict network segmentation to isolate the WordPress server

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel → Plugins → Social Warfare → Version number. If version is 3.5.2 or lower, you are vulnerable.

Check Version:

wp plugin get social-warfare --field=version

Verify Fix Applied:

After updating, verify Social Warfare version shows 3.5.3 or higher in WordPress admin.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to WordPress containing 'swp_url' parameter with suspicious payloads
  • Sudden appearance of new PHP files in WordPress directories

Network Indicators:

  • HTTP requests with encoded PHP code in 'swp_url' parameter
  • Outbound connections from WordPress server to unknown IPs

SIEM Query:

source="wordpress.log" AND "swp_url" AND ("php" OR "system" OR "exec" OR "shell")

🔗 References

📤 Share & Export