Code-Projects Church Donation System SQL Injection Vulnerability
Vulnerability
A critical SQL injection vulnerability has been identified in Code-Projects Church Donation System version 1.0. The issue arises in the file '/members/edit_user.php', where the 'firstname' parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication. The injection point has been confirmed to be vulnerable to boolean-based blind SQL injection, where the injected payload is executed in the context of the SQL query, potentially allowing attackers to access, modify, or delete database information.
Impact
Exploitation of this vulnerability allows for unauthorized database access, manipulation of data, leakage of sensitive information, and could disrupt normal service operations.
Reproduction
The vulnerability can be reproduced by sending a POST request to '/members/edit_user.php' with the 'firstname' parameter crafted to include a malicious SQL payload. This payload can exploit the application's SQL query handling by injecting SQL code that the application will execute, bypassing normal query restrictions. The injection can be verified by using a payload that, for example, checks for a true/false condition in the database, such as comparing a database value to a constant.
Remediation
It is recommended to implement prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be applied to ensure that user input meets expected formats, blocking malicious data. Finally, database user permissions should be minimized, ensuring that the database account used by the application has only the necessary privileges.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
