CVE-2024-3226

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Campcodes Online Patient Record Management System 1.0 allows attackers to manipulate database queries through the password parameter in /admin/login.php. Remote attackers can potentially access, modify, or delete sensitive patient records and system data. All deployments of version 1.0 are affected.

💻 Affected Systems

Products:
  • Campcodes Online Patient Record Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable regardless of configuration

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to patient data theft, system takeover, and potential ransomware deployment

🟠

Likely Case

Unauthorized access to patient records, credential theft, and potential data manipulation

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires no authentication and uses simple SQL injection techniques

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None known

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Input Validation Filter

all

Implement parameterized queries and input validation for the password field

Modify /admin/login.php to use prepared statements with parameterized queries

Web Application Firewall

all

Deploy WAF with SQL injection rules to block malicious requests

🧯 If You Can't Patch

  • Isolate the system behind a firewall with strict access controls
  • Implement network segmentation and monitor all database access attempts

🔍 How to Verify

Check if Vulnerable:

Test the /admin/login.php endpoint with SQL injection payloads in the password parameter

Check Version:

Check system documentation or configuration files for version information

Verify Fix Applied:

Attempt SQL injection attacks and verify they are blocked or properly handled

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed login attempts with SQL syntax
  • Database error messages containing SQL fragments

Network Indicators:

  • HTTP POST requests to /admin/login.php with SQL keywords in parameters
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND uri="/admin/login.php" AND (password CONTAINS "' OR" OR password CONTAINS "--" OR password CONTAINS "UNION")

🔗 References

📤 Share & Export