CVE-2026-86162
7.3SourceCodester · Online Voting System
A SQL injection vulnerability exists in the SourceCodester Online Voting System version 1.0, specifically within the username parameter of the /ajax.php?action=login endpoint.
Executive summary
An unauthenticated SQL injection vulnerability in SourceCodester Online Voting System version 1.0 allows remote attackers to manipulate database queries and potentially compromise system data.
Vulnerability
The application fails to properly sanitize the username parameter within the /ajax.php?action=login file, which is processed directly in SQL queries. This allows an unauthenticated attacker to inject malicious SQL commands to bypass authentication or extract sensitive database information.
Business impact
Successful exploitation of this vulnerability can lead to unauthorized access to the underlying database, resulting in the leakage of sensitive user information or voting records. Given the CVSS score of 7.3, this represents a high risk to data integrity and confidentiality, potentially leading to a complete compromise of the voting application and loss of trust in the system.
Remediation
Immediate Action: As no official patch is currently available, administrators should restrict access to the login interface or implement strict input validation on the username field at the application level.
Proactive Monitoring: Review web server access logs for anomalous traffic directed at /ajax.php, specifically monitoring for unusual characters or SQL syntax patterns within the POST parameters.
Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to detect and block common SQL injection patterns targeting the login endpoint.
Exploitation status
Public Exploit Available: Yes — a published proof-of-concept exists as detailed in the technical write-up on GitHub.
Analyst recommendation
Due to the high severity and the availability of a public proof-of-concept, users are urged to treat this vulnerability with urgency. If the application cannot be secured via code changes or WAF rules, it should be taken offline until a vendor-supplied update or secure configuration is available to prevent unauthorized database access.
More SourceCodester CVEs all →
Sources
Originally found and disclosed by LEOJun (VulDB User), per the CVE Program record.
- VDB-399287 | SourceCodester Online Voting System ajax.php login sql injection Vulnerability database entry
- VDB-399287 | CTI Indicators (IOB, IOC, TTP, IOA)
- CVE-2026-86162 | CVE Analysis and Report Third-party advisory
- Submit #895450 | SourceCodester Online Voting System Project using PHP/MySQL /voting/ajax.php?action=login 1.0 SQL Inje Third-party advisory
- Exploit / PoC
- sourcecodester.com