SourceCodester Online Polling System SQL Injection Vulnerability in Positions.php

Vulnerability

A critical SQL injection vulnerability has been identified in SourceCodester Online Polling System version 1.0. The issue arises in the file '/admin/positions.php', where insufficient input validation of the 'id' parameter allows for the injection of malicious SQL queries. This vulnerability can be exploited remotely, potentially leading to unauthorized database access, data modification or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could result in unauthorized data access, data modification or deletion, and exploitation of other vulnerabilities through database interactions.

Reproduction

To reproduce this vulnerability, navigate to the '/admin/positions.php' file and manipulate the 'id' parameter with unvalidated input. This can be done by sending a request that includes a crafted 'id' value designed to exploit the SQL injection flaw. The vulnerability can also be discovered using Google Hacking by searching for 'inurl:admin/positions.php' which may reveal vulnerable targets.

Added: Sep 17, 2025, 9:27 PM
Updated: Sep 17, 2025, 9:27 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
6.6
remediation
0.0
relevance
0.5
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.