CVE-2020-20975

9.8 CRITICAL

📋 TL;DR

This is a SQL injection vulnerability in Gxlcms v1.1 that allows attackers to execute arbitrary SQL commands via the $filename parameter in the dataaction.class.php file. It affects all installations of Gxlcms v1.1, potentially compromising the entire database and application.

💻 Affected Systems

Products:
  • Gxlcms
Versions: v1.1
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of Gxlcms v1.1 are vulnerable. The vulnerability exists in the default installation.

📦 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 if proper input validation and parameterized queries are implemented, though some risk remains.

🌐 Internet-Facing: HIGH - Web applications are typically internet-facing and this vulnerability requires no authentication.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this if they have network access to the application.

🎯 Exploit Status

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

SQL injection vulnerabilities are commonly exploited and public proof-of-concept exists. No authentication required.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: No official vendor advisory found

Restart Required: No

Instructions:

1. Check for official patch from Gxlcms developers
2. If no patch available, implement manual fixes or upgrade to newer version
3. Apply input validation and parameterized queries to affected file

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add input validation and sanitization to the $filename parameter in dataaction.class.php

Edit \lib\admin\action\dataaction.class.php and add input validation for $filename parameter

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection attempts

Configure WAF to block SQL injection patterns in filename parameters

🧯 If You Can't Patch

  • Isolate the vulnerable system from the internet and restrict access to trusted networks only
  • Implement strict input validation at the application level and monitor for SQL injection attempts

🔍 How to Verify

Check if Vulnerable:

Check if Gxlcms version is 1.1 and examine \lib\admin\action\dataaction.class.php for lack of input validation on $filename parameter

Check Version:

Check Gxlcms configuration files or admin panel for version information

Verify Fix Applied:

Test the $filename parameter with SQL injection payloads to ensure they are properly sanitized or blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts after SQL injection attempts
  • Unexpected file operations in application logs

Network Indicators:

  • SQL injection patterns in HTTP requests to dataaction.class.php
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND (url="*dataaction.class.php*" AND (param="*filename=*' OR *" OR param="*filename=*;--*"))

🔗 References

📤 Share & Export