CVE-2021-43630

8.8 HIGH

📋 TL;DR

CVE-2021-43630 is a SQL injection vulnerability in Projectworlds Hospital Management System v1.0 that allows authenticated attackers to execute arbitrary SQL commands via multiple parameters in add_patient.php. This can lead to database compromise and potentially remote code execution on the web server. Only users running this specific vulnerable version are affected.

💻 Affected Systems

Products:
  • Projectworlds Hospital Management System
Versions: v1.0 only
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires PHP environment with database backend. Vulnerability exists in the default installation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attacker gains full control of the database, extracts sensitive patient/medical data, and achieves remote code execution on the web server to compromise the entire system.

🟠

Likely Case

Attacker extracts sensitive patient data, modifies medical records, or disrupts hospital operations by manipulating the database.

🟢

If Mitigated

With proper input validation and parameterized queries, SQL injection is prevented and database remains secure.

🌐 Internet-Facing: HIGH - If the system is exposed to the internet, any authenticated user can exploit this vulnerability remotely.
🏢 Internal Only: HIGH - Even internally, any authenticated user (including malicious insiders) can exploit this vulnerability.

🎯 Exploit Status

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

Exploitation requires authenticated access. SQL injection is well-understood and tools like sqlmap can automate exploitation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch exists. Implement parameterized queries in add_patient.php and all other PHP files that handle database operations.

🔧 Temporary Workarounds

Implement Input Validation

all

Add strict input validation and sanitization for all parameters in add_patient.php

Edit add_patient.php to validate and sanitize all user inputs before database queries

Web Application Firewall

all

Deploy WAF with SQL injection protection rules

🧯 If You Can't Patch

  • Isolate the system on a separate network segment with strict access controls
  • Implement database monitoring and alerting for suspicious SQL queries

🔍 How to Verify

Check if Vulnerable:

Review add_patient.php for direct concatenation of user input in SQL queries without parameterization

Check Version:

Check the system's version file or documentation for 'v1.0' reference

Verify Fix Applied:

Test with SQL injection payloads in patient form fields to confirm they're properly sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts followed by SQL injection patterns

Network Indicators:

  • HTTP POST requests to add_patient.php with SQL keywords in parameters

SIEM Query:

source="web_server_logs" AND uri="*add_patient.php*" AND (request="*UNION*" OR request="*SELECT*" OR request="*INSERT*" OR request="*DELETE*")

🔗 References

📤 Share & Export