CVE-2024-44654

6.5 MEDIUM

📋 TL;DR

This vulnerability allows attackers to execute arbitrary SQL commands through the email and mobileno parameters in reset-password.php. It affects PHPGurukul Complaint Management System 2.0 installations, potentially compromising database integrity and exposing sensitive information.

💻 Affected Systems

Products:
  • PHPGurukul Complaint Management System
Versions: Version 2.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 2.0 regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, modification, or deletion; potential authentication bypass leading to administrative access.

🟠

Likely Case

Extraction of sensitive user data (passwords, personal information), privilege escalation, or database manipulation.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries in place.

🌐 Internet-Facing: HIGH - The reset-password.php endpoint is typically internet-facing and accessible without authentication.
🏢 Internal Only: MEDIUM - Internal users could exploit this if they have network access to the application.

🎯 Exploit Status

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

SQL injection via GET/POST parameters is well-understood and easily automated.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://phpgurukul.com/complaint-management-sytem

Restart Required: No

Instructions:

No official patch available. Consider implementing parameterized queries and input validation as workaround.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation for email and mobileno parameters to reject malicious input.

Edit reset-password.php to validate email format and mobile number length

Web Application Firewall (WAF) Rules

all

Deploy WAF rules to block SQL injection patterns targeting reset-password.php parameters.

Add WAF rule: block requests with SQL keywords in email or mobileno parameters

🧯 If You Can't Patch

  • Disable or restrict access to reset-password.php endpoint
  • Implement network segmentation to isolate the application from sensitive databases

🔍 How to Verify

Check if Vulnerable:

Test reset-password.php with SQL injection payloads in email or mobileno parameters and observe database errors or unexpected behavior.

Check Version:

Check application files or documentation for version 2.0 references

Verify Fix Applied:

Attempt SQL injection after implementing fixes; successful attacks should be blocked with proper error handling.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed password reset attempts with suspicious parameters

Network Indicators:

  • HTTP requests to reset-password.php containing SQL keywords (UNION, SELECT, etc.)

SIEM Query:

source="web_logs" AND uri="/reset-password.php" AND (email="*' OR*" OR mobileno="*' OR*")

🔗 References

📤 Share & Export