CVE-2025-6455

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability exists in code-projects Online Hotel Reservation System 1.0. Attackers can remotely exploit the /messageexec.php file by manipulating the Name parameter to execute arbitrary SQL commands. This affects all deployments of version 1.0 that have the vulnerable file accessible.

💻 Affected Systems

Products:
  • code-projects Online Hotel Reservation System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable if the /messageexec.php endpoint is accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or complete system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized database access allowing extraction of sensitive guest information, reservation data, and potentially administrative credentials.

🟢

If Mitigated

Limited impact with proper input validation and WAF rules blocking SQL injection patterns.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily weaponizable by attackers.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

1. Check vendor website for security updates. 2. If no patch exists, consider migrating to alternative software. 3. Apply input validation and parameterized queries to /messageexec.php.

🔧 Temporary Workarounds

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns targeting the Name parameter.

# Example ModSecurity rule: SecRule ARGS:Name "@detectSQLi" "id:1001,phase:2,deny,status:403"

File Access Restriction

linux

Block external access to /messageexec.php if not required for functionality.

# Apache: <Location "/messageexec.php"> Require all denied </Location>
# Nginx: location = /messageexec.php { deny all; }

🧯 If You Can't Patch

  • Isolate the system behind a firewall with strict inbound rules.
  • Implement database monitoring to detect unusual SQL queries.

🔍 How to Verify

Check if Vulnerable:

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

Check Version:

Check the software version in admin panel or configuration files.

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return proper error handling.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in web server logs
  • Multiple requests to /messageexec.php with suspicious parameters

Network Indicators:

  • HTTP POST requests to /messageexec.php containing SQL keywords in parameters

SIEM Query:

source="web_logs" AND uri_path="/messageexec.php" AND (param="Name" AND value MATCHES "(?i)(union|select|insert|delete|update|drop|exec|or|and)")

🔗 References

📤 Share & Export