CVE-2024-13193

6.3 MEDIUM

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary SQL commands via the SEMCMS_Images.php file in SEMCMS's Image Library Management Page. It affects all SEMCMS installations up to version 4.8, potentially enabling unauthorized database access, data manipulation, or system compromise.

💻 Affected Systems

Products:
  • SEMCMS
Versions: Up to and including 4.8
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the Image Library Management component via SEMCMS_Images.php file.

📦 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 remote code execution.

🟠

Likely Case

Unauthorized database access allowing extraction of sensitive information like user credentials, personal data, or administrative access.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database permissions restricting damage to non-critical data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit code is publicly available on GitHub, making this easily exploitable by attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a version above 4.8 if available, or implement workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and parameterized queries for all user inputs in SEMCMS_Images.php

File Access Restriction

all

Restrict direct access to SEMCMS_Images.php if not required for functionality

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block SQL injection patterns
  • Restrict network access to SEMCMS administration interface to trusted IPs only

🔍 How to Verify

Check if Vulnerable:

Check if SEMCMS version is 4.8 or earlier and if SEMCMS_Images.php file exists in the installation.

Check Version:

Check SEMCMS version in admin panel or configuration files.

Verify Fix Applied:

Test SQL injection attempts against the Image Library Management functionality to confirm they are blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts from single IP
  • Unexpected file access to SEMCMS_Images.php

Network Indicators:

  • SQL injection patterns in HTTP requests
  • Unusual database connection attempts from web server

SIEM Query:

source="web_logs" AND (url="*SEMCMS_Images.php*" AND (query="*UNION*" OR query="*SELECT*" OR query="*INSERT*"))

🔗 References

📤 Share & Export