Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | The CVSS 3.1 score of 7.3 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L indicates a high-severity vulnerability with significant real-world risk. The attack vector is network-based (AV:N) with low attack complexity (AC:L), requires no privileges (PR:N), and needs no user interaction (UI:N), making exploitation trivial for any attacker with network access. The confidentiality, integrity, and availability impacts are all present (C:L/I:L/A:L), though rated as 'Low' individually, the combination creates substantial risk. The public disclosure and available proof-of-concept code elevate this from theoretical to practical threat. This is NOT a low-real-risk-high-CVSS issue; the CVSS rating accurately reflects genuine exploitability. Organizations running Hostel Management System 1.0 face immediate risk of data breach, unauthorized modifications to room allocations and guest records, and potential denial of service. The lack of authentication requirements makes this a critical priority for patching. |
| Exploit ScenarioDerived | An attacker identifies a publicly accessible Hostel Management System 1.0 instance and navigates to the room allocation interface. They craft a malicious request to /allocate_room.php with a search_box parameter containing SQL injection payload, such as: search_box=1' OR '1'='1' UNION SELECT user, password FROM admin_users--. Since the application lacks input validation and directly incorporates this into a SQL query (e.g., SELECT * FROM rooms WHERE name LIKE '%{search_box}%'), the injected SQL executes on the backend database. This allows the attacker to: (a) extract sensitive data including guest information, room assignments, and administrative credentials; (b) modify room allocations or guest records; (c) execute administrative commands via database-level functionality. The attack requires no authentication, no social engineering, and can be automated for reconnaissance across multiple targets. With public POC code available, even low-skilled attackers can successfully exploit this vulnerability within minutes of discovering a vulnerable instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 14, 2026
Critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifically in the /allocate_room.php file's 'search_box' parameter. An unauthenticated remote attacker can exploit this vulnerability to execute arbitrary SQL queries, potentially leading to unauthorized data access, modification, and system disruption. The vulnerability has been publicly disclosed with proof-of-concept code available, making it actively exploitable in the wild.
RemediationAI
Immediate actions: (1) Disable or restrict access to the /allocate_room.php endpoint until patching is possible, implementing network-level access controls or Web Application Firewall (WAF) rules to block requests containing SQL keywords in the search_box parameter; (2) Implement input validation to reject or sanitize special SQL characters (quotes, semicolons, dashes, parentheses) in the search_box parameter; (3) Switch to parameterized queries (prepared statements) in the vulnerable code to separate SQL logic from data. Long-term: Contact code-projects for availability of patched versions beyond 1.0, or migrate to actively maintained hostel management systems with secure coding practices. If patches are unavailable, implement database-level protections such as stored procedures with restricted permissions, limiting the application user account's SQL capabilities to only necessary operations. Regular security code reviews and static application security testing (SAST) should be implemented.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability stems from CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, also known as Improperly Neutralized Special Elements in Output). The root cause is insufficient input validation and output encoding in the /allocate_room.php file, where user-supplied input from the 'search_box' parameter is directly concatenated into SQL queries without proper parameterization or escaping. The affected product is code-projects Hostel Management System 1.0, a PHP-based web application (implied by .php file extension) used for managing hostel room allocations. The vulnerability affects the database query processing layer, allowing attackers to break out of intended SQL statement boundaries and inject malicious SQL commands.
Know when Hostel 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 NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability classified as critical was found in code-projects Hostel Management System 1.0. This vulnerability affects unknown code of the file /allocate_room.php. The manipulation of the argument search_box leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
A publicly disclosed SQL injection vulnerability in Hostel Management System 1.0 allows remote attackers to compromise the database through the room allocation feature. Organizations running this system face immediate risk of unauthorized data access, modification, or deletion without vendor remediation available.
Implement Web Application Firewall (WAF) rules to block SQL injection payloads in the search_box parameter; restrict network access to /allocate_room.php via IP whitelisting; disable the room allocation feature if operationally feasible; implement database activity monitoring (DAM) to detect unauthorized queries; enforce principle of least privilege for database service accounts; consider application isolation using containerization or air-gapping; conduct urgent code review and apply input validation/parameterized queries as emergency patch.
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.
More in Hostel Management System
View allPHPGurukul Hostel Management System v2.0 allows SQL injection via the id parameter in the full-profile.php file. Rated c
A vulnerability was found in PHPGurukul Hostel Management System 2.1 in the /hostel/change-password.php file of the user
Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) vulnerability exits in hostel management system 2.1 via
Cross-Site Scripting in phpgurukul Hostel Management System v2.1 user-provided complaint fields (Explain the Complaint)
A vulnerability, which was classified as critical, was found in Surya2Developer Hostel Management System 1.0. Rated medi
Cross-Site Scripting (XSS) vulnerability in Hostel Management System v2.1 allows an attacker to execute arbitrary code v
Critical SQL injection vulnerability in PHPGurukul Hostel Management System 1.0 affecting the login functionality (/incl
A SQL injection vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
A SQL injection vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
CVE-2025-6296 is a critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifica
A SQL injection vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
CVE-2025-6294 is a critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifica
EUVD-2025-18483
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB