Code-Projects Voting System SQL Injection Vulnerability in Voters Edit Admin File

Vulnerability

A critical SQL injection vulnerability has been identified in Code-Projects Voting System version 1.0. The issue resides in the admin file 'voters_edit.php', where user-supplied input in the 'id' parameter is directly appended to 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_edit.php' with an 'id' parameter containing malicious SQL code. The injected SQL will be executed by the application, allowing for SQL injection exploitation. This vulnerability can be automated with tools like SQLMap.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection vulnerabilities. Input validation and filtering should also be implemented to ensure user input conforms to expected formats.

Added: Jul 14, 2025, 1:34 AM
Updated: Jul 14, 2025, 1:34 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
6.7
exploitability
8.7
remediation
0.0
relevance
0.2
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.