CVE-2025-6295
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-06-20

Last updated on: 2026-04-29

Assigner: VulDB

Description
A vulnerability was found in code-projects Hostel Management System 1.0. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file /allocated_rooms.php. The manipulation of the argument search_box leads to sql injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-06-20
Last Modified
2026-04-29
Generated
2026-05-07
AI Q&A
2025-06-20
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
fabian hostel_management_system 1.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
CWE-74 The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2025-6295 is a critical SQL injection vulnerability in version 1.0 of the Hostel Management System, specifically in the /allocated_rooms.php file. It occurs because the 'search_box' parameter is not properly validated or sanitized before being used in SQL queries. This allows attackers to inject malicious SQL code remotely without authentication, potentially leading to unauthorized access to the database, data leakage, modification, deletion, or even full system compromise. [1, 2, 3]


How can this vulnerability impact me? :

Exploiting this vulnerability can allow attackers to remotely access and manipulate the database without authentication. This can lead to unauthorized disclosure of sensitive information, data modification or deletion, and disruption of system availability. Ultimately, it can compromise the confidentiality, integrity, and availability of the affected system, potentially causing significant operational and security impacts. [1, 2, 3]


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by testing the 'search_box' parameter in the /allocated_rooms.php file for SQL injection. Tools like sqlmap can be used to automate detection. Additionally, manual testing using payloads for Boolean-based blind injection, error-based injection, time-based blind injection, and UNION-based injection can help identify the flaw. Google hacking techniques such as searching for inurl:allocated_rooms.php can help identify vulnerable targets. Example command using sqlmap: sqlmap -u "http://target/allocated_rooms.php" --data="search_box=test" --risk=3 --level=5 [2, 3]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include using prepared statements with parameter binding to separate SQL code from user input, implementing strict input validation and filtering on the 'search_box' parameter, minimizing database user permissions by avoiding high-privilege accounts for routine operations, and conducting regular security audits. Since no known countermeasures or mitigations have been documented, replacing the affected component with an alternative product is also suggested. [2, 3]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart