CVE-2025-11055

7.3 HIGH

📋 TL;DR

This vulnerability allows remote attackers to execute SQL injection attacks against SourceCodester Online Hotel Reservation System 1.0 via the 'address' parameter in the /admin/updateaddress.php file. Attackers can potentially read, modify, or delete database content. All installations of version 1.0 are affected.

💻 Affected Systems

Products:
  • SourceCodester Online Hotel Reservation System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All default installations are vulnerable. The system must have the /admin/updateaddress.php file accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including credential theft, data exfiltration, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized data access, modification of reservation data, and potential privilege escalation to admin accounts.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-critical data.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and public exploits exist.
🏢 Internal Only: MEDIUM - Internal attackers could still exploit this but external threat is higher.

🎯 Exploit Status

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

Exploit requires admin authentication to access the vulnerable endpoint. SQL injection payloads are publicly documented.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries in the source code.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules to block malicious requests.

Access Restriction

linux

Restrict access to /admin/updateaddress.php to trusted IP addresses only.

# Apache: Order deny,allow
Deny from all
Allow from 192.168.1.0/24
# Nginx: allow 192.168.1.0/24;
 deny all;

🧯 If You Can't Patch

  • Implement strict input validation for the 'address' parameter using allowlists.
  • Migrate to a different hotel reservation system with active security support.

🔍 How to Verify

Check if Vulnerable:

Test the /admin/updateaddress.php endpoint with SQL injection payloads in the 'address' parameter while authenticated as admin.

Check Version:

Check the system version in the admin panel or by examining the source code files for version markers.

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return error messages or are properly sanitized.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts followed by access to /admin/updateaddress.php
  • HTTP requests with SQL keywords in parameters

Network Indicators:

  • HTTP POST requests to /admin/updateaddress.php containing SQL injection patterns

SIEM Query:

source="web_logs" AND uri="/admin/updateaddress.php" AND (param="address" AND value MATCHES "(?i)(union|select|insert|delete|update|drop|--|#|;)")

🔗 References

📤 Share & Export