Code-Projects Voting System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in Code-Projects Voting System version 1.0, specifically within the file '/admin/positions_add.php'. The vulnerability arises because user-supplied input in the 'description' parameter is directly included in SQL queries without proper sanitization, allowing attackers to manipulate SQL commands and execute unauthorized database operations. This issue can be exploited remotely, and a public proof-of-concept exploit is available.

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/positions_add.php' with a crafted 'description' parameter that includes SQL injection payloads. The 'max_vote' parameter can also be included. The request should be made with a valid PHP session cookie.

Remediation

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

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

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.6
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.