Code-Projects Hostel Management System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Hostel Management System version 1.0. The issue resides in the file '/justines/admin/mod_amenities/index.php', specifically when the 'view' parameter is set to 'view' and the 'id' parameter is manipulated. This vulnerability allows remote attackers to inject malicious SQL queries, potentially leading to unauthorized database access, data modification or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could result in unauthorized data access, data leakage, data modification or deletion, and in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a GET request to '/justines/admin/mod_amenities/index.php' with the 'view' parameter set to 'view' and the 'id' parameter manipulated to inject SQL payloads. This can be done using a web browser or a tool like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help mitigate such vulnerabilities.

Added: Sep 22, 2025, 10:10 PM
Updated: Sep 22, 2025, 10:10 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
5.0
exploitability
9.1
remediation
0.0
relevance
0.6
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.