CVE-2021-37358

9.8 CRITICAL

📋 TL;DR

This is a critical SQL injection vulnerability in SEACMS v210530 that allows remote attackers to execute arbitrary SQL commands via the admin_ajax.php endpoint. Attackers can potentially gain full control of affected systems. All installations using the vulnerable version are affected.

💻 Affected Systems

Products:
  • SEACMS
Versions: v210530 (2021-05-30)
Operating Systems: All platforms running SEACMS
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerable component is part of the admin interface but may be accessible without authentication

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise leading to data theft, ransomware deployment, and persistent backdoor installation

🟠

Likely Case

Database exfiltration, privilege escalation, and remote code execution

🟢

If Mitigated

Limited data exposure if proper input validation and WAF rules are in place

🌐 Internet-Facing: HIGH - The vulnerable endpoint is accessible remotely without authentication
🏢 Internal Only: HIGH - Even internal systems are vulnerable to authenticated or unauthenticated attacks

🎯 Exploit Status

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

Public exploit code is available and exploitation requires minimal technical skill

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after v210530

Vendor Advisory: No official vendor advisory found

Restart Required: No

Instructions:

1. Update to the latest SEACMS version
2. Apply security patches if available from the SEACMS project
3. Verify the admin_ajax.php file has been updated

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize the v_name parameter

Modify admin_ajax.php to validate and sanitize all user inputs before processing

Access Restriction

all

Restrict access to admin_ajax.php to trusted IP addresses only

Add .htaccess rules or web server configuration to limit access

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with SQL injection rules
  • Disable or remove the admin_ajax.php file if not required

🔍 How to Verify

Check if Vulnerable:

Check if SEACMS version is v210530 and test the admin_ajax.php endpoint with SQL injection payloads

Check Version:

Check SEACMS version in configuration files or admin panel

Verify Fix Applied:

Test the vulnerable endpoint with SQL injection payloads to confirm they are blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple requests to admin_ajax.php with suspicious parameters

Network Indicators:

  • HTTP requests to admin_ajax.php containing SQL keywords like UNION, SELECT, INSERT

SIEM Query:

source="web_logs" AND uri="*admin_ajax.php*" AND (query="*UNION*" OR query="*SELECT*" OR query="*INSERT*")

🔗 References

📤 Share & Export