CVE-2024-44640

6.5 MEDIUM

📋 TL;DR

CVE-2024-44640 is an SQL injection vulnerability in PHPGurukul Student Record System that allows attackers to manipulate database queries through course-related parameters. This affects administrators and users of version 3.20 who can access the add-course.php functionality. Successful exploitation could lead to unauthorized data access or manipulation.

💻 Affected Systems

Products:
  • PHPGurukul Student Record System
Versions: Version 3.20
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires access to add-course.php functionality, typically available to authenticated users with course management permissions.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive student records, administrative credentials theft, and potential remote code execution through database functions.

🟠

Likely Case

Unauthorized access to student records, course data manipulation, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries preventing SQL injection.

🌐 Internet-Facing: HIGH - The vulnerability is in a web application component that is typically internet-facing, allowing remote exploitation.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this to escalate privileges or access sensitive data.

🎯 Exploit Status

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

SQL injection via course-short, course-full, and cdate parameters requires basic web application testing knowledge. Authentication is typically required to access the vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://phpgurukul.com/student-record-system-php

Restart Required: No

Instructions:

1. Check vendor website for updated version. 2. If no patch available, implement parameterized queries in add-course.php. 3. Validate and sanitize all user inputs for course-short, course-full, and cdate parameters.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation to reject malicious input in course parameters

Modify add-course.php to include: $course_short = mysqli_real_escape_string($conn, $_POST['course-short']);
Add length and character type validation for all parameters

Web Application Firewall Rules

all

Block SQL injection patterns targeting the vulnerable parameters

Add WAF rule: Detect SQL keywords in course-short, course-full, cdate parameters
Block requests containing UNION, SELECT, INSERT, DELETE, DROP in parameter values

🧯 If You Can't Patch

  • Implement network segmentation to restrict access to the Student Record System
  • Enable detailed logging and monitoring for SQL injection attempts on add-course.php

🔍 How to Verify

Check if Vulnerable:

Test add-course.php endpoint with SQL injection payloads in course-short, course-full, or cdate parameters and observe database errors or unexpected behavior.

Check Version:

Check PHPGurukul Student Record System version in admin panel or system configuration files.

Verify Fix Applied:

Attempt SQL injection tests after implementing fixes and verify no database errors or unauthorized data access occurs.

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in web server logs
  • Unusual database queries from add-course.php
  • Multiple failed login attempts followed by course parameter manipulation

Network Indicators:

  • HTTP POST requests to add-course.php with SQL keywords in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/add-course.php" AND (param="course-short" OR param="course-full" OR param="cdate") AND (value="UNION" OR value="SELECT" OR value="INSERT" OR value="--" OR value="' OR '")

🔗 References

📤 Share & Export