CVE-2023-51050

9.8 CRITICAL

📋 TL;DR

S-CMS v5.0 contains a SQL injection vulnerability in the A_productauth parameter at /admin/ajax.php. This allows attackers to execute arbitrary SQL commands on the database. All systems running S-CMS v5.0 are affected.

💻 Affected Systems

Products:
  • S-CMS
Versions: v5.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires access to /admin/ajax.php endpoint. The A_productauth parameter must be accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, authentication bypass, and potential remote code execution via database functions.

🟠

Likely Case

Database information disclosure, data manipulation, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW

SQL injection via GET/POST parameter suggests straightforward exploitation with common SQLi tools.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available or implementing workarounds.

🔧 Temporary Workarounds

Input Validation Filter

all

Implement strict input validation for the A_productauth parameter to only accept expected values.

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns targeting the /admin/ajax.php endpoint.

🧯 If You Can't Patch

  • Restrict access to /admin/ajax.php to trusted IP addresses only
  • Implement parameterized queries or prepared statements for all database interactions

🔍 How to Verify

Check if Vulnerable:

Test the /admin/ajax.php endpoint with SQL injection payloads in the A_productauth parameter and observe database errors or unexpected behavior.

Check Version:

Check S-CMS version in admin panel or configuration files; typically found in version.php or similar files.

Verify Fix Applied:

Test with SQL injection payloads after implementing fixes; successful payloads should be rejected or sanitized without database errors.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in access logs for /admin/ajax.php
  • Database error messages in application logs
  • Multiple failed parameter manipulation attempts

Network Indicators:

  • SQL keywords in HTTP requests to /admin/ajax.php
  • Unusual parameter values in POST/GET requests

SIEM Query:

source="web_access.log" AND uri="/admin/ajax.php" AND (param="A_productauth" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|exec|--|#|;)")

🔗 References

📤 Share & Export