code-projects Voting System CVE-2025-8174
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials
-
DeliveryAccess /admin/candidates_add.php
-
ExploitUpload malicious PHP file via photo parameter
-
ExecutionExecute uploaded file via HTTP request
-
ImpactAchieve remote code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires valid administrative credentials to access the /admin/candidates_add.php endpoint - unauthenticated attackers cannot reach the vulnerable function. The attack assumes the web server processes uploaded files as executable code (PHP execution in the upload directory is enabled), which is a deployment-specific condition. Additionally, the attack succeeds only if file type validation is absent or bypassable (e.g., accepting .php files or MIME type spoofing). The vulnerability does NOT require user interaction, special network configuration, or non-default settings beyond the deployment of the voting system itself. If the application enforces strict file type validation, stores uploads outside the web root, or disables script execution in the upload directory, exploitation is prevented. The CVSS PR:L requirement means unauthenticated remote code execution is NOT possible; credential compromise or insider access is prerequisite. |
| Impact | The risk profile is paradoxical: the CVE is classified as critical in its description, yet the CVSS 2.1 score and 0.06% EPSS percentile (20th percentile, indicating very low exploitation probability) suggest minimal real-world risk. Analysis reconciles these signals: CVSS vector shows AV:N (network accessible) but PR:L (requires authenticated login), AC:L (low complexity), and VC/VI/VA:L (low confidentiality/integrity/availability impact), indicating the vulnerability is not immediately dangerous despite network accessibility. EPSS at 0.06% reflects that exploitation requires valid admin credentials, is not automatable at scale, and has limited technical impact (file upload without confirmed RCE path). The public exploit availability (E:P) indicates disclosure but not active widespread exploitation. This is a real security issue for organizations using this voting system where administrative accounts are compromised or malicious insiders exist, but does not warrant emergency patching for most deployments. Real risk depends on: (1) whether uploaded files can be executed by the web server, (2) strength of access controls to the /admin directory, and (3) deployment context (internet-facing vs. internal). |
| Exploit ScenarioDerived | An authenticated administrator with a compromised password, or a malicious insider with valid admin credentials, navigates to /admin/candidates_add.php and uploads a PHP webshell disguised as an image (e.g., shell.php.jpg or a polyglot file) via the photo parameter. If the upload directory is web-accessible and execution is enabled, the attacker accesses the uploaded file via HTTP to trigger remote code execution, gaining server-level control. The public exploit code available on GitHub likely automates this process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Unrestricted file upload in code-projects Voting System 1.0 allows authenticated remote attackers to upload arbitrary files via the photo parameter in /admin/candidates_add.php, potentially enabling remote code execution. The vulnerability requires valid administrative credentials and has been publicly disclosed with exploit code available, though real-world exploitation risk is minimal given the CVSS 2.1 score and 0.06% EPSS percentile reflecting low automatable impact and authentication barriers.
RemediationAI
No vendor-released patch is identified in available sources. Immediate mitigations include: (1) Implement strict file type validation on the server side by checking both file extension AND MIME type (not just client-side), rejecting anything except valid image formats (JPEG, PNG, GIF); (2) Store uploaded files outside the web root or in a directory with execution disabled (e.g., Apache .htaccess with 'php_flag engine off' or nginx location block denying script execution); (3) Enforce access controls ensuring only authorized administrators can access /admin/candidates_add.php, via IP whitelisting, additional authentication factors, or WAF rules; (4) Rename uploaded files to remove original names and assign random identifiers to prevent direct access; (5) Consider upgrading to a maintained voting system if available, or request security patches from code-projects.org (https://code-projects.org/). For organizations unable to patch, disable the candidates_add functionality entirely if not actively used, and monitor file uploads for suspicious activity.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a classic unrestricted file upload flaw (CWE-284: Improper Access Control) in a PHP-based voting application. The affected endpoint /admin/candidates_add.php fails to properly validate or restrict file types accepted in the photo parameter, allowing authenticated users with admin-level access to upload arbitrary file types. The vulnerability is rooted in inadequate input validation and file type verification, combined with improper access controls that may permit authenticated users to manipulate administrative functions. The underlying technology stack is PHP running on a web server handling form submissions that process image uploads without sufficient content-type or extension validation.
Know when 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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability was found in code-projects Voting System 1.0 and classified as critical. Affected by this issue is some unknown functionality of the file /admin/candidates_add.php. The manipulation of the argument photo leads to unrestricted upload. The attack may be launched remotely. The exploit has been disclosed to the public and may 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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Affected Products (CPE)CVE.org
More in Voting System
View allA vulnerability, which was classified as critical, was found in code-projects Voting System 1.0. Rated high severity (CV
A vulnerability, which was classified as critical, has been found in code-projects Voting System 1.0. Rated high severit
SQL injection vulnerability in code-projects Voting System 1.0 allows remote authenticated attackers to manipulate the I
SQL injection in Code-projects Voting System 1.0 allows remote authenticated attackers with low privileges to execute ar
Authenticated SQL injection in code-projects Voting System 1.0 allows a low-privileged attacker to manipulate the descri
SQL injection in code-projects Voting System 1.0 allows authenticated remote attackers to execute arbitrary SQL commands
SQL injection in code-projects Voting System 1.0 allows authenticated low-privilege attackers to manipulate the ID param
SQL injection in Voting System 1.0 allows remote attackers with low privileges to manipulate database queries via the fi
Stored cross-site scripting (XSS) in code-projects Voting System 1.0 allows remote attackers to inject malicious scripts
Unrestricted file upload in code-projects Voting System 1.0 allows authenticated high-privilege administrators to upload
Stored cross-site scripting (XSS) in code-projects Voting System 1.0 allows authenticated users with low privileges to i
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB