SourceCodester Online Polling System SQL Injection Vulnerability in Admin Management File
Vulnerability
A SQL injection vulnerability has been identified in SourceCodester Online Polling System version 1.0. The issue resides in the '/admin/manage-admins.php' file, where the 'email' parameter is manipulated, leading to unauthorized database access. This vulnerability allows attackers to inject malicious SQL queries, potentially causing data leakage, unauthorized data modification, and disruption of service. The vulnerability can be exploited remotely without any authentication.
Impact
Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could lead to unauthorized data access, data modification or deletion, and in some cases, executing administrative operations on the database.
Reproduction
To reproduce this vulnerability, send a POST request to '/admin/manage-admins.php' with the 'email' parameter containing a crafted SQL payload. The injection can be verified by using a time-based blind SQL injection technique, such as adding a SQL command that causes a delay in the response.
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.
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.
