Hotel Management System
CVE-2026-7506
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target via web scanning
-
DeliverySend crafted HTTP request to /reservation/check
-
ExploitInject SQL payload via room_type parameter
-
ExecutionExecute arbitrary SQL queries
-
PersistExtract database contents
-
ImpactExfiltrate sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of Hotel Management System 1.0. The vulnerable endpoint /index.php/reservation/check is part of the core reservation functionality, likely enabled by default. CVSS vector confirms no authentication (PR:N), no user interaction (UI:N), and network accessibility (AV:N) required. Attack complexity is low (AC:L), indicating straightforward exploitation once the vulnerable parameter is identified. The primary limiting factor is deployment scope: this SourceCodester application is typically used for educational purposes or small-scale deployments rather than enterprise production, potentially reducing the number of exploitable internet-facing instances. Systems not exposed to the internet (internal-only deployments) eliminate remote attack vector. However, for any internet-accessible installation with the /index.php/reservation/check endpoint active, exploitation requires only network connectivity and the publicly available exploit code. |
| Impact | Real-world risk is MODERATE-TO-HIGH for internet-exposed instances. CVSS 7.3 (High) accurately reflects the technical severity: remote unauthenticated exploitation (AV:N/PR:N) with low complexity (AC:L) enabling partial database compromise (C:L/I:L/A:L). The publicly available GitHub POC (referenced in exploit link) drastically reduces exploitation skill requirements, effectively weaponizing this vulnerability. However, actual risk depends heavily on deployment context: SourceCodester projects are often demo/learning applications rather than production systems, potentially limiting real-world exposure. EPSS score unavailable, preventing probabilistic risk assessment. No CISA KEV listing suggests this is not yet widely exploited in the wild, though POC availability makes that a matter of time. SSVC decision: exploitation is ACTIVE (POC public), automatable (web-based SQLi with POC), technical impact HIGH (database access). Primary risk factor: SQLi vulnerabilities with public exploits are routinely scanned for and exploited by automated attack tools. Mitigation priority depends on whether this system handles sensitive guest/payment data and internet exposure. |
| Exploit ScenarioDerived | An attacker discovers an internet-facing Hotel Management System 1.0 installation through automated web scanning (Shodan, Google dorking for 'SourceCodester Hotel Management'). Using the publicly available GitHub exploit code, they craft a malicious HTTP request to /index.php/reservation/check with a SQL injection payload in the room_type parameter (e.g., room_type=' UNION SELECT username,password,email FROM users--). The vulnerable application executes the injected SQL, returning administrator credentials and guest personal data including names, addresses, and payment information. The attacker escalates by injecting commands to extract the entire database, potentially modifying reservation records or deleting data to cause operational disruption. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 30, 2026
SQL injection in SourceCodester Hotel Management System 1.0 allows unauthenticated remote attackers to extract, modify, or delete database contents via the room_type parameter in /index.php/reservation/check. CVSS 7.3 indicates medium-to-high severity with confidentiality, integrity, and availability impacts. Publicly available exploit code (GitHub) significantly lowers the barrier to exploitation. EPSS data unavailable, but public POC availability and remote unauthenticated attack vector suggest elevated real-world risk for internet-exposed installations of this PHP-based hotel management system.
RemediationAI
No vendor-released patch identified at time of analysis. SourceCodester typically publishes code samples rather than maintaining production software with security updates. Primary mitigation: discontinue use of Hotel Management System 1.0 in production environments and replace with actively maintained hotel management software that receives security updates. If continued use is unavoidable, implement SPECIFIC compensating controls: (1) Apply strict input validation on room_type parameter using an allowlist of valid room type values (e.g., 'single', 'double', 'suite')-reject any input containing SQL metacharacters (quotes, semicolons, dashes, comment markers); trade-off is reduced functionality if dynamic room types are required. (2) Implement Web Application Firewall (WAF) rules to block SQL injection patterns targeting /index.php/reservation/check, though determined attackers can evade signature-based detection. (3) Restrict application database account permissions to minimum required (SELECT/INSERT only on specific tables, no DROP/ALTER)-limits impact but does not prevent data exfiltration. (4) Deploy intrusion detection monitoring database queries for injection patterns. For developers: refactor code to use parameterized queries/prepared statements with bound parameters (mysqli_prepare or PDO in PHP). References: VulDB 360315 (https://vuldb.com/vuln/360315), exploit POC at https://github.com/wangzhongyang085/CVE/issues/2.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a classic SQL injection vulnerability (CWE-89) in a PHP web application. The affected endpoint /index.php/reservation/check processes the room_type parameter without proper input sanitization or parameterized queries, allowing attackers to inject arbitrary SQL commands. CPE identifies the vulnerable product as SourceCodester Hotel Management System version 1.0. SQL injection remains a prevalent and dangerous vulnerability class because it grants direct database access, bypassing application-layer authorization. The CVSS vector AV:N/AC:L/PR:N indicates the vulnerability is remotely exploitable over the network with low complexity and no authentication required, making it accessible to unsophisticated attackers using the publicly available exploit code.
Know when Hotel Management System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability has been found in SourceCodester Hotel Management System 1.0. This impacts an unknown function of the file /index.php/reservation/check. Such manipulation of the argument room_type leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
SourceCodester Hotel Management System 1.0 contains an unauthenticated SQL injection vulnerability in the reservation module that allows remote attackers to compromise database confidentiality, integrity, and availability without credentials. Organizations running this application on internet-facing systems face immediate risk of guest data theft, booking manipulation, and operational disruption, particularly since publicly available exploit code exists and no patch has been released by the vendor.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall (WAF) with SQL injection detection/blocking for the /index.php/reservation/check endpoint; (2) Restrict network access to this application via firewall rules or VPN-only access; (3) Implement real-time database activity monitoring to detect anomalous queries; (4) Apply principle of least privilege to the database service account; (5) Enable comprehensive audit logging of all database modifications. These controls reduce but do not eliminate risk-migration to patched software remains the primary remediation path.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
More in Hotel Management System
View allHotel Management System commit 91caab8 was discovered to contain a SQL injection vulnerability via the book_id parameter
Hotel Management System commit 91caab8 was discovered to contain a SQL injection vulnerability via the room_type paramet
Code-projects Hotel Managment System 1.0 allows SQL Injection via the 'eid' parameter in Hotel/admin/usersettingdel.php?
Code-projects Hotel Managment System 1.0, allows SQL Injection via the 'rid' parameter in Hotel/admin/roombook.php?rid=2
Code-projects Hotel Managment System 1.0, allows SQL Injection via the 'sid' parameter in Hotel/admin/show.php?sid=2. Ra
An Incorrect Access Control vulnerability was found in /admin/edit_room_controller.php in Kashipara Hotel Management Sys
An Incorrect Access Control vulnerability was found in /admin/add_room_controller.php in Kashipara Hotel Management Syst
A Cross-Site Request Forgery (CSRF) in the component admin_modify_room.php of Hotel Management System commit 91caab8 all
A Cross-Site Request Forgery (CSRF) in the component admin_room_removed.php of Hotel Management System commit 91caab8 al
Hotel Management System commit 91caab8 was discovered to contain a SQL injection vulnerability via the room_type paramet
A Cross-Site Request Forgery (CSRF) in the component admin_room_added.php of Hotel Management System commit 91caab8 allo
Code-projects Hotel Managment System 1.0 allows SQL Injection via the 'pid' parameter in Hotel/admin/print.php?pid=2. Ra
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB