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

Vulnerability

A SQL injection vulnerability exists in Campcodes Advanced Online Voting System version 1.0, specifically within the '/admin/login.php' file. The issue arises from inadequate input validation of the 'username' parameter, allowing attackers to inject malicious SQL code that is executed without proper sanitization. This vulnerability can be exploited remotely, without requiring authentication, potentially leading to unauthorized database access, data manipulation, and exposure 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, send a POST request to '/votesystem/admin/login.php' with a crafted 'username' parameter that includes SQL injection payloads, such as those exploiting XML functions, and a 'password' parameter. The injection bypasses authentication and manipulates the SQL query to extract database information.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Aug 30, 2025, 3:20 PM
Updated: Aug 30, 2025, 3:20 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
3.1
exploitability
9.7
remediation
0.0
relevance
0.4
threat
6.4
urgency
2.9
incentive
10.0

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