CVE-2024-6440

6.3 MEDIUM

📋 TL;DR

This is a critical SQL injection vulnerability in SourceCodester Home Owners Collection Management System 1.0. Attackers can remotely exploit the /classes/Master.php?f=delete_category endpoint by manipulating the 'id' parameter to execute arbitrary SQL commands. All deployments of version 1.0 are affected.

💻 Affected Systems

Products:
  • SourceCodester Home Owners Collection Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable by default. No specific configuration required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, authentication bypass, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized data access, modification, or deletion of database records, potentially leading to data loss or privacy violations.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries in place, though the vulnerable endpoint remains exposed.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit code is publicly available on GitHub, making this easily weaponizable by attackers with minimal technical skill.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available, or implement workarounds.

🔧 Temporary Workarounds

Web Application Firewall (WAF) Rules

all

Implement WAF rules to block SQL injection patterns targeting the vulnerable endpoint

Input Validation Filter

all

Add server-side validation to sanitize the 'id' parameter before processing

🧯 If You Can't Patch

  • Implement network segmentation to restrict access to the vulnerable system
  • Deploy intrusion detection systems to monitor for SQL injection attempts

🔍 How to Verify

Check if Vulnerable:

Test the /classes/Master.php?f=delete_category endpoint with SQL injection payloads in the 'id' parameter

Check Version:

Check the system version in the application interface or configuration files

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that parameterized queries are implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in application logs
  • Multiple failed delete_category requests with SQL syntax in parameters

Network Indicators:

  • HTTP requests to /classes/Master.php containing SQL keywords in parameters

SIEM Query:

source="web_logs" AND uri="/classes/Master.php" AND (param="id" AND value CONTAINS "UNION" OR value CONTAINS "SELECT" OR value CONTAINS "OR 1=1")

🔗 References

📤 Share & Export