CVE-2025-11400

6.3 MEDIUM

📋 TL;DR

This SQL injection vulnerability in SourceCodester Hotel and Lodge Management System 1.0 allows attackers to execute arbitrary SQL commands via the ID parameter in /del_room.php. Attackers can potentially access, modify, or delete database content remotely. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • SourceCodester Hotel and Lodge Management System
Versions: 1.0
Operating Systems: Any OS running PHP and MySQL/MariaDB
Default Config Vulnerable: ⚠️ Yes
Notes: Requires PHP and database backend; vulnerable in default installation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, or full system takeover via SQL injection leading to remote code execution.

🟠

Likely Case

Unauthorized data access, modification of hotel/lodge records, or denial of service affecting business operations.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or failed queries.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and the exploit is public, making internet-facing instances prime targets.
🏢 Internal Only: MEDIUM - Internal systems are still vulnerable but require network access; risk depends on internal threat landscape.

🎯 Exploit Status

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

Exploit details are publicly available on GitHub; SQL injection typically requires some authentication but may be combined with other vulnerabilities.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: UNKNOWN

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

Restart Required: No

Instructions:

Check vendor website for updates; if unavailable, implement input validation and parameterized queries in /del_room.php.

🔧 Temporary Workarounds

Input Validation and Sanitization

PHP

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

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

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting /del_room.php.

🧯 If You Can't Patch

  • Restrict network access to the management system using firewall rules to allow only trusted IPs.
  • Implement database user with minimal privileges (SELECT only if possible) for the application.

🔍 How to Verify

Check if Vulnerable:

Test /del_room.php with SQL injection payloads like ' OR '1'='1 in ID parameter and check for database errors or unexpected behavior.

Check Version:

Check system documentation or admin panel for version information; typically displayed in footer or about page.

Verify Fix Applied:

After applying fixes, retest with same payloads; successful fix should return error messages or reject invalid input without executing SQL.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed requests to /del_room.php with suspicious parameters
  • Database query logs showing unexpected SQL commands

Network Indicators:

  • HTTP requests to /del_room.php containing SQL keywords (UNION, SELECT, etc.) in parameters
  • Unusual traffic patterns to the management system

SIEM Query:

source="web_logs" AND uri="/del_room.php" AND (param="ID" AND value MATCHES "'.*'|OR.*|UNION.*")

🔗 References

📤 Share & Export