CVE-2020-10505

9.8 CRITICAL

📋 TL;DR

This SQL injection vulnerability in School Manage System allows attackers to execute arbitrary SQL queries through union-based injection. Attackers can extract database schema and credentials, potentially compromising the entire system. All users of affected versions are at risk.

💻 Affected Systems

Products:
  • School Manage System by ALLE INFORMATION CO., LTD.
Versions: All versions before 2020
Operating Systems: Any OS running the application
Default Config Vulnerable: ⚠️ Yes
Notes: Affects web interface components accepting user input without proper sanitization.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, credential harvesting, and potential remote code execution through database functions.

🟠

Likely Case

Database schema enumeration and credential theft, enabling unauthorized access to sensitive student/administrator data.

🟢

If Mitigated

Limited information disclosure if proper input validation and WAF rules are in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Union-based SQL injection is well-documented and easily weaponized with automated tools like sqlmap.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2020 version or later

Vendor Advisory: https://www.chtsecurity.com/news/be93c576-e421-489f-9453-a462bdd4c90d

Restart Required: Yes

Instructions:

1. Contact ALLE INFORMATION CO., LTD. for updated version. 2. Backup database and configuration. 3. Install 2020+ version. 4. Restart application services. 5. Verify functionality.

🔧 Temporary Workarounds

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

# Example ModSecurity rule: SecRule ARGS "union.*select" "id:1001,phase:2,deny,status:403"

Input Validation Filter

all

Implement application-level input validation to reject suspicious SQL patterns

# Example PHP filter: if (preg_match('/union.*select/i', $_GET['param'])) { die('Invalid input'); }

🧯 If You Can't Patch

  • Isolate the system behind a reverse proxy with strict input filtering
  • Implement network segmentation to limit database access from application servers

🔍 How to Verify

Check if Vulnerable:

Test vulnerable endpoints with SQL injection payloads like: ' UNION SELECT 1,2,3--

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Attempt SQL injection tests after patch; successful queries should return error pages or be blocked.

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests containing UNION, SELECT, INFORMATION_SCHEMA, or database() patterns
  • Unusual database query patterns from application user

Network Indicators:

  • SQL error messages in HTTP responses
  • Repeated parameter fuzzing attempts

SIEM Query:

source="web_logs" AND ("UNION SELECT" OR "INFORMATION_SCHEMA" OR "database()")

🔗 References

📤 Share & Export