CVE-2025-15004

6.3 MEDIUM

📋 TL;DR

This SQL injection vulnerability in DedeCMS allows attackers to manipulate database queries through the orderby parameter in /freelist_main.php. Attackers can potentially read, modify, or delete database content. All DedeCMS installations up to version 5.7.118 are affected.

💻 Affected Systems

Products:
  • DedeCMS
Versions: Up to and including 5.7.118
Operating Systems: All platforms running DedeCMS
Default Config Vulnerable: ⚠️ Yes
Notes: All standard installations are vulnerable; no special configuration required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Unauthorized data access, extraction of sensitive information like user credentials, and potential privilege escalation.

🟢

If Mitigated

Limited impact if proper input validation and WAF rules are in place, though some data exposure may still occur.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects web-facing systems directly.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but have reduced attack surface compared to internet-facing instances.

🎯 Exploit Status

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

Public exploit details exist, making this easily weaponizable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Monitor DedeCMS vendor channels for updates and apply immediately when released.

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize the orderby parameter before processing

Modify /freelist_main.php to validate orderby parameter against allowed values

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: Detect and block SQL injection attempts in orderby parameter

🧯 If You Can't Patch

  • Restrict access to /freelist_main.php via firewall rules or authentication
  • Implement database query parameterization and prepared statements in the affected code

🔍 How to Verify

Check if Vulnerable:

Check if DedeCMS version is ≤ 5.7.118 and /freelist_main.php exists and accepts orderby parameter

Check Version:

Check DedeCMS version in system configuration or admin panel

Verify Fix Applied:

Test SQL injection attempts against the orderby parameter to confirm they are blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple requests to /freelist_main.php with suspicious orderby values
  • Database error messages containing SQL syntax

Network Indicators:

  • HTTP requests with SQL injection patterns in orderby parameter
  • Unusual outbound database connections from web server

SIEM Query:

source="web_logs" AND uri="/freelist_main.php" AND (orderby CONTAINS "UNION" OR orderby CONTAINS "SELECT" OR orderby CONTAINS "--")

🔗 References

📤 Share & Export