Description
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.
Published: 2026-07-04
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in the test_input function of the /saveVote.php endpoint, which concatenates values from voterName, voterEmail, voterID, and selectedCandidate directly into an SQL statement without escaping or parameterization, satisfying CWE‑74 and CWE‑89. This permits an attacker to inject arbitrary SQL code, enabling the execution of any SQL statement the database user can run, potentially compromising data confidentiality, integrity, or availability. The CVE description notes that the attack can be initiated remotely, but the specific downstream effects are not detailed; however, standard SQL injection vectors could allow data exfiltration, modification, or deletion. The input sanitization weakness is an endpoint‑level vulnerability that is exploitable by any client capable of sending HTTP requests to the voting system.

Affected Systems

Code‑Projects Online Voting System version 1.0 is the only product referenced in the CNA data; no other versions or components are listed as impacted.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is below 1%, implying a low but non‑zero probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker can launch the injection remotely by issuing HTTP requests to /saveVote.php, supplying malicious input that will be executed as part of the unparameterized SQL query.

Generated by OpenCVE AI on July 24, 2026 at 09:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor’s patch or upgrade to a fixed version of the Online Voting System.
  • If a patch is unavailable, validate and sanitize all input fields (enforce length limits, whitelist allowed characters, and escape special characters).
  • Rewrite the database queries to use prepared statements or parameterized queries, thereby eliminating string concatenation.
  • Restrict public exposure of the /saveVote.php endpoint to trusted networks or enforce authentication to limit who can submit votes.

Generated by OpenCVE AI on July 24, 2026 at 09:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 04 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description 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.
Title code-projects Online Voting System saveVote.php test_input sql injection
First Time appeared Code-projects
Code-projects online Voting System
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:code-projects:online_voting_system:*:*:*:*:*:*:*:*
Vendors & Products Code-projects
Code-projects online Voting System
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:ND/RL:ND/RC:UR'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:R'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Subscriptions

Code-projects Online Voting System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-07-07T03:01:15.414Z

Reserved: 2026-07-03T18:31:24.786Z

Link: CVE-2026-14649

cve-icon Vulnrichment

Updated: 2026-07-07T03:01:10.352Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-24T10:00:04Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')