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.

2133+ Articles
156+ 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-2025-67403: Critical SQL Injection in CASAP Enrollment System update_class.php
CVE-2025-67403: Critical SQL Injection in CASAP Enrollment System update_class.php

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2025-67403

CVE-2025-67403: Critical SQL Injection in CASAP Enrollment System update_class.php

A critical-severity SQL injection vulnerability (CVSS 9.8) in Sourcecodester CASAP Automated Enrollment System 1.0 allows unauthenticated remote attackers to execute arbitrary SQL via the class_name parameter in update_class.php.

Dylan H.

Security Team

July 30, 2026
5 min read

Affected Products

  • Sourcecodester CASAP Automated Enrollment System 1.0

Executive Summary

CVE-2025-67403 is a critical SQL injection vulnerability (CVSS 9.8) affecting Sourcecodester CASAP Automated Enrollment System version 1.0. The flaw resides in the update_class.php endpoint, where the class_name POST parameter is passed directly to a SQL query without sanitization. An unauthenticated remote attacker can exploit this to extract, modify, or delete database contents, and potentially achieve server-level code execution depending on the database configuration.

AttributeValue
CVE IDCVE-2025-67403
CVSS v3.1 Score9.8 (Critical)
Vulnerability TypeSQL Injection (CWE-89)
Attack VectorNetwork
Authentication RequiredNone
Privileges RequiredNone
User InteractionNone
Confidentiality ImpactHigh
Integrity ImpactHigh
Availability ImpactHigh
Published2026-07-29

Affected Software

ProductVersionStatus
Sourcecodester CASAP Automated Enrollment System1.0Vulnerable

CASAP is a PHP-based open-source school enrollment management system distributed through Sourcecodester.com. It is widely used by educational institutions in the Philippines and Southeast Asia as a low-cost enrollment management solution.


Vulnerability Details

Root Cause

The vulnerable endpoint update_class.php accepts a class_name parameter via HTTP POST and incorporates it directly into a SQL query without parameterized queries or proper input sanitization. This classic unsanitized user input pattern allows attackers to inject arbitrary SQL code.

Vulnerable parameter: class_name
Affected endpoint:    update_class.php
Injection type:       POST-based SQL Injection
Database:             MySQL (typical Sourcecodester stack)

Attack Scenario

1. Attacker identifies a CASAP enrollment system exposed to the internet
2. Sends crafted HTTP POST request to update_class.php
3. Injects SQL payload via class_name parameter
4. Extracts sensitive data (student records, credentials, staff data)
5. Potentially escalates to OS-level access via MySQL FILE/EXEC privileges

Potential Impact

A successful exploitation of CVE-2025-67403 can result in:

  • Full database extraction — all student enrollment records, grades, personal information
  • Authentication bypass — extraction or modification of administrator credentials
  • Data tampering — modification of academic records, enrollment status, or grades
  • Database destruction — DROP TABLE or DELETE operations
  • Remote code execution — via MySQL INTO OUTFILE or LOAD_FILE if file privileges are enabled

CVSS Vector Breakdown

MetricValueRationale
Attack VectorNetworkExploitable remotely over HTTP
Attack ComplexityLowNo special conditions required
Privileges RequiredNoneNo authentication needed
User InteractionNoneNo victim interaction required
ScopeUnchangedImpact stays within the database layer
ConfidentialityHighFull database read access
IntegrityHighFull database write/modify access
AvailabilityHighDatabase can be destroyed

CVSS v3.1 Base Score: 9.8 (Critical)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H


Remediation

Immediate Actions

Since no vendor patch has been published at time of disclosure, organizations running CASAP Automated Enrollment System 1.0 should take the following steps immediately:

  1. Remove internet exposure — Place the application behind a VPN or firewall; do not expose to the public internet
  2. Apply input validation — Add parameterized queries or prepared statements to update_class.php
  3. Deploy a WAF — A web application firewall with SQL injection rules can block exploitation attempts
  4. Audit database access logs — Review for signs of unauthorized data access or exfiltration
  5. Rotate credentials — Change all database and application passwords in case of prior compromise

Developer Fix

The root fix requires replacing direct SQL string concatenation with PDO prepared statements or MySQLi parameterized queries:

// VULNERABLE (do not use):
$sql = "UPDATE class SET class_name='" . $_POST['class_name'] . "' WHERE id=" . $_POST['id'];
 
// SECURE — use prepared statements:
$stmt = $pdo->prepare("UPDATE class SET class_name=:class_name WHERE id=:id");
$stmt->execute([':class_name' => $_POST['class_name'], ':id' => $_POST['id']]);

Detection

Organizations with logging in place can look for the following indicators of exploitation attempts:

IndicatorDescription
SQL keywords in POST bodyUNION, SELECT, DROP, INSERT, '-- in class_name
Unusual HTTP response sizesLarge responses may indicate data exfiltration
Database error messages in responsesMay indicate active probing
High-volume POST requests to update_class.phpAutomated exploitation scanning

Background: Sourcecodester Vulnerabilities

Sourcecodester is a PHP/MySQL project repository commonly used for educational and small-business systems. Vulnerabilities in Sourcecodester projects are frequently disclosed, as the codebase often lacks security review and relies on outdated patterns like direct SQL string construction. Security researchers regularly scan for and report these flaws through NVD/CVE channels.

CVE-2025-67403 follows a pattern of similar critical SQL injection disclosures in Sourcecodester systems. Organizations using any Sourcecodester-distributed software should audit their deployments for similar unsanitized input patterns.


Key Takeaways

  1. CVSS 9.8 Critical — Pre-authentication SQL injection with full database access
  2. No patch available — Mitigation requires manual code changes or network isolation
  3. Remove from public internet — CASAP enrollment systems should not be internet-facing without hardening
  4. Audit for compromise — Assume exploitation if the system has been publicly accessible
  5. Apply parameterized queries — The only lasting fix is code-level remediation

References

  • NVD — CVE-2025-67403

Related Reading

  • CVE-2025-67404: CASAP Student Registration SQL Injection
#CVE-2025-67403#SQL Injection#Sourcecodester#CASAP#Education Software#Web Application

Related Articles

CVE-2025-67404: Critical SQL Injection in CASAP Enrollment System save_stud.php

A critical-severity SQL injection vulnerability (CVSS 9.8) in Sourcecodester CASAP Automated Enrollment System 1.0 allows unauthenticated attackers to execute arbitrary SQL via the fname, lname, and student_class parameters in save_stud.php.

6 min read

CVE-2026-11334: SQL Injection in College Management System

A high-severity SQL injection vulnerability (CVSS 7.3) in CollegeManagementSystem allows attackers to manipulate the department_code parameter in…

4 min read

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

A high-severity SQL injection vulnerability in SourceCodester Class and Exam Timetabling System 1.0 allows remote attackers to manipulate backend database...

4 min read
Back to all Security Alerts