Skip to content
Threat Feed
high advisory

SQL Injection in SourceCodester Online Voting System

SourceCodester Online Voting System 1.0 is vulnerable to remote SQL injection via the 'id' parameter in the '/ajax.php?action=save_user' endpoint, enabling unauthenticated attackers to manipulate database queries.

CVE search metadata

CVE search record: CVE-2026-86159. Severity: high. CVSS: 7.3. KEV: no. Product: Online Voting System (1.0). Brief: SQL Injection in SourceCodester Online Voting System. Brief link: https://feed.craftedsignal.io/briefs/2026-09-sourcecodester-sqli/

What's new

  • 1. added detection rule: Detects CVE-2026-86162 Exploitation - SQL Injection in Login Endpoint Sep 6, 03:36 via nvd
  • 2. added detection rule: Detects CVE-2026-86161 Exploitation - SQL Injection in ajax.php Sep 6, 03:36 via nvd

SourceCodester Online Voting System version 1.0 contains a SQL injection vulnerability within the /ajax.php endpoint. The flaw is specifically triggered through the 'id' parameter when the action is set to 'save_user'. An unauthenticated remote attacker can inject arbitrary SQL commands into the application's database queries. This vulnerability is significant because the exploit code has been publicly released, increasing the likelihood of exploitation. Successful exploitation allows an attacker to bypass authentication, extract sensitive voter information, modify database records, or potentially gain further control over the underlying web application environment. Defenders should prioritize auditing web server access logs for requests to the /ajax.php endpoint containing SQL metacharacters.

Impact

Successful exploitation of CVE-2026-86159 allows an attacker to gain unauthorized access to the backend database, potentially leading to the theft of personal voter data, integrity loss of voting records, or total compromise of the application data layer.

Recommendation

  1. Deploy a Web Application Firewall (WAF) rule to block requests to '/ajax.php' that contain SQL injection patterns (e.g., UNION, SELECT, OR 1=1) within the 'id' parameter.
  2. Audit web server access logs (Apache, Nginx, or IIS) for POST requests to '/ajax.php' where the query string or body contains the 'action=save_user' and 'id' parameters, and inspect these for potential SQL injection strings.
  3. Ensure that the web application implements parameterized queries (prepared statements) to neutralize the SQL injection vector, as SourceCodester has not provided a patch for this version.

Immediate actions

Monitor web logs for suspicious activity targeting /ajax.php

SOC 24h

Mitigations

Restrict access to /ajax.php via WAF rules or IP whitelisting

immediate IT Operations

CVE-2026-86159

Detection coverage 3

Detects CVE-2026-86159 Exploitation - SQL Injection via ajax.php

high

Detects exploitation attempts against SourceCodester Online Voting System by looking for SQL injection metacharacters within the id parameter of the save_user action.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detects CVE-2026-86161 Exploitation - SQL Injection in ajax.php

high

Detects potential SQL injection attempts targeting the Online Voting System ajax.php endpoint by looking for common SQL injection payloads in the 'id' parameter.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detects CVE-2026-86162 Exploitation - SQL Injection in Login Endpoint

high

Detects SQL injection attempts via the Username parameter on the /ajax.php login endpoint.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →