CVE-2024-12112

6.4 MEDIUM

📋 TL;DR

This vulnerability allows authenticated WordPress users with Subscriber-level access or higher to inject malicious scripts into forms created with the Easy Form Builder plugin. When other users view pages containing these compromised forms, the scripts execute in their browsers. All WordPress sites using Easy Form Builder version 3.8.8 or earlier are affected.

💻 Affected Systems

Products:
  • Easy Form Builder WordPress Plugin
Versions: All versions up to and including 3.8.8
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with Easy Form Builder plugin enabled. Attackers need at least Subscriber-level WordPress user accounts.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator credentials, redirect users to malicious sites, deface websites, or perform actions on behalf of authenticated users.

🟠

Likely Case

Attackers with subscriber accounts inject malicious scripts to steal session cookies or redirect users to phishing pages.

🟢

If Mitigated

With proper input validation and output escaping, no script injection would occur even if malicious input is submitted.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access but is technically simple once an attacker has subscriber credentials.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.8.9 or later

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3215764/easy-form-builder/trunk/includes/admin/class-Emsfb-create.php

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find Easy Form Builder and click 'Update Now'. 4. Verify version is 3.8.9 or higher.

🔧 Temporary Workarounds

Disable vulnerable AJAX endpoint

all

Remove or restrict access to the vulnerable 'add_form_Emsfb' AJAX action

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

Restrict user registration

all

Temporarily disable new user registration to prevent attackers from creating subscriber accounts

In WordPress admin: Settings → General → uncheck 'Anyone can register'

🧯 If You Can't Patch

  • Disable the Easy Form Builder plugin entirely until patched
  • Implement strict Content Security Policy (CSP) headers to block inline script execution

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Easy Form Builder → Version. If version is 3.8.8 or lower, you are vulnerable.

Check Version:

wp plugin list --name=easy-form-builder --field=version

Verify Fix Applied:

After updating, verify version is 3.8.9 or higher. Test form creation to ensure name parameter properly sanitizes HTML/script input.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to /wp-admin/admin-ajax.php with action=add_form_Emsfb containing script tags
  • Multiple failed login attempts followed by successful subscriber login

Network Indicators:

  • HTTP requests with script payloads in 'name' parameter to WordPress AJAX endpoints

SIEM Query:

source="wordpress.log" AND "add_form_Emsfb" AND ("<script" OR "javascript:")

🔗 References

📤 Share & Export