CVE-2025-2044

4.7 MEDIUM

📋 TL;DR

This is a critical SQL injection vulnerability in code-projects Blood Bank Management System 1.0 that allows attackers to manipulate database queries through the blood_id parameter in /admin/delete_bloodGroup.php. Attackers can remotely execute arbitrary SQL commands, potentially compromising the entire database. Organizations using this specific blood bank management software are affected.

💻 Affected Systems

Products:
  • code-projects Blood Bank Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects installations with the vulnerable /admin/delete_bloodGroup.php file accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, deletion of all records, and potential server takeover through SQL injection escalation.

🟠

Likely Case

Unauthorized access to sensitive blood donor and patient data, manipulation of blood inventory records, and potential system disruption.

🟢

If Mitigated

Limited impact with proper input validation and database permissions preventing data exfiltration or system compromise.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

1. Check vendor website for security updates. 2. If no patch available, implement workarounds immediately. 3. Consider migrating to supported software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries and input validation to the vulnerable PHP file

Edit /admin/delete_bloodGroup.php to use prepared statements with PDO or mysqli

Access Restriction

linux

Restrict access to the vulnerable admin endpoint

Add .htaccess authentication or IP whitelisting to /admin/ directory

🧯 If You Can't Patch

  • Implement web application firewall (WAF) with SQL injection rules
  • Isolate the system from internet access and restrict to internal network only

🔍 How to Verify

Check if Vulnerable:

Check if /admin/delete_bloodGroup.php exists and accepts blood_id parameter without proper sanitization

Check Version:

Check software documentation or configuration files for version information

Verify Fix Applied:

Test SQL injection attempts against the blood_id parameter to confirm they are blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin panel
  • Unexpected DELETE operations on blood group tables

Network Indicators:

  • HTTP requests to /admin/delete_bloodGroup.php with SQL payloads in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/admin/delete_bloodGroup.php" AND (param="blood_id" AND value CONTAINS "' OR ")

🔗 References

📤 Share & Export