Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102912 Overview
CVE-2026-102912 is a SQL injection vulnerability in SourceCodester Online Leave Management System 1.0. The flaw resides in the /admin/?page=reports endpoint, where the date_start and date_end parameters are passed to a database query without proper sanitization. An authenticated remote attacker with high privileges can manipulate these parameters to inject arbitrary SQL statements. Public exploit details are available, increasing the likelihood of opportunistic abuse against exposed installations. The weakness is categorized under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component.
Critical Impact
Successful exploitation allows attackers to read, modify, or delete data in the leave management database, potentially exposing employee records and administrative content.
Affected Products
- SourceCodester Online Leave Management System 1.0
- Administrative reports module (/admin/?page=reports)
- Deployments exposing the admin interface to untrusted networks
Discovery Timeline
- 2026-09-30 - CVE-2026-102912 published to the National Vulnerability Database (NVD)
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-102912
Vulnerability Analysis
The vulnerability affects the reports page in the administrative section of the Online Leave Management System. The application accepts the date_start and date_end HTTP parameters and concatenates them into a SQL statement used to filter leave reports. Because the input is not parameterized or escaped, an attacker can break out of the intended date literal and append arbitrary SQL clauses. Exploitation requires an authenticated session with administrative-level privileges and network reachability to the affected endpoint.
Root Cause
The root cause is improper neutralization of user-supplied input passed to a downstream SQL interpreter [CWE-74]. The date_start and date_end values are placed directly into the query string used to generate report data, without prepared statements or type validation. This design allows attacker-controlled data to alter the structure of the executed query.
Attack Vector
An attacker with valid administrative credentials sends a crafted HTTP request to /admin/?page=reports containing a malicious payload in the date_start or date_end parameter. The injected SQL is executed against the backend database with the privileges of the application's database user. Consequences include disclosure of records, tampering with leave data, and, depending on database privileges, further pivoting via file writes or stacked queries. Additional technical detail is available in the GitHub CVE Issue Discussion and the VulDB CVE Record.
Detection Methods for CVE-2026-102912
Indicators of Compromise
- HTTP requests to /admin/?page=reports containing SQL metacharacters such as single quotes, UNION, SLEEP(, --, or /* in date_start or date_end parameters.
- Web server or PHP error log entries referencing SQL syntax errors originating from the reports endpoint.
- Unusual database read volume or long-running queries against the leave management schema.
Detection Strategies
- Deploy web application firewall (WAF) signatures that flag SQL injection patterns in date_start and date_end query parameters.
- Enable database query logging and alert on queries containing report filters with concatenated non-date content.
- Correlate administrative authentication events with anomalous report requests to spot credential misuse.
Monitoring Recommendations
- Forward web server, PHP, and MySQL logs to a central analytics platform for cross-source correlation.
- Baseline normal report generation activity by user and alert on outliers in request size or frequency.
- Monitor administrator accounts for logins from new locations followed by requests to /admin/?page=reports.
How to Mitigate CVE-2026-102912
Immediate Actions Required
- Restrict network access to the /admin/ interface using IP allow-listing, VPN, or reverse-proxy authentication.
- Rotate administrative credentials and enforce strong, unique passwords for all admin accounts.
- Review database audit logs for evidence of unauthorized data access on the reports endpoint.
- Deploy a WAF rule blocking SQL metacharacters in the date_start and date_end parameters.
Patch Information
No official vendor patch is referenced in the NVD entry for CVE-2026-102912. Administrators should monitor the SourceCodester Resource Collection for updates and consult the VulDB Vulnerability Details for tracking. Until a fix is published, apply the workarounds below and consider replacing the affected component with a maintained alternative.
Workarounds
- Modify the reports module to use parameterized queries or prepared statements for the date_start and date_end inputs.
- Add server-side input validation restricting both parameters to a strict YYYY-MM-DD format before query construction.
- Enforce least-privilege database accounts so the web application cannot perform destructive operations even if injection succeeds.
- Disable or remove the reports feature if it is not required in the deployment.
# Example nginx location block restricting admin access to trusted IPs
location /admin/ {
allow 10.0.0.0/8;
deny all;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

