CVE-2025-2378

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in PHPGurukul Medical Card Generation System 1.0 allows remote attackers to execute arbitrary SQL commands via the searchdata parameter in /download-medical-cards.php. Attackers can potentially access, modify, or delete sensitive medical data in the database. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • PHPGurukul Medical Card Generation System
Versions: 1.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable. The system must be accessible via web interface.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to medical data theft, data destruction, or full system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized access to sensitive medical records, patient data exfiltration, and potential data manipulation.

🟢

If Mitigated

Limited impact with proper input validation and WAF rules blocking SQL injection patterns.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects a web application component.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this to escalate privileges or access sensitive data.

🎯 Exploit Status

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

Exploit details are publicly disclosed on GitHub. The vulnerability requires no authentication and has simple exploitation vectors.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: UNKNOWN

Vendor Advisory: https://phpgurukul.com/

Restart Required: No

Instructions:

Check vendor website for updates. If no patch available, implement workarounds immediately.

🔧 Temporary Workarounds

Input Validation and Sanitization

PHP

Implement strict input validation and parameterized queries for the searchdata parameter.

Modify /download-medical-cards.php to use prepared statements with bound parameters

Web Application Firewall Rules

all

Deploy WAF rules to block SQL injection patterns targeting the searchdata parameter.

Add WAF rule: Block requests containing SQL keywords in searchdata parameter

🧯 If You Can't Patch

  • Disable or restrict access to /download-medical-cards.php endpoint
  • Implement network segmentation and isolate the vulnerable system from sensitive data

🔍 How to Verify

Check if Vulnerable:

Test the /download-medical-cards.php endpoint with SQL injection payloads in the searchdata parameter.

Check Version:

Check system documentation or admin panel for version information

Verify Fix Applied:

Attempt SQL injection tests after implementing fixes and verify no database errors or unexpected behavior occurs.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed login attempts following SQL injection patterns
  • Unexpected database queries from web application

Network Indicators:

  • HTTP requests to /download-medical-cards.php with SQL keywords in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/download-medical-cards.php" AND (param="searchdata" AND value MATCHES "(?i)(union|select|insert|delete|update|drop|alter)")

🔗 References

📤 Share & Export