CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Lifecycle Timeline
4Description
A vulnerability was found in code-projects Hostel Management System 1.0. It has been classified as critical. Affected is an unknown function of the file /contact.php. The manipulation of the argument hostel_name leads to sql injection. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.
Analysis
CVE-2025-6294 is a critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifically in the /contact.php file's hostel_name parameter. An unauthenticated remote attacker can exploit this without user interaction to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, or deletion. The vulnerability has been publicly disclosed with exploit code available, and while CVSS 7.3 indicates moderate-to-high severity with confidentiality, integrity, and availability impact, the simplicity of exploitation (network-accessible, no privileges required, low complexity) makes this a practical threat requiring immediate patching.
Technical Context
This vulnerability exists due to improper input validation and parameterization in the contact.php endpoint, falling under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, commonly manifesting as SQL injection). The affected component is code-projects' Hostel Management System, a web-based property management application written in PHP. The vulnerability stems from concatenating user-supplied input (hostel_name parameter) directly into SQL queries without prepared statements or parameterized queries. The attack vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N, meaning the flaw is remotely exploitable over the network with no authentication, no special conditions, and no user interaction required—a classic SQL injection pattern in PHP applications that fail to use mysqli_prepare() or PDO prepared statements.
Affected Products
- vendor: code-projects; product: Hostel Management System; versions: ['1.0']; affected_component: /contact.php; vulnerable_parameter: hostel_name; cpe: cpe:2.3:a:code-projects:hostel_management_system:1.0:*:*:*:*:*:*:*
Priority Score
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-28713