CVE-2025-6917
📋 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
- Online Hotel Booking
📦 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.
🎯 Exploit Status
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
allAdd 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
linuxRestrict 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 "--")