CVE-2025-11473

7.3 HIGH

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary SQL commands via the 'currsymbol' parameter in the /edit_curr.php file of SourceCodester Hotel and Lodge Management System 1.0. This can lead to unauthorized data access, modification, or deletion. All users running the affected version are vulnerable.

💻 Affected Systems

Products:
  • SourceCodester Hotel and Lodge Management System
Versions: 1.0
Operating Systems: All operating systems running PHP and MySQL/MariaDB
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation. No special configuration is required for exploitation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, and potential server takeover via SQL injection leading to remote code execution.

🟠

Likely Case

Unauthorized access to sensitive hotel management data (guest information, financial records, booking details) and potential data manipulation.

🟢

If Mitigated

Limited impact if proper input validation and parameterized queries are implemented, restricting SQL injection attempts.

🌐 Internet-Facing: HIGH - The vulnerability can be exploited remotely without authentication, making internet-facing instances particularly vulnerable.
🏢 Internal Only: HIGH - Even internal systems are vulnerable to authenticated or unauthenticated attacks from within the network.

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

1. Check vendor website for security updates. 2. If patch available, download and apply. 3. Replace vulnerable /edit_curr.php file with patched version. 4. Test functionality after patching.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and parameterized queries for the currsymbol parameter

Replace raw SQL queries with prepared statements: $stmt = $conn->prepare('UPDATE currency SET symbol = ? WHERE id = ?'); $stmt->bind_param('si', $currsymbol, $id);

Web Application Firewall (WAF)

all

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

ModSecurity rule: SecRule ARGS:currsymbol "@detectSQLi" "id:1001,phase:2,deny,status:403,msg:'SQL Injection Attempt'"

🧯 If You Can't Patch

  • Block external access to /edit_curr.php using firewall rules or web server configuration
  • Implement network segmentation to isolate the vulnerable system from critical infrastructure

🔍 How to Verify

Check if Vulnerable:

Test the /edit_curr.php endpoint with SQL injection payloads in the currsymbol parameter (e.g., currsymbol=' OR '1'='1)

Check Version:

Check PHP files for version comments or review system documentation

Verify Fix Applied:

Attempt SQL injection tests after patching; successful queries should be blocked or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in web server logs
  • Multiple requests to /edit_curr.php with suspicious parameters
  • Database query errors containing SQL syntax

Network Indicators:

  • HTTP POST requests to /edit_curr.php containing SQL keywords (UNION, SELECT, INSERT) in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri_path="/edit_curr.php" AND (param="*currsymbol*" AND value="*' OR*" OR value="*UNION*" OR value="*SELECT*")

🔗 References

📤 Share & Export