CVE-2025-6296
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 rated as critical. Affected by this issue is some unknown functionality of the file /empty_rooms.php. The manipulation of the argument search_box leads to sql injection. The attack may 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-6296 is a critical SQL injection vulnerability in version 1.0 of the Hostel Management System, specifically in the /empty_rooms.php file. It occurs because the 'search_box' parameter is not properly validated or sanitized, allowing attackers to inject malicious SQL code. This can enable unauthorized access to the database, leading to data leakage, modification, or deletion. The attack can be performed remotely without authentication. [1, 2, 3]


How can this vulnerability impact me? :

Exploitation of this vulnerability can lead to unauthorized retrieval, modification, or deletion of sensitive data stored in the database. It can compromise the confidentiality, integrity, and availability of the system, potentially resulting in full system compromise or service disruption. Attackers can exploit this remotely without authentication, making it a significant security risk. [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 /empty_rooms.php endpoint with the POST parameter 'search_box' for SQL injection. Tools like sqlmap can be used to automate detection. For example, a command to test this could be: sqlmap -u "http://target/empty_rooms.php" --data="search_box=test" --risk=3 --level=5. Additionally, manual testing using payloads for Boolean-based blind SQL injection (e.g., using EXTRACTVALUE), time-based blind SQL injection (e.g., using SLEEP), or UNION-based SQL injection with hex-encoded strings can help identify the flaw. Also, Google dorking with queries like inurl:empty_rooms.php can help identify vulnerable targets. [2, 3]


What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include: 1) Implement prepared statements with parameter binding to separate SQL code from user input. 2) Enforce strict input validation and filtering on the 'search_box' parameter to allow only expected input formats. 3) Limit database user permissions to the minimum necessary, avoiding use of high-privilege accounts for routine operations. 4) Conduct regular security audits of code and systems to detect and fix vulnerabilities promptly. If possible, replace the affected software with an alternative product as no official patches are published yet. [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