Code-Projects Voting System SQL Injection Vulnerability in Voters Management
Vulnerability
A critical SQL injection vulnerability has been identified in Code-Projects Voting System version 1.0. The issue arises in the file '/admin/voters_add.php', where user-supplied input in the 'firstname' and 'lastname' parameters is directly concatenated into an SQL query without proper sanitization. This flaw allows remote attackers to manipulate SQL queries and execute unauthorized database operations.
Impact
Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.
Reproduction
To reproduce this vulnerability, send a POST request to '/admin/voters_add.php' with crafted 'firstname' and 'lastname' parameters. The injected SQL payloads can manipulate the SQL query used to add voters, potentially leading to unauthorized database access or modification.
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.
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.
