Online Hotel Reservation System
CVE-2025-8378
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-exposed /admin/index.php
-
DeliverySubmit crafted SQL payload in login form
-
ExploitBypass authentication query logic
-
ExecutionGain admin panel access
-
ImpactExtract or manipulate database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | The /admin/index.php login page must be reachable over a network by the attacker - in typical deployments this means internet exposure, as the application is designed as a web-based hotel management portal. No authentication is required prior to exploitation; the injection point is the pre-authentication login form itself (username and password POST parameters). The target must be running exactly Campcodes Online Hotel Reservation System version 1.0 as a PHP application with a backend SQL database. No non-default configuration is required - vulnerability exists in the default installation. Exploitation is bounded to this specific product and version; no lateral applicability to other Campcodes products is indicated by available data. |
| Impact | The CNA-assigned CVSS 4.0 score of 5.5 with VC:L/VI:L/VA:L appears conservative for a pre-authentication SQL injection on an admin login page - auth bypass and full database read are realistic outcomes that typically warrant higher impact ratings. The network vector (AV:N), no complexity (AC:L), no privileges (PR:N), and no user interaction (UI:N) represent worst-case access conditions. Against this, EPSS at 0.07% (21st percentile) and absence from CISA KEV both indicate limited observed active exploitation, most likely reflecting the narrow real-world deployment footprint of Campcodes software rather than technical difficulty. The E:P modifier in the provided vector confirms public exploit code exists, which is a meaningful escalation signal for any exposed instance. Overall: low aggregate risk due to niche prevalence, but high per-instance risk for any organization actually running this system internet-facing. |
| Exploit ScenarioDerived | An attacker discovers a Campcodes Online Hotel Reservation System instance via web search or automated scanning and sends a crafted HTTP POST to /admin/index.php with a SQL injection payload (e.g., ' OR '1'='1'--) in the username field, bypassing the authentication check and gaining administrative access to the hotel management panel. From there, the attacker can enumerate reservation records, extract guest PII, or enumerate further database contents using UNION-based or blind injection techniques. A public proof-of-concept documented on GitHub (https://github.com/XiaoJiesecqwq/sql/issues/1) makes this scenario reproducible with minimal skill. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 25, 2026
SQL injection in the login endpoint of Campcodes Online Hotel Reservation System 1.0 enables unauthenticated remote attackers to manipulate the username and password parameters submitted to /admin/index.php, potentially bypassing authentication entirely or extracting the underlying database. A public proof-of-concept exploit is confirmed via GitHub, meaningfully lowering the barrier to attack. Despite the PoC availability, EPSS sits at just 0.07% (21st percentile), consistent with the niche deployment footprint of this PHP educational software rather than suppressed exploitation.
RemediationAI
No vendor-released patch has been identified at time of analysis. As an immediate compensating control, administrators should restrict network access to the /admin/index.php endpoint using firewall ACLs or web server directives (e.g., Apache Allow/Deny or nginx geo restrictions) to permit only trusted IP ranges - this prevents exploitation but also blocks all remote admin access, so operational impact must be weighed. Deploying a WAF with SQL injection signatures (e.g., ModSecurity with OWASP CRS) can provide a detection and blocking layer but should not substitute for code-level remediation. If the application source is available, the permanent fix is replacing string-concatenated queries with PHP PDO or MySQLi prepared statements with bound parameters throughout the login logic. Reference and PoC details: https://vuldb.com/?id.318356 and https://github.com/XiaoJiesecqwq/sql/issues/1.
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
The affected application is a PHP-based web system (cpe:2.3:a:campcodes:online_hotel_reservation_system:1.0:*:*:*:*:*:*:*) distributed by Campcodes, a vendor primarily offering educational/demo source code projects. The root cause is CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - Injection), specifically SQL injection, arising from unsanitized concatenation of user-supplied username and password form fields into backend SQL queries within /admin/index.php. The login component does not use parameterized queries or prepared statements, allowing an attacker to alter query logic. Classic login-bypass payloads (e.g., ' OR '1'='1) or UNION-based extraction techniques are applicable depending on database error visibility.
Know when Online Hotel Reservation 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
Pre-auth login SQLi enables auth bypass and full DB read/write; AV:N/PR:N confirmed by login form attack surface; A:L as availability is secondary to data impact.
Primary rating from NVD.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability was found in Campcodes Online Hotel Reservation System 1.0. It has been rated as critical. Affected by this issue is some unknown functionality of the file /admin/index.php of the component Login. The manipulation of the argument username/password leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
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
CVE-2025-6355 is a critical SQL injection vulnerability in SourceCodester Online Hotel Reservation System version 1.0, s
CVE-2025-6458 is a critical SQL injection vulnerability in code-projects Online Hotel Reservation System version 1.0, af
CVE-2025-6457 is a critical SQL injection vulnerability in code-projects Online Hotel Reservation System 1.0 affecting t
CVE-2025-6456 is a critical SQL injection vulnerability in code-projects Online Hotel Reservation System 1.0, specifical
CVE-2025-6455 is a SQL injection vulnerability in code-projects Online Hotel Reservation System version 1.0, specificall
A vulnerability was identified in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9),
A vulnerability classified as critical was found in SourceCodester Online Hotel Reservation System 1.0. Rated medium sev
A vulnerability classified as critical has been found in SourceCodester Online Hotel Reservation System 1.0. Rated mediu
A flaw has been found in Reservation Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9), this vulnera
A vulnerability was detected in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9), th
A vulnerability was identified in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9),
A vulnerability was determined in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9),
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB