Campcodes Advanced Online Voting System SQL Injection Vulnerability in candidates_delete.php

Vulnerability

A critical SQL injection vulnerability has been identified in Campcodes Advanced Online Voting System version 1.0. The issue resides in the file '/admin/candidates_delete.php', where insufficient validation of the 'id' parameter allows attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, potentially leading to unauthorized database access, data manipulation, and leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to interfere with the application's database queries. This could result in unauthorized data access, data modification or deletion, and in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, authenticate to the application to obtain a valid PHP session ID. Then, send a POST request to '/admin/candidates_delete.php' with the 'delete' parameter set to '1' and the 'id' parameter crafted to include the SQL injection payload. The application will process the request, and the injected SQL code will be executed, demonstrating the vulnerability.

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 further enhance the application's security.

Added: Jul 7, 2025, 10:24 PM
Updated: Jul 7, 2025, 10:24 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
8.1
exploitability
6.8
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

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