CVE-2025-2654

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in SourceCodester AC Repair and Services System 1.0 allows remote attackers to manipulate database queries via the ID parameter in /admin/services/manage_service.php. Attackers can potentially read, modify, or delete database contents, including sensitive information. Organizations using this specific software version are affected.

💻 Affected Systems

Products:
  • SourceCodester AC Repair and Services System
Versions: 1.0
Operating Systems: Any OS running PHP and MySQL/MariaDB
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in default installation. Requires PHP environment with database backend.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

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

🟠

Likely Case

Unauthorized data access, extraction of sensitive information (user credentials, customer data), and potential privilege escalation.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database permission restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub. Attack requires access to admin interface but not necessarily authentication if other vulnerabilities exist.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

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

Restart Required: No

Instructions:

No official patch available. Implement parameterized queries in manage_service.php, validate and sanitize ID parameter input.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation to ensure ID parameter contains only numeric values

In manage_service.php, add: if(!is_numeric($_GET['ID'])) { die('Invalid input'); }

Web Application Firewall Rules

all

Block SQL injection patterns targeting the vulnerable endpoint

WAF rule to block requests with SQL keywords in ID parameter to /admin/services/manage_service.php

🧯 If You Can't Patch

  • Restrict network access to the admin interface using firewall rules or VPN
  • Implement database user with minimal permissions (read-only if possible)

🔍 How to Verify

Check if Vulnerable:

Test the ID parameter with SQL injection payloads like: /admin/services/manage_service.php?ID=1' OR '1'='1

Check Version:

Check system version in admin panel or review source code for version markers

Verify Fix Applied:

Verify that SQL injection payloads no longer work and return error or sanitized response

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries from web server
  • Multiple failed login attempts followed by SQL error patterns
  • Requests to manage_service.php with suspicious ID parameters

Network Indicators:

  • HTTP requests containing SQL keywords (UNION, SELECT, INSERT) in URL parameters
  • Abnormal traffic patterns to admin interface

SIEM Query:

source="web_server" AND uri="/admin/services/manage_service.php" AND (query="*UNION*" OR query="*SELECT*" OR query="*INSERT*")

🔗 References

📤 Share & Export