CVE-2024-5236

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in Campcodes Complete Web-Based School Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the 'date' parameter in /view/teacher_salary_invoice1.php. This can lead to unauthorized data access, modification, or deletion. All users running version 1.0 of this web-based school management system are affected.

💻 Affected Systems

Products:
  • Campcodes Complete Web-Based School Management System
Versions: 1.0
Operating Systems: All platforms running PHP web servers
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 1.0. The vulnerability is in the core application code, not dependent on specific configurations.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive student/teacher data theft, system takeover, or data destruction

🟠

Likely Case

Unauthorized access to sensitive information (student records, financial data, personal information)

🟢

If Mitigated

Limited impact with proper input validation and database permissions

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and the system is typically internet-facing for school access
🏢 Internal Only: MEDIUM - Even internal systems could be exploited by malicious insiders or compromised internal accounts

🎯 Exploit Status

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

Exploit details are publicly available in GitHub repositories. SQL injection vulnerabilities are commonly weaponized with automated tools.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider migrating to a supported, maintained alternative school management system.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement proper input validation and parameterized queries for the 'date' parameter in teacher_salary_invoice1.php

Modify /view/teacher_salary_invoice1.php to use prepared statements with parameterized queries

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules

Configure WAF to block SQL injection patterns in URL parameters

🧯 If You Can't Patch

  • Isolate the system behind a firewall with strict access controls and monitor all traffic to /view/teacher_salary_invoice1.php
  • Implement database-level controls: use least privilege accounts, enable audit logging, and regularly backup data

🔍 How to Verify

Check if Vulnerable:

Test the /view/teacher_salary_invoice1.php endpoint with SQL injection payloads in the 'date' parameter

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that parameterized queries are implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in application logs
  • Multiple failed login attempts following SQL injection patterns
  • Unexpected database queries from web application

Network Indicators:

  • HTTP requests to /view/teacher_salary_invoice1.php with SQL keywords in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/view/teacher_salary_invoice1.php" AND (param="date" AND value CONTAINS "UNION" OR value CONTAINS "SELECT" OR value CONTAINS "OR 1=1")

🔗 References

📤 Share & Export