SQL Injection in SourceCodester Class and Exam Timetabling System
SourceCodester Class and Exam Timetabling System 1.0 contains an unauthenticated SQL injection vulnerability in edit_teacher.php that allows remote attackers to compromise database integrity.
CVE search metadata
CVE search record: CVE-2026-19899. Severity: high. CVSS: 7.3. KEV: no. Product: Class and Exam Timetabling System. Brief: SQL Injection in SourceCodester Class and Exam Timetabling System. Brief link: https://feed.craftedsignal.io/briefs/2026-08-sourcecodester-sqli/
SourceCodester Class and Exam Timetabling System version 1.0 is affected by a critical SQL injection vulnerability. The flaw exists within the edit_teacher.php file, where the ID parameter fails to properly neutralize user-supplied input before using it in database queries. This vulnerability allows an unauthenticated, remote attacker to manipulate SQL commands, potentially leading to unauthorized data access, modification, or deletion within the underlying database. The vulnerability has been publicly disclosed with functional exploit code, increasing the risk of active exploitation. Organizations utilizing this software are at risk of complete database compromise if the application is exposed to the internet.
Attack Chain
- Attacker performs reconnaissance to identify instances of Class and Exam Timetabling System exposed to the internet.
- Attacker probes the /edit_teacher.php endpoint to confirm the handling of the ID parameter.
- Attacker crafts a malicious HTTP GET or POST request containing SQL injection payloads targeting the ID argument.
- The application processes the request, passing the unvalidated input directly to the backend database query.
- The database executes the injected SQL command, allowing the attacker to bypass authentication or extract sensitive records.
- Attacker exfiltrates database contents or modifies administrative records to achieve further persistence or impact.
Impact
Successful exploitation of this vulnerability results in unauthorized access to the application database. This can lead to the exposure of sensitive teacher, student, and scheduling information. Depending on database permissions, an attacker may be able to modify records, delete data, or potentially perform remote code execution if the database configuration allows for file system interactions or administrative command execution.
Recommendation
- Audit all web server logs for requests directed at /edit_teacher.php containing SQL-related metacharacters (e.g., single quotes, double dashes, OR 1=1).
- Deploy the provided Sigma rule to detect attempts at exploiting this specific injection vector.
- Restrict access to the application from untrusted networks and place it behind a Web Application Firewall (WAF) configured to inspect for SQL injection patterns.
- If a patch is unavailable, consider deprecating the use of this software due to the lack of secure development practices indicated by this vulnerability.
Immediate actions
Deploy Sigma rule to detect exploitation attempts against edit_teacher.php
Mitigations
Restrict external network access to the application
CVE-2026-19899
Detection coverage 1
Detect CVE-2026-19899 Exploitation - SQL Injection in edit_teacher.php
highDetects exploitation attempts against the ID parameter in edit_teacher.php by looking for common SQL injection keywords and special characters.
Detection queries are available on the platform. Get full rules →