CVE-2024-10596

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in ESAFENET CDG 5 allows remote attackers to execute arbitrary SQL commands via the 'id' parameter in the delEntryptPolicySort function. Attackers could potentially read, modify, or delete database contents. All ESAFENET CDG 5 installations with the vulnerable component are affected.

💻 Affected Systems

Products:
  • ESAFENET CDG 5
Versions: All versions containing the vulnerable /com/esafenet/servlet/system/EncryptPolicyTypeService.java file
Operating Systems: Any OS running ESAFENET CDG 5
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the encryption policy management component and affects all default installations.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover via SQL injection to RCE escalation.

🟠

Likely Case

Unauthorized data access, data manipulation, or denial of service affecting the encryption policy management system.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and network segmentation in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit details are publicly available, making this easily weaponizable. The vendor has not responded to disclosure attempts.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: Yes

Instructions:

1. Contact ESAFENET for official patch or updated version. 2. If patch is provided, apply it following vendor instructions. 3. Restart the application/service. 4. Verify the fix.

🔧 Temporary Workarounds

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns targeting the vulnerable endpoint.

# WAF-specific rules would vary by platform

Input Validation Filter

all

Implement application-level input validation to sanitize the 'id' parameter before processing.

# Application-specific code modifications required

🧯 If You Can't Patch

  • Network segmentation: Isolate ESAFENET CDG 5 systems from untrusted networks and limit access to authorized users only.
  • Monitoring and logging: Implement enhanced logging for SQL queries and monitor for suspicious database activity patterns.

🔍 How to Verify

Check if Vulnerable:

Check if the file /com/esafenet/servlet/system/EncryptPolicyTypeService.java exists and contains the vulnerable delEntryptPolicySort function with unsanitized 'id' parameter.

Check Version:

# Check ESAFENET CDG version through application interface or configuration files

Verify Fix Applied:

Verify that SQL injection attempts against the vulnerable endpoint are properly blocked or that parameterized queries are implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed login attempts or parameter manipulation
  • Database error messages containing SQL syntax

Network Indicators:

  • HTTP requests to /com/esafenet/servlet/system/EncryptPolicyTypeService with SQL injection patterns in parameters
  • Unusual database connection patterns

SIEM Query:

source="application_logs" AND ("delEntryptPolicySort" OR "EncryptPolicyTypeService") AND (sql OR injection OR union OR select)

🔗 References

📤 Share & Export