CVE-2024-34936

8.6 HIGH

📋 TL;DR

This SQL injection vulnerability in Campcodes Complete Web-Based School Management System 1.0 allows attackers to execute arbitrary SQL commands through the month parameter in /view/event1.php. This could lead to unauthorized data access, modification, or deletion. Organizations using this specific version of the school management system are affected.

💻 Affected Systems

Products:
  • Campcodes Complete Web-Based School Management System
Versions: 1.0
Operating Systems: Any OS running PHP web server
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 1.0 regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive student/teacher data theft, system takeover, and potential ransomware deployment.

🟠

Likely Case

Data exfiltration of sensitive information (grades, personal details, financial records) and potential privilege escalation.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-critical data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

SQL injection via month parameter requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Input Validation Filter

all

Add server-side validation to only accept numeric month values (1-12)

Modify /view/event1.php to validate month parameter before SQL query

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: Detect and block SQL keywords in month parameter

🧯 If You Can't Patch

  • Isolate the system behind a reverse proxy with strict input validation
  • Implement database user with minimal permissions (read-only where possible)

🔍 How to Verify

Check if Vulnerable:

Test /view/event1.php?month=1' OR '1'='1 to see if SQL error or unexpected behavior occurs

Check Version:

Check system documentation or admin panel for version information

Verify Fix Applied:

Test same payload after fixes - should return error message or sanitized response

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in web server logs
  • Unusual database queries from web application user
  • Multiple failed parameter validation attempts

Network Indicators:

  • HTTP requests to /view/event1.php with SQL keywords in parameters
  • Unusual database traffic patterns

SIEM Query:

source="web_server" AND uri="/view/event1.php" AND (param="month" AND value CONTAINS "'")

🔗 References

📤 Share & Export