Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Unauthenticated network endpoint with no complexity barrier; low C/I/A reflects limited scope of a single-purpose voting app database.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
Lifecycle Timeline
1DescriptionCVE.org
A vulnerability was detected in code-projects Online Voting System 1.0. Impacted is the function test_input of the file /saveVote.php. Performing a manipulation of the argument voterName/voterEmail/voterID/selectedCandidate results in sql injection. The attack can be initiated remotely.
AnalysisAI
SQL injection in code-projects Online Voting System 1.0 exposes remote unauthenticated attackers a direct path to manipulate backend database queries through four parameters in the vote submission endpoint /saveVote.php. The test_input function - intended as a sanitization layer - fails to neutralize SQL metacharacters across voterName, voterEmail, voterID, and selectedCandidate, indicating a systemic rather than isolated input-handling failure. A publicly available proof-of-concept exists on GitHub, lowering the exploitation barrier, though real-world exposure is substantially constrained by the product's near-zero production deployment footprint as an educational PHP project.
Technical ContextAI
The affected application is a PHP-based voting system distributed by code-projects.org, a platform that publishes educational and demo source code projects. The vulnerable file /saveVote.php contains a function named test_input which performs superficial input handling but fails to prevent SQL injection - a textbook instance of CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), which encompasses CWE-89 SQL Injection as a child weakness. The root cause is that user-supplied values are not bound through parameterized queries or prepared statements before being embedded in SQL logic. Four parameters are affected - voterName, voterEmail, voterID, and selectedCandidate - suggesting the unsanitized input pattern is applied broadly across the vote-processing logic rather than in one isolated location. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms the vulnerability is network-accessible with no authentication, no complexity barrier, and no required user interaction.
RemediationAI
No vendor-released patch has been identified at time of analysis - code-projects does not maintain security update cycles for its educational projects. The definitive fix is replacing the test_input function with PHP PDO or MySQLi prepared statements with bound parameters, which eliminates the SQL injection root cause entirely; this change must be applied consistently across all four vulnerable parameters in /saveVote.php. As a compensating control, web server access controls (e.g., Apache .htaccess or nginx allow/deny directives) can restrict /saveVote.php to known IP ranges, reducing unauthenticated exposure - though this breaks the application's intended public accessibility and is not a substitute for code-level remediation. Deploying a WAF rule blocking SQL metacharacter patterns in POST body parameters offers partial mitigation but can be bypassed with encoding techniques. The most effective long-term resolution is replacing this application with an actively maintained alternative. Advisory reference: https://vuldb.com/vuln/376162.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41693