Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted HTTP request to /ajax.php
-
DeliveryInject malicious SQL via id parameter
-
ExploitBypass query logic in delete_category handler
-
ExecutionExtract or manipulate database records
-
ImpactAccess admin credentials or alter vote data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of SourceCodester Online Voting System 1.0. The CVSS PR:N metric confirms no authentication is required to reach the vulnerable |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/E:P) scores 6.9, reflecting limited per-component CIA impacts. The PR:N metric confirms the endpoint is unauthenticated, and AC:L/AT:N means exploitation requires no special conditions beyond network access - effectively a trivially exploitable attack against any internet-exposed instance. The VC:L/VI:L/VA:L ratings may understate impact: SQL injection in a voting system database could yield extraction of the full schema, admin password hashes, and manipulation of vote records, which arguably warrants C:H/I:H rather than L/L/L in a worst-case SQLi scenario. However, the reporter's limited-impact assessment may reflect that the |
| Exploit ScenarioDerived | An unauthenticated attacker sends a crafted HTTP GET or POST request to the target server at |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 06, 2026
Unauthenticated SQL injection in SourceCodester Online Voting System 1.0 allows remote attackers to manipulate database queries via the unsanitized id parameter in /ajax.php?action=delete_category. Because the endpoint accepts user-supplied input without parameterization or sanitization, an attacker can craft malicious SQL payloads to read, modify, or delete database contents - including voter credentials, vote tallies, and administrative account data. A public proof-of-concept exploit exists per VulDB submission; no vendor patch has been identified at time of analysis. No public exploit identified at time of analysis is contradicted by the POC flag - POC is confirmed publicly available.
RemediationAI
No vendor-released patch has been identified at time of analysis. SourceCodester does not maintain formal security advisories for its educational codebases. For operators who have deployed this application, the primary remediation is to replace raw SQL string concatenation with PHP PDO prepared statements or MySQLi parameterized queries for all user-supplied inputs including the id parameter in /ajax.php. As an immediate compensating control, restrict access to /ajax.php endpoints to authenticated sessions by enforcing session validation at the top of the file - if the delete_category action should require admin privileges, add a strict session/role check before processing the id parameter. Additionally, apply a web application firewall rule to detect and block common SQL injection patterns (UNION, OR 1=1, comment sequences) on this endpoint. Given the educational nature of the product, the most practical recommendation is to not deploy this application in any internet-accessible or production environment.
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 product is a PHP-based web voting application distributed by SourceCodester (CPE: cpe:2.3:a:sourcecodester:online_voting_system:*:*:*:*:*:*:*:*), a platform offering free source-code projects primarily targeting developers and students. The vulnerability is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). The AJAX handler at /ajax.php?action=delete_category accepts an id parameter and passes it unsanitized to a backend SQL query, a classic first-order SQL injection pattern common in educational PHP codebases that do not use prepared statements or PDO parameter binding. The injection point is in an administrative data-manipulation action (category deletion), which may or may not require authentication depending on how session checks are implemented - the CVSS PR:N suggests no authentication is enforced on this endpoint.
Know when Online Voting System 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/E:P
Network-reachable, no auth (PR:N per CVSS), trivial to exploit; C/I/A limited to L consistent with reporter's VC/VI/VA:L assessment.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was found in SourceCodester Online Voting System 1.0. The impacted element is an unknown function of the file /ajax.php?action=delete_category. Performing a manipulation of the argument ID results in sql injection. Remote exploitation of the attack is possible. The exploit has been made public and could be used.
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.
Related Vulnerabilities in SourceCodester Online Voting System SQL Injection
View all 4More in Online Voting System
View allSQL injection vulnerability in janobe Online Voting System v.1.0 allows a remote attacker to execute arbitrary code via
Projectworld Online Voting System Version 1.0 is vulnerable to Cross Site Request Forgery (CSRF) via voter.php. Rated me
Online Birth Certificate System Project V 1.0 is affected by cross-site scripting (XSS). Rated medium severity (CVSS 6.1
Unauthenticated SQL injection in code-projects Online Voting System 0.x-1.0 exposes the admin login endpoint to full aut
SQL injection in SourceCodester Online Voting System 1.0 allows unauthenticated remote attackers to read and manipulate
A vulnerability was identified in itsourcecode Online Voting System 1.0. Rated medium severity (CVSS 6.9), this vulnerab
A weakness has been identified in itsourcecode Online Voting System 1.0. Rated medium severity (CVSS 5.3), this vulnerab
A vulnerability was detected in itsourcecode Online Voting System 1.0. Rated medium severity (CVSS 5.3), this vulnerabil
A security flaw has been discovered in itsourcecode Online Voting System 1.0. Rated medium severity (CVSS 5.3), this vul
EUVD-2026-72045
GHSA-45vp-4854-43r7
NVD
CVE.org
EPSS
VulDB
Exploit-DB