Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend unauthenticated POST request to /saveVote.php
-
DeliveryInject SQL metacharacters via voterName, voterID, or selectedCandidate
-
ExploitBypass test_input sanitization function
-
ExecutionAlter backend SQL query logic
-
ImpactRead or modify voter database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | No special conditions are required for exploitation - /saveVote.php is a publicly accessible endpoint in a default installation that processes unauthenticated HTTP POST requests as part of normal vote submission. The CVSS 4.0 vector PR:N confirms no authentication is required. All four injectable parameters are part of the standard vote form available to any visitor. Exploitation is limited to: (1) deployments specifically running code-projects Online Voting System 1.0, (2) instances reachable over a network (local or internet-facing), and (3) installations without a WAF or custom sanitization applied at the server layer. No specific PHP configuration, non-default feature flag, or privileged account is required. |
| Impact | The CVSS 4.0 score of 6.9 with vector AV:N/AC:L/AT:N/PR:N/UI:N reflects a low-friction, unauthenticated network attack requiring no special conditions - a high-severity attack surface profile. However, all three impact dimensions are rated Low (VC:L/VI:L/VA:L), indicating the database or application scope limits the blast radius. A public proof-of-concept is referenced via a GitHub gist, which materially lowers exploitation effort and suggests this was confirmed through researcher testing rather than vendor disclosure. No CISA KEV listing is present, meaning no confirmed active exploitation campaigns are known at time of analysis. No EPSS score was provided in the input data - exploitation probability cannot be quantified from available signals. The primary risk moderator is product prevalence: code-projects Online Voting System is an educational demo with negligible enterprise or production deployment, making this a low-priority finding for most security teams unless the specific application is confirmed in their environment. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted HTTP POST request to /saveVote.php on a publicly accessible deployment, injecting SQL syntax (e.g., a single quote or UNION SELECT payload) into the voterID or selectedCandidate parameter. The test_input function fails to strip or escape the metacharacters, causing the backend SQL query to execute attacker-controlled logic - enabling enumeration of voter records, manipulation of vote tallies, or authentication bypass if credentials are stored in the same database. A public proof-of-concept on GitHub (https://gist.github.com/c4ttr4ck/a29b2238099fa07b4f072c21123b55ef) documents a working exploitation path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 04, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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
DescriptionCVE.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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
EUVD-2026-41693
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB