CVE-2021-24280

8.8 HIGH

📋 TL;DR

This vulnerability in the Redirection for Contact Form 7 WordPress plugin allows any authenticated user (even low-privileged subscribers) to execute PHP object injection via the import_from_debug AJAX action. This can lead to remote code execution, affecting all WordPress sites running vulnerable versions of this plugin.

💻 Affected Systems

Products:
  • Redirection for Contact Form 7 WordPress Plugin
Versions: All versions before 2.3.4
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin enabled. Any authenticated user can exploit this, not just administrators.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full site compromise leading to complete administrative control, data theft, malware installation, or site defacement.

🟠

Likely Case

Unauthorized code execution leading to backdoor installation, data exfiltration, or privilege escalation.

🟢

If Mitigated

Limited impact if proper authentication controls and input validation are in place, but still significant risk.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access but is straightforward once authenticated. Public proof-of-concept code exists.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.3.4

Vendor Advisory: https://wordpress.org/plugins/wpcf7-redirect/

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Redirection for Contact Form 7'. 4. Click 'Update Now' if available, or manually update to version 2.3.4 or later.

🔧 Temporary Workarounds

Disable vulnerable AJAX endpoint

all

Remove or restrict access to the vulnerable import_from_debug AJAX action

Add to theme's functions.php or custom plugin: remove_action('wp_ajax_import_from_debug', 'import_from_debug_callback');

Restrict plugin access

linux

Temporarily disable the plugin until patched

wp plugin deactivate wpcf7-redirect

🧯 If You Can't Patch

  • Remove the plugin entirely if not essential
  • Implement strict access controls and monitor for suspicious AJAX requests to import_from_debug

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Redirection for Contact Form 7 → Version number

Check Version:

wp plugin get wpcf7-redirect --field=version

Verify Fix Applied:

Confirm plugin version is 2.3.4 or higher in WordPress admin

📡 Detection & Monitoring

Log Indicators:

  • POST requests to /wp-admin/admin-ajax.php with action=import_from_debug
  • Unusual PHP execution errors or warnings

Network Indicators:

  • HTTP POST requests containing serialized PHP objects to admin-ajax.php

SIEM Query:

source="web_access_logs" AND uri="/wp-admin/admin-ajax.php" AND post_data="*action=import_from_debug*"

🔗 References

📤 Share & Export