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-16228: SQL Injection in SourceCodester Class and Exam Timetabling System via edit_schoolyr.php
CVE-2026-16228: SQL Injection in SourceCodester Class and Exam Timetabling System via edit_schoolyr.php
SECURITYHIGHCVE-2026-16228

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.

Dylan H.

Security Team

July 20, 2026
3 min read

Affected Products

  • SourceCodester Class and Exam Timetabling System 1.0

Overview

CVE-2026-16228 is a SQL injection vulnerability in SourceCodester Class and Exam Timetabling System 1.0, closely related to CVE-2026-16227 disclosed on the same day. This flaw exists in /edit_schoolyr.php, a separate endpoint for editing school year records, where the ID parameter is not properly sanitized before being used in database queries.

Like its companion CVE, this vulnerability is remotely exploitable without authentication, and a public proof-of-concept exploit has been made available.

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

Technical Details

The /edit_schoolyr.php endpoint accepts an ID parameter used to retrieve and pre-populate a school year record for editing. This value is concatenated directly into a SQL query without parameterization, allowing an attacker to inject arbitrary SQL.

Exploitation scenarios include:

  • UNION-based data extraction: Enumerating all database tables and extracting records across the application
  • Boolean-blind injection: Inferring data character-by-character through true/false application responses
  • Time-based blind injection: Using SLEEP() or similar functions to infer data when no output is reflected
  • Stacked queries (if the database driver supports it): Executing multiple statements to perform INSERT, UPDATE, or DROP operations

The simultaneous disclosure of CVE-2026-16227 (/edit_subject.php) and CVE-2026-16228 (/edit_schoolyr.php) suggests a systemic lack of input sanitization across the application's edit endpoints.

Impact

Both CVEs share the same root cause: raw concatenation of user input into SQL queries. Organizations running this application face:

  • Data exposure: Academic records, scheduling data, user credentials accessible to any remote attacker
  • Data integrity loss: School year records can be altered or deleted, disrupting scheduling operations
  • Compounded risk: With two known SQLi endpoints, the application's entire data layer must be considered compromised until patched

Affected Versions

ProductVersionStatus
SourceCodester Class and Exam Timetabling System1.0Vulnerable

Remediation

No vendor patch is available. Apply the same mitigations as CVE-2026-16227:

  1. Parameterized queries / prepared statements: The only reliable fix — never concatenate user input into SQL strings.
  2. Strict type validation: Enforce integer-only input for ID parameters at the controller/handler level.
  3. WAF deployment: Use a web application firewall to filter SQL injection patterns in transit.
  4. Network isolation: Remove public internet access to the application if it is used only within an institution's internal network.
  5. Database least privilege: Restrict the application's database account permissions to what is strictly necessary for normal operation.
  6. Security audit: Given that two SQLi endpoints were found, conduct a full code audit of all other form-handling endpoints in the application.

Related Advisories

  • CVE-2026-16227 — SQL Injection in /edit_subject.php (same application, same day)

References

  • NVD Entry — CVE-2026-16228
  • 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-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.

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