CVE-2025-2602

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in SourceCodester Kortex Lite Advocate Office Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the ID parameter in deactivate_reg.php. This could lead to data theft, modification, or deletion. All users running version 1.0 are affected.

💻 Affected Systems

Products:
  • SourceCodester Kortex Lite Advocate Office Management System
Versions: 1.0
Operating Systems: Any OS running PHP/MySQL web server
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the deactivate_reg.php file specifically. Requires PHP/MySQL environment.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive client data exfiltration, privilege escalation to admin, and potential system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized access to sensitive case/client data, database manipulation, and potential credential theft from user tables.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries preventing SQL injection.

🌐 Internet-Facing: HIGH - Attack can be initiated remotely without authentication, making internet-facing instances extremely vulnerable.
🏢 Internal Only: MEDIUM - Internal instances still vulnerable but attack surface reduced to internal network access.

🎯 Exploit Status

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

Exploit details publicly disclosed on GitHub. SQL injection via ID parameter is straightforward for attackers with basic SQL knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://www.sourcecodester.com/

Restart Required: No

Instructions:

No official patch available. Check vendor website for updates. Consider implementing workarounds or migrating to alternative software.

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to only accept numeric values for ID parameter

Modify deactivate_reg.php to include: if(!is_numeric($_GET['ID'])) { die('Invalid input'); }

Parameterized Query Implementation

all

Replace vulnerable SQL queries with prepared statements

Replace raw SQL queries with PDO or mysqli prepared statements in deactivate_reg.php

🧯 If You Can't Patch

  • Implement WAF rules to block SQL injection patterns targeting deactivate_reg.php
  • Restrict network access to only trusted IP addresses using firewall rules

🔍 How to Verify

Check if Vulnerable:

Test deactivate_reg.php with SQL injection payloads like: deactivate_reg.php?ID=1' OR '1'='1

Check Version:

Check software version in admin panel or readme files

Verify Fix Applied:

Test with same payloads after implementing fixes - should return error or no database interaction

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in web server logs
  • Multiple requests to deactivate_reg.php with unusual ID parameters
  • Database error messages containing SQL fragments

Network Indicators:

  • HTTP requests to deactivate_reg.php with SQL keywords in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_server.logs" AND (url="*deactivate_reg.php*" AND (param="*OR*" OR param="*UNION*" OR param="*SELECT*"))

🔗 References

📤 Share & Export