CVE-2022-25125

9.8 CRITICAL

📋 TL;DR

MCMS v5.2.4 contains a SQL injection vulnerability in the search.do endpoint at /mdiy/dict/listExcludeApp. This allows attackers to execute arbitrary SQL commands on the database. Any organization running this specific version of MCMS is affected.

💻 Affected Systems

Products:
  • MCMS
Versions: v5.2.4
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects MCMS v5.2.4 with the vulnerable endpoint accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or full system takeover via subsequent attacks.

🟠

Likely Case

Unauthorized data access, extraction of sensitive information, or database manipulation.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

SQL injection via search.do parameter requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: v5.2.5 or later

Vendor Advisory: https://gitee.com/mingSoft/MCMS/issues/I4TGYI

Restart Required: Yes

Instructions:

1. Backup database and application files. 2. Upgrade to MCMS v5.2.5 or later. 3. Restart the application server. 4. Verify the fix by testing the vulnerable endpoint.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection rules to block malicious requests.

Input Validation Filter

all

Implement server-side input validation to sanitize search parameters.

🧯 If You Can't Patch

  • Restrict network access to the MCMS application to trusted IPs only.
  • Disable or block access to the /mdiy/dict/listExcludeApp endpoint via web server configuration.

🔍 How to Verify

Check if Vulnerable:

Check if running MCMS v5.2.4 and test the /mdiy/dict/listExcludeApp endpoint with SQL injection payloads.

Check Version:

Check MCMS version in application configuration or admin panel.

Verify Fix Applied:

Confirm version is v5.2.5 or later and retest the endpoint with SQL injection payloads to ensure they are blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts or parameter manipulation in web logs

Network Indicators:

  • HTTP requests to /mdiy/dict/listExcludeApp with SQL keywords in parameters

SIEM Query:

source="web_logs" AND uri="/mdiy/dict/listExcludeApp" AND (param CONTAINS "UNION" OR param CONTAINS "SELECT" OR param CONTAINS "OR 1=1")

🔗 References

📤 Share & Export