CVE-2025-8989

7.3 HIGH

📋 TL;DR

This SQL injection vulnerability in SourceCodester COVID 19 Testing Management System 1.0 allows attackers to manipulate database queries via the mobilenumber parameter in /edit-phlebotomist.php. Remote attackers can potentially access, modify, or delete sensitive data including patient records and system credentials. Organizations using this specific version of the COVID-19 testing management software are affected.

💻 Affected Systems

Products:
  • SourceCodester COVID 19 Testing Management System
Versions: 1.0
Operating Systems: Any
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. Other parameters beyond mobilenumber may also be vulnerable based on the CVE description.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to exposure of all patient health data, administrative credentials theft, system takeover, and potential data destruction.

🟠

Likely Case

Unauthorized access to sensitive patient information, modification of testing records, and potential privilege escalation within the application.

🟢

If Mitigated

Limited data exposure if proper input validation and database permissions are enforced, with minimal impact on system availability.

🌐 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://www.sourcecodester.com/

Restart Required: No

Instructions:

1. Check SourceCodester website for security updates 2. If patch available, download and apply 3. Test functionality after patching

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests

Input Validation Filter

all

Implement server-side input validation for all parameters in edit-phlebotomist.php

🧯 If You Can't Patch

  • Remove or restrict access to /edit-phlebotomist.php via web server configuration
  • Implement strict network segmentation and isolate the vulnerable system from internet access

🔍 How to Verify

Check if Vulnerable:

Test the mobilenumber parameter in /edit-phlebotomist.php with SQL injection payloads like ' OR '1'='1

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Retest with SQL injection payloads after applying fixes; successful payloads should be rejected or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in application logs
  • Multiple failed login attempts from single IP
  • Suspicious parameter values in access logs

Network Indicators:

  • HTTP requests to /edit-phlebotomist.php with SQL keywords in parameters
  • Unusual database query patterns from application server

SIEM Query:

source="web_logs" AND uri="/edit-phlebotomist.php" AND (param="mobilenumber" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|--|')")

🔗 References

📤 Share & Export