CVE-2024-44632

6.5 MEDIUM

📋 TL;DR

PHPGurukul Student Record System 3.20 contains SQL injection vulnerabilities in the password recovery functionality. Attackers can manipulate the id and emailid parameters in password-recovery.php to execute arbitrary SQL commands. Organizations using this specific version of the student record system are affected.

💻 Affected Systems

Products:
  • PHPGurukul Student Record System
Versions: Version 3.20
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the password-recovery.php page to be accessible and functional.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise allowing data exfiltration, modification, or deletion of student records, potentially leading to authentication bypass and system takeover.

🟠

Likely Case

Unauthorized access to sensitive student data including personal information, grades, and contact details.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting query execution.

🌐 Internet-Facing: HIGH - The password recovery page is typically accessible externally, making it an attractive attack vector.
🏢 Internal Only: MEDIUM - Internal users could exploit this to escalate privileges or access unauthorized data.

🎯 Exploit Status

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

SQL injection via GET/POST parameters requires minimal technical skill to exploit.

🛠️ 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 available, download and replace vulnerable files
3. Test password recovery functionality after update

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries and input validation to password-recovery.php

Edit password-recovery.php to use prepared statements with PDO or mysqli

Temporary Access Restriction

all

Disable or restrict access to password recovery functionality

Add authentication requirement or IP restriction to password-recovery.php

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block SQL injection patterns
  • Restrict database user permissions to SELECT only for the application account

🔍 How to Verify

Check if Vulnerable:

Test password-recovery.php with SQL injection payloads in id and emailid parameters

Check Version:

Check system version in admin panel or readme files

Verify Fix Applied:

Attempt SQL injection after applying fixes and confirm error-free responses

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in web server logs
  • Multiple failed password recovery attempts with suspicious parameters

Network Indicators:

  • HTTP requests to password-recovery.php containing SQL keywords like UNION, SELECT, OR 1=1

SIEM Query:

source="web_logs" AND uri="*password-recovery.php*" AND (param="*UNION*" OR param="*SELECT*" OR param="*OR 1=1*")

🔗 References

📤 Share & Export