CVE-2025-5493

6.3 MEDIUM

📋 TL;DR

This CVE describes a critical SQL injection vulnerability in Baison Channel Middleware Product 2.0.1. Attackers can remotely exploit the /e3api/api/main/ToJsonByControlName endpoint by manipulating the 'data' parameter to execute arbitrary SQL commands. Organizations using this specific version of the middleware are affected.

💻 Affected Systems

Products:
  • Baison Channel Middleware Product
Versions: 2.0.1
Operating Systems: Unknown
Default Config Vulnerable: ⚠️ Yes
Notes: Specific functionality in the /e3api/api/main/ToJsonByControlName endpoint is vulnerable. Other versions may be affected but not confirmed.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, and potential remote code execution through database functions.

🟠

Likely Case

Unauthorized data access, data exfiltration, and potential privilege escalation within the database.

🟢

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 have been publicly disclosed on Medium, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

No official patch available. Check with vendor for updates or apply workarounds.

🔧 Temporary Workarounds

Web Application Firewall (WAF) Rules

all

Implement WAF rules to block SQL injection patterns targeting the /e3api/api/main/ToJsonByControlName endpoint.

Input Validation Filter

all

Add input validation to sanitize the 'data' parameter before processing.

🧯 If You Can't Patch

  • Isolate the vulnerable system from the internet using network segmentation.
  • Implement strict access controls and monitor all traffic to the /e3api/api/main/ToJsonByControlName endpoint.

🔍 How to Verify

Check if Vulnerable:

Test the /e3api/api/main/ToJsonByControlName endpoint with SQL injection payloads in the 'data' parameter and observe database errors or unexpected responses.

Check Version:

Check application configuration or contact vendor for version identification methods.

Verify Fix Applied:

Verify that SQL injection payloads no longer produce database errors or unexpected data returns.

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries originating from the middleware application
  • SQL syntax errors in application logs
  • Multiple failed login attempts or data access patterns

Network Indicators:

  • Unusual POST requests to /e3api/api/main/ToJsonByControlName with SQL keywords in parameters
  • Outbound database connections from unexpected sources

SIEM Query:

source="application_logs" AND ("SQL syntax" OR "database error" OR "/e3api/api/main/ToJsonByControlName")

🔗 References

📤 Share & Export