CVE-2022-24231

9.8 CRITICAL

📋 TL;DR

Simple Student Information System v1.0 contains a SQL injection vulnerability in the add/Student endpoint that allows attackers to execute arbitrary SQL commands. This affects all deployments of this specific software version. Attackers can potentially access, modify, or delete sensitive student data.

💻 Affected Systems

Products:
  • Simple Student Information System
Versions: v1.0
Operating Systems: Any OS running PHP/MySQL web server
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of v1.0 regardless of configuration.

📦 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 RCE chaining.

🟠

Likely Case

Unauthorized access to sensitive student information (PII, grades, records) and potential data manipulation.

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH - Web application with direct SQL injection vulnerability exposed to internet.
🏢 Internal Only: HIGH - Even internal systems are vulnerable to insider threats or compromised internal hosts.

🎯 Exploit Status

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

SQL injection via add/Student endpoint requires no authentication and has public proof-of-concept code available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None found

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative software or implementing custom fixes.

🔧 Temporary Workarounds

Implement Input Validation

all

Add server-side validation to sanitize all user inputs in add/Student endpoint

Edit PHP files to implement mysqli_real_escape_string() or prepared statements

Web Application Firewall (WAF)

all

Deploy WAF with SQL injection rules to block malicious requests

Configure mod_security rules or cloud WAF service

🧯 If You Can't Patch

  • Isolate the system behind a firewall with strict access controls
  • Implement network segmentation to limit database access

🔍 How to Verify

Check if Vulnerable:

Test add/Student endpoint with SQL injection payloads like ' OR '1'='1

Check Version:

Check software version in admin panel or readme files

Verify Fix Applied:

Test with same payloads after implementing parameterized queries - should return error or no data leakage

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed login attempts from single IP
  • Suspicious POST requests to add/Student

Network Indicators:

  • SQL keywords in HTTP POST parameters
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND (uri="/add/Student" AND (param CONTAINS "UNION" OR param CONTAINS "SELECT" OR param CONTAINS "' OR"))

🔗 References

📤 Share & Export