CVE-2024-4909

6.3 MEDIUM

📋 TL;DR

This is a critical SQL injection vulnerability in Campcodes Complete Web-Based School Management System 1.0. Attackers can manipulate the 'due_year' parameter in the /view/student_due_payment.php file to execute arbitrary SQL commands remotely. All users running this software are affected.

💻 Affected Systems

Products:
  • Campcodes Complete Web-Based School Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. Any system with the vulnerable file accessible is affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, authentication bypass, or remote code execution depending on database configuration and privileges.

🟠

Likely Case

Unauthorized access to sensitive student and school data, including personal information, financial records, and academic data.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database permission restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Public exploit details are available in GitHub repositories. The vulnerability requires no authentication and has simple exploitation vectors.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None known

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries in the vulnerable file, or replace with alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

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

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests

🧯 If You Can't Patch

  • Implement network segmentation to isolate the vulnerable system from critical assets
  • Deploy database monitoring and alerting for suspicious SQL queries

🔍 How to Verify

Check if Vulnerable:

Test the /view/student_due_payment.php endpoint with SQL injection payloads in the due_year parameter

Check Version:

Check the software version in the application interface or configuration files

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that input validation is properly implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in application logs
  • Multiple failed SQL injection attempts
  • Suspicious parameter values in access logs

Network Indicators:

  • HTTP requests with SQL keywords in parameters
  • Unusual database query patterns from web server

SIEM Query:

source="web_logs" AND (uri="/view/student_due_payment.php" AND (param="due_year" AND value CONTAINS "' OR" OR value CONTAINS "UNION" OR value CONTAINS "SELECT"))

🔗 References

📤 Share & Export