Skip to main content

Hotel Management System CVE-2026-7506

MEDIUM
SQL Injection (CWE-89)
2026-04-30 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify target via web scanning
  2. Delivery
    Send crafted HTTP request to /reservation/check
  3. Exploit
    Inject SQL payload via room_type parameter
  4. Execution
    Execute arbitrary SQL queries
  5. Persist
    Extract database contents
  6. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
PoC Detected
May 01, 2026 - 15:26 vuln.today
Public exploit code
Severity Changed
Apr 30, 2026 - 23:22 NVD
HIGH MEDIUM
CVSS changed
Apr 30, 2026 - 23:22 NVD
7.3 (HIGH) 5.5 (MEDIUM)
CVE Published
Apr 30, 2026 - 22:30 nvd
MEDIUM 5.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:sourcecodester:hotel_management_system:*:*:*:*:*:*:*:*
CVE-2024-42558 CRITICAL POC
9.8 Aug 20

Hotel Management System commit 91caab8 was discovered to contain a SQL injection vulnerability via the book_id parameter

CVE-2024-42556 CRITICAL POC
9.8 Aug 20

Hotel Management System commit 91caab8 was discovered to contain a SQL injection vulnerability via the room_type paramet

CVE-2024-25316 CRITICAL POC
9.8 Feb 09

Code-projects Hotel Managment System 1.0 allows SQL Injection via the 'eid' parameter in Hotel/admin/usersettingdel.php?

CVE-2024-25315 CRITICAL POC
9.8 Feb 09

Code-projects Hotel Managment System 1.0, allows SQL Injection via the 'rid' parameter in Hotel/admin/roombook.php?rid=2

CVE-2024-25314 CRITICAL POC
9.8 Feb 09

Code-projects Hotel Managment System 1.0, allows SQL Injection via the 'sid' parameter in Hotel/admin/show.php?sid=2. Ra

CVE-2024-42773 CRITICAL POC
9.1 Aug 22

An Incorrect Access Control vulnerability was found in /admin/edit_room_controller.php in Kashipara Hotel Management Sys

CVE-2024-42775 CRITICAL POC
9.1 Aug 22

An Incorrect Access Control vulnerability was found in /admin/add_room_controller.php in Kashipara Hotel Management Syst

CVE-2024-42557 HIGH POC
8.8 Aug 20

A Cross-Site Request Forgery (CSRF) in the component admin_modify_room.php of Hotel Management System commit 91caab8 all

CVE-2024-42555 HIGH POC
8.8 Aug 20

A Cross-Site Request Forgery (CSRF) in the component admin_room_removed.php of Hotel Management System commit 91caab8 al

CVE-2024-42554 HIGH POC
8.8 Aug 20

Hotel Management System commit 91caab8 was discovered to contain a SQL injection vulnerability via the room_type paramet

CVE-2024-42553 HIGH POC
8.8 Aug 20

A Cross-Site Request Forgery (CSRF) in the component admin_room_added.php of Hotel Management System commit 91caab8 allo

CVE-2024-25318 HIGH POC
8.8 Feb 09

Code-projects Hotel Managment System 1.0 allows SQL Injection via the 'pid' parameter in Hotel/admin/print.php?pid=2. Ra

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy