CVE-2024-5114

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 'index' parameter in the /view/teacher_attendance_history1.php file. This can lead to unauthorized data access, modification, or deletion. All users running version 1.0 are affected.

💻 Affected Systems

Products:
  • Campcodes Complete Web-Based School Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 1.0; no special configuration required

📦 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 attendance records and personal information, potential data manipulation

🟢

If Mitigated

Limited impact with proper input validation and database permissions

🌐 Internet-Facing: HIGH - Remote exploitation possible without authentication
🏢 Internal Only: MEDIUM - Still vulnerable but attack surface reduced

🎯 Exploit Status

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

Public exploit available on GitHub; simple SQL injection requiring minimal technical skill

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Parameterized Queries

all

Implement proper input validation and use prepared statements/parameterized queries for all database operations

Modify /view/teacher_attendance_history1.php to use prepared statements

Web Application Firewall (WAF)

all

Deploy WAF with SQL injection rules to block malicious requests

Configure WAF to block SQL injection patterns

🧯 If You Can't Patch

  • Restrict network access to only trusted IP addresses
  • Implement database user with minimal required permissions

🔍 How to Verify

Check if Vulnerable:

Test the /view/teacher_attendance_history1.php endpoint with SQL injection payloads in the 'index' parameter

Check Version:

Check system version in admin panel or configuration files

Verify Fix Applied:

Test that SQL injection attempts no longer succeed and return proper error handling

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple requests to teacher_attendance_history1.php with suspicious parameters

Network Indicators:

  • SQL keywords in HTTP GET parameters
  • Unusual database query patterns

SIEM Query:

source="web_logs" AND uri="/view/teacher_attendance_history1.php" AND (param="index" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|--|#|\/\*)")

🔗 References

📤 Share & Export