Description
A vulnerability was determined in SourceCodester Online Voting System 1.0. This affects an unknown function of the file /ajax.php?action=login. Executing a manipulation of the argument Username can lead to sql injection. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized.
Published: 2026-09-06
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote SQL Injection
Action: Apply Patch
AI Analysis

Impact

A flaw in the login handling of the online voting system allows a user to inject an arbitrary SQL statement through the Username field. Because the value is concatenated directly into a database query without proper escaping or parameterization, an attacker can influence the backend query logic, potentially retrieving, modifying, or deleting data. Such an injection can compromise the confidentiality, integrity, and availability of the voting database, allowing unauthorized access to vote counts or election administration data.

Affected Systems

The vulnerability affects the SourceCodester Online Voting System, version 1.0. The exposure occurs in the ajax.php script that processes login actions. No other product or version variants are listed as affected by the CNA.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack can be performed remotely simply by sending a crafted HTTP request to the login endpoint. Because the flaw is a traditional SQL injection and the system does not appear to enforce input constraints, exploitation is likely straightforward for an attacker with basic knowledge of web-based injection techniques.

Generated by OpenCVE AI on September 6, 2026 at 04:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update to a patched release of the voting system if the vendor provides one.
  • Sanitize all input to the Username field and replace string concatenation with prepared statements or parameterized queries.
  • Limit the database user privileges to only the permissions necessary for authentication and reading existing data.

Generated by OpenCVE AI on September 6, 2026 at 04:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 08 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sun, 06 Sep 2026 03:00:00 +0000

Type Values Removed Values Added
Description A vulnerability was determined in SourceCodester Online Voting System 1.0. This affects an unknown function of the file /ajax.php?action=login. Executing a manipulation of the argument Username can lead to sql injection. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized.
Title SourceCodester Online Voting System ajax.php login sql injection
First Time appeared Sourcecodester
Sourcecodester online Voting System
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:sourcecodester:online_voting_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester online Voting System
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/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:P/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:P/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:P'}


Subscriptions

Sourcecodester Online Voting System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-08T18:13:56.788Z

Reserved: 2026-09-05T09:49:44.078Z

Link: CVE-2026-86162

cve-icon Vulnrichment

Updated: 2026-09-08T18:13:53.989Z

cve-icon NVD

Status : Deferred

Published: 2026-09-06T03:17:17.220

Modified: 2026-09-08T19:20:09.500

Link: CVE-2026-86162

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-06T04:30:05Z

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')