Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1985+ Articles
151+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-16227: SQL Injection in SourceCodester Class and Exam Timetabling System
CVE-2026-16227: SQL Injection in SourceCodester Class and Exam Timetabling System
SECURITYHIGHCVE-2026-16227

CVE-2026-16227: SQL Injection in SourceCodester Class and Exam Timetabling System

A remotely exploitable SQL injection vulnerability in SourceCodester Class and Exam Timetabling System 1.0 allows unauthenticated attackers to manipulate the ID parameter in /edit_subject.php, potentially exposing or corrupting database contents.

Dylan H.

Security Team

July 20, 2026
3 min read

Affected Products

  • SourceCodester Class and Exam Timetabling System 1.0

Overview

CVE-2026-16227 is a SQL injection vulnerability affecting SourceCodester Class and Exam Timetabling System 1.0. The flaw exists in the /edit_subject.php endpoint, where user-supplied input via the ID parameter is passed directly to a database query without proper sanitization or parameterization.

The vulnerability is exploitable remotely without authentication and has been publicly disclosed with a working proof-of-concept exploit.

FieldDetails
CVE IDCVE-2026-16227
CVSS Score7.3 (High)
Affected SoftwareSourceCodester Class and Exam Timetabling System 1.0
Affected File/edit_subject.php
Vulnerable ParameterID
Attack VectorNetwork (Remote)
Authentication RequiredNone
Exploit AvailableYes (publicly disclosed)

Technical Details

The vulnerability stems from unsanitized handling of the ID GET/POST parameter in /edit_subject.php. An attacker can craft a malicious request that injects arbitrary SQL commands into the backend query, enabling:

  • Data extraction: Dumping database tables including user credentials, subject records, and schedule data
  • Authentication bypass: Manipulating login logic if the parameter feeds auth-related queries
  • Data manipulation: Inserting, modifying, or deleting records in the application database
  • Information disclosure: Enumerating database schema, version, and potentially server-side configuration

A typical attack payload would append SQL meta-characters or UNION SELECT statements to the ID parameter value, exploiting the absence of prepared statements.

Impact

While SourceCodester applications are typically used in academic and small-institution environments, exploitation of this vulnerability could result in:

  • Unauthorized access to student, faculty, and scheduling data
  • Modification of exam timetables or subject records
  • Full compromise of the backend database if the database user has elevated privileges
  • Potential lateral movement if database credentials are reused elsewhere in the environment

Affected Versions

ProductVersionStatus
SourceCodester Class and Exam Timetabling System1.0Vulnerable

Remediation

SourceCodester has not released an official patch at time of publication. Organizations running this software should apply the following mitigations:

  1. Parameterized queries: Replace all dynamic SQL construction with prepared statements or parameterized queries. This is the definitive fix for SQL injection.
  2. Input validation: Enforce strict integer validation on the ID parameter — reject any non-numeric input at the application layer.
  3. Web Application Firewall (WAF): Deploy a WAF with SQL injection rules enabled to detect and block malicious payloads at the network edge.
  4. Restrict access: If the timetabling system is only needed internally, place it behind a VPN or network access control to remove it from public internet exposure.
  5. Principle of least privilege: Ensure the database user account used by the application has the minimum permissions necessary (SELECT/INSERT/UPDATE only on required tables — no DROP, no admin rights).
  6. Monitor database logs: Enable query logging and alert on anomalous patterns such as UNION, SLEEP(), or multi-statement queries.

References

  • NVD Entry — CVE-2026-16227
  • OWASP SQL Injection Prevention Cheat Sheet
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command
#CVE#SQL Injection#SourceCodester#Web Application Security#Vulnerability

Related Articles

CVE-2026-16228: SQL Injection in SourceCodester Class and Exam Timetabling System via edit_schoolyr.php

A second SQL injection flaw in SourceCodester Class and Exam Timetabling System 1.0 exposes the /edit_schoolyr.php endpoint to remote unauthenticated exploitation via a malicious ID parameter, enabling database read and write access.

3 min read

CVE-2026-16152: SQL Injection in SourceCodester Class and Exam Timetabling System

A remotely exploitable SQL injection vulnerability has been disclosed in SourceCodester Class and Exam Timetabling System 1.0. The flaw in /edit_rooma.php allows attackers to manipulate the ID parameter to perform unauthorized database operations with a public exploit already available.

2 min read

CVE-2026-16154: SQL Injection in SourceCodester Timetabling Room Management

A second SQL injection vulnerability in SourceCodester Class and Exam Timetabling System 1.0 has been disclosed, this time affecting the /edit_room1.php endpoint. Like its companion CVE-2026-16152, the flaw allows remote attackers to manipulate the ID parameter with a public exploit already available.

2 min read
Back to all Security Alerts