Skip to main content
CVE Vulnerability Database

CVE-2024-5105: School Management System SQL Injection Flaw

CVE-2024-5105 is a critical SQL injection vulnerability in Campcodes Complete Web-based School Management System affecting student payment processing. This article covers technical details, security risks, and mitigation strategies.

Published:

CVE-2024-5105 Overview

CVE-2024-5105 is a SQL injection vulnerability in Campcodes Complete Web-Based School Management System version 1.0. The flaw exists in /view/student_payment_details.php, where the index parameter is passed to a database query without proper sanitization. Attackers can manipulate this parameter to inject arbitrary SQL statements remotely. The exploit has been publicly disclosed and is tracked as VulDB entry VDB-265095. The vulnerability is categorized under [CWE-89] Improper Neutralization of Special Elements used in an SQL Command.

Critical Impact

Remote attackers with low privileges can inject SQL statements through the index parameter, exposing student payment records and potentially compromising database integrity.

Affected Products

  • Campcodes Complete Web-Based School Management System 1.0
  • Component: /view/student_payment_details.php
  • CPE: cpe:2.3:a:campcodes:complete_web-based_school_management_system:1.0

Discovery Timeline

  • 2024-05-19 - CVE-2024-5105 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-5105

Vulnerability Analysis

The vulnerability resides in the student_payment_details.php script, which accepts an index HTTP parameter used to retrieve payment records from the backend database. The application concatenates this user-controlled value directly into a SQL statement without parameterization or input validation. An attacker sending a crafted index value can alter query logic to read, modify, or exfiltrate arbitrary database rows.

Exploitation requires network access and a low-privileged authenticated session, since the vulnerable endpoint lives behind the school portal login. No user interaction is required. Because the exploit code is publicly available, threat actors can weaponize this issue with minimal effort against exposed installations.

Root Cause

The root cause is missing input neutralization on the index parameter before it reaches the SQL layer. The application relies on direct string concatenation rather than prepared statements or parameterized queries, a well-documented anti-pattern classified under [CWE-89]. This design flaw permits inline SQL fragments and stacked query techniques such as UNION SELECT and boolean-based blind extraction.

Attack Vector

An attacker authenticates to the school management portal and issues an HTTP request to /view/student_payment_details.php with a manipulated index parameter. Injected payloads can enumerate database schemas, extract credentials from user tables, or modify payment records. Refer to the published GitHub Vulnerability Report and VulDB #265095 for the disclosed exploitation details.

Detection Methods for CVE-2024-5105

Indicators of Compromise

  • HTTP requests to /view/student_payment_details.php containing SQL metacharacters such as ', --, UNION, SELECT, SLEEP(, or 0x in the index parameter.
  • Database error strings returned in HTTP responses referencing MySQL syntax errors.
  • Anomalous long-running queries or spikes in SELECT operations against the student_payment tables.
  • Access log entries showing repeated parameter enumeration from a single source IP.

Detection Strategies

  • Deploy a web application firewall (WAF) signature to flag SQL injection payloads targeting the index parameter.
  • Enable database query logging and alert on queries that deviate from the application's expected query fingerprints.
  • Correlate authentication events with subsequent access to student_payment_details.php to identify low-privileged accounts probing the endpoint.

Monitoring Recommendations

  • Monitor outbound traffic from the web server for unusual data volumes that could indicate mass record exfiltration.
  • Track failed and malformed SQL statements in MySQL error logs.
  • Alert on new administrative or high-privilege database accounts created outside change-management windows.

How to Mitigate CVE-2024-5105

Immediate Actions Required

  • Restrict access to the school management portal to trusted networks or VPN users until a patch is applied.
  • Audit the student_payment and user tables for unauthorized modifications or data access.
  • Rotate database credentials and any application secrets that may have been exposed through the vulnerable endpoint.
  • Review authentication logs for suspicious low-privileged account activity.

Patch Information

No vendor advisory or official patch has been published for Campcodes Complete Web-Based School Management System 1.0 at the time of this writing. Organizations running this software should consider decommissioning the affected version or applying compensating controls until the vendor addresses the issue. Track vendor communications via the VulDB CTI record for any updates.

Workarounds

  • Modify student_payment_details.php to use parameterized queries or prepared statements instead of string concatenation.
  • Apply server-side input validation that rejects any index value that is not a positive integer.
  • Deploy WAF rules blocking common SQL injection payloads targeting the vulnerable endpoint.
  • Enforce least-privilege database accounts so that the application user cannot read sensitive tables beyond its scope.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.