CVE-2025-6449

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Simple Online Hotel Reservation System 1.0 allows attackers to manipulate database queries via the transaction_id parameter in /admin/checkout_query.php. Remote attackers can potentially access, modify, or delete sensitive hotel reservation data. Organizations using this specific software version are affected.

💻 Affected Systems

Products:
  • Simple Online Hotel Reservation System
Versions: 1.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects installations with the vulnerable /admin/checkout_query.php file accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including theft of customer PII, financial data, and reservation records; potential for full system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized access to reservation databases, exposure of customer information, potential data manipulation or deletion.

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects an internet-facing administrative interface.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this if they have network access to the system.

🎯 Exploit Status

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

Exploit details are publicly disclosed on GitHub; SQL injection typically requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Implement workarounds or replace with secure alternative software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add strict input validation and parameterized queries to /admin/checkout_query.php

Modify PHP code to use prepared statements: $stmt = $conn->prepare('SELECT * FROM transactions WHERE id = ?'); $stmt->bind_param('s', $transaction_id);

Access Restriction

all

Restrict access to /admin/ directory via .htaccess or web server configuration

Order deny,allow
Deny from all
Allow from 192.168.1.0/24
Require ip 192.168.1.0/24

🧯 If You Can't Patch

  • Implement WAF rules to block SQL injection patterns targeting transaction_id parameter
  • Isolate the system on separate network segment with strict access controls

🔍 How to Verify

Check if Vulnerable:

Test if /admin/checkout_query.php accepts SQL injection payloads in transaction_id parameter

Check Version:

Check software version in admin panel or readme files

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and parameterized queries are implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin interface
  • Suspicious patterns in transaction_id parameter values

Network Indicators:

  • SQL injection payloads in HTTP requests to /admin/checkout_query.php
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/admin/checkout_query.php" AND (transaction_id CONTAINS "' OR " OR "--" OR "#" OR "/*")

🔗 References

📤 Share & Export