Skip to main content

Online Hotel Reservation System CVE-2025-8378

MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2025-07-31 cna@vuldb.com
5.5
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Identify internet-exposed /admin/index.php
  2. Delivery
    Submit crafted SQL payload in login form
  3. Exploit
    Bypass authentication query logic
  4. Execution
    Gain admin panel access
  5. Impact
    Extract 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.

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

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

Alert me

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

NVD 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
vuln.today AI 9.4 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

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

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

EPSS Score
0.1%
Top 79% exploitable
Prevalence
Rare
Niche PHP educational demo software; negligible enterprise production footprint.
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.1%
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

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:campcodes:online_hotel_reservation_system:1.0:*:*:*:*:*:*:*
CVE-2025-6355 MEDIUM POC
5.5 Jun 20

CVE-2025-6355 is a critical SQL injection vulnerability in SourceCodester Online Hotel Reservation System version 1.0, s

CVE-2025-6458 MEDIUM POC
5.5 Jun 22

CVE-2025-6458 is a critical SQL injection vulnerability in code-projects Online Hotel Reservation System version 1.0, af

CVE-2025-6457 MEDIUM POC
5.5 Jun 22

CVE-2025-6457 is a critical SQL injection vulnerability in code-projects Online Hotel Reservation System 1.0 affecting t

CVE-2025-6456 MEDIUM POC
5.5 Jun 22

CVE-2025-6456 is a critical SQL injection vulnerability in code-projects Online Hotel Reservation System 1.0, specifical

CVE-2025-6455 MEDIUM POC
5.5 Jun 22

CVE-2025-6455 is a SQL injection vulnerability in code-projects Online Hotel Reservation System version 1.0, specificall

CVE-2025-9789 MEDIUM POC
5.5 Sep 01

A vulnerability was identified in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9),

CVE-2025-8470 MEDIUM POC
5.5 Aug 02

A vulnerability classified as critical was found in SourceCodester Online Hotel Reservation System 1.0. Rated medium sev

CVE-2025-8469 MEDIUM POC
5.5 Aug 02

A vulnerability classified as critical has been found in SourceCodester Online Hotel Reservation System 1.0. Rated mediu

CVE-2025-10843 MEDIUM POC
5.5 Sep 23

A flaw has been found in Reservation Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9), this vulnera

CVE-2025-11055 MEDIUM POC
5.5 Sep 27

A vulnerability was detected in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9), th

CVE-2025-10789 MEDIUM POC
5.5 Sep 22

A vulnerability was identified in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9),

CVE-2025-10788 MEDIUM POC
5.5 Sep 22

A vulnerability was determined in SourceCodester Online Hotel Reservation System 1.0. Rated medium severity (CVSS 6.9),

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