Code-Projects Refugee Food Management System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability exists in version 1.0 of the Code-Projects Refugee Food Management System, specifically within the 'editrefugee.php' file. The vulnerability arises because the application allows the injection of malicious code through the 'rfid' parameter. This unsanitized input is directly used in SQL queries, enabling attackers to manipulate the queries and execute unauthorized actions. The vulnerability can be exploited remotely without any authentication requirements, posing a significant risk to the application's database integrity and security.

Impact

Exploitation of this vulnerability allows attackers to access the database without authorization, potentially leading to data manipulation, unauthorized data access, and disruption of services. Such actions could cause severe damage to the application's functionality and data integrity.

Reproduction

To reproduce this vulnerability, send a GET request to 'editrefugee.php' with the 'rfid' parameter. The injected SQL code can then be exploited using SQL injection techniques, such as those automated by the sqlmap tool.

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 that user input meets expected formats, blocking malicious data. Finally, database user permissions should be minimized, ensuring that the database account used has only the necessary privileges.

Added: Dec 29, 2025, 11:19 PM
Updated: Dec 29, 2025, 11:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
1.7
threat
6.4
urgency
2.9
incentive
5.8

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