CVE-2025-3211

6.3 MEDIUM

📋 TL;DR

A critical SQL injection vulnerability in code-projects Patient Record Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the itr_no/birth_id parameters in /birthing_print.php. This affects all systems running the vulnerable software version. Attackers can potentially access, modify, or delete patient records and database contents.

💻 Affected Systems

Products:
  • code-projects Patient Record Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 1.0; no special configuration required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including patient record exfiltration, modification, or deletion; potential system takeover via SQL injection leading to remote code execution.

🟠

Likely Case

Unauthorized access to sensitive patient data (PII/PHI), database manipulation, and potential data destruction.

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available; SQL injection via URL parameters is straightforward to weaponize.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative software or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation for itr_no and birth_id parameters to allow only expected characters/patterns.

Web Application Firewall (WAF)

all

Deploy WAF with SQL injection rules to block malicious requests to /birthing_print.php.

🧯 If You Can't Patch

  • Remove or restrict access to /birthing_print.php via web server configuration or network controls.
  • Implement network segmentation to isolate the vulnerable system from sensitive networks and databases.

🔍 How to Verify

Check if Vulnerable:

Test /birthing_print.php with SQL injection payloads in itr_no or birth_id parameters; check for database errors or unexpected responses.

Check Version:

Check software version in admin panel or configuration files; default is 1.0.

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that input validation is properly implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed requests to /birthing_print.php with SQL-like patterns
  • Database error messages in web server logs

Network Indicators:

  • HTTP requests to /birthing_print.php containing SQL keywords (SELECT, UNION, etc.) in parameters

SIEM Query:

source="web_server" AND uri="/birthing_print.php" AND (param="itr_no" OR param="birth_id") AND (content="SELECT" OR content="UNION" OR content="OR 1=1")

🔗 References

📤 Share & Export