CVE-2025-6917

7.3 HIGH

📋 TL;DR

CVE-2025-6917 is a critical SQL injection vulnerability in Online Hotel Booking 1.0 that allows remote attackers to execute arbitrary SQL commands via the 'uname' parameter in /admin/registration.php. This affects all systems running the vulnerable software version, potentially leading to data theft, modification, or complete system compromise.

💻 Affected Systems

Products:
  • Online Hotel Booking
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the /admin/registration.php file specifically. Any installation with this file accessible is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data exfiltration, privilege escalation to admin, and potential remote code execution on the underlying server.

🟠

Likely Case

Unauthorized access to sensitive hotel booking data, customer PII theft, and potential manipulation of booking records.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or partial data exposure.

🌐 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. The vulnerability requires no authentication and has simple exploitation vectors.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

1. Check vendor website for updates. 2. If no patch available, implement workarounds. 3. Consider migrating to supported software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries or input validation to the uname parameter in registration.php

Modify /admin/registration.php to use prepared statements with parameterized queries

Access Restriction

linux

Restrict access to /admin/registration.php file

Add .htaccess rules to block external access to /admin/registration.php

🧯 If You Can't Patch

  • Implement WAF rules to block SQL injection patterns targeting the uname parameter
  • Isolate the vulnerable system behind additional network segmentation and monitoring

🔍 How to Verify

Check if Vulnerable:

Check if /admin/registration.php exists and contains unsanitized uname parameter handling

Check Version:

Check software version in admin panel or configuration files

Verify Fix Applied:

Test the registration.php endpoint with SQL injection payloads to confirm they're blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts via registration.php
  • SQL error messages in web server logs

Network Indicators:

  • HTTP POST requests to /admin/registration.php with SQL keywords in parameters
  • Unusual outbound database connections

SIEM Query:

source="web_logs" AND uri="/admin/registration.php" AND (param="uname" AND value CONTAINS "UNION" OR value CONTAINS "SELECT" OR value CONTAINS "--")

🔗 References

📤 Share & Export