CVE-2025-5626

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability in Campcodes Online Teacher Record Management System 1.0 allows remote attackers to execute arbitrary SQL commands via the editid parameter in /admin/edit-subjects-detail.php. This can lead to unauthorized data access, modification, or deletion. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • Campcodes Online Teacher Record Management System
Versions: 1.0
Operating Systems: All platforms running the web application
Default Config Vulnerable: ⚠️ Yes
Notes: Requires access to the admin interface at /admin/edit-subjects-detail.php

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, and potential remote code execution if database functions allow it.

🟠

Likely Case

Unauthorized access to sensitive teacher/student records, grade manipulation, and potential privilege escalation.

🟢

If Mitigated

Limited impact if proper input validation and WAF rules are in place, though SQL injection attempts may still be logged.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects an internet-facing administrative interface.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this to escalate privileges or access sensitive data.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploit details are publicly available on GitHub. Attack requires access to admin interface but SQL injection is straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://www.campcodes.com/

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries in the affected PHP file.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add input validation to sanitize the editid parameter before processing SQL queries

Edit /admin/edit-subjects-detail.php to implement parameterized queries or proper escaping

Web Application Firewall Rules

all

Implement WAF rules to block SQL injection patterns targeting editid parameter

Add WAF rule: Detect and block SQL injection patterns in editid parameter

🧯 If You Can't Patch

  • Restrict access to /admin/ directory to trusted IP addresses only
  • Implement database user with minimal privileges for the application

🔍 How to Verify

Check if Vulnerable:

Test if SQL injection is possible by sending crafted editid parameter to /admin/edit-subjects-detail.php

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Test that SQL injection attempts no longer succeed and return proper error handling

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin interface
  • Requests to /admin/edit-subjects-detail.php with suspicious editid values

Network Indicators:

  • HTTP POST requests to edit-subjects-detail.php containing SQL keywords in parameters

SIEM Query:

source="web_logs" AND uri="/admin/edit-subjects-detail.php" AND (param="editid" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|--|#|;)")

🔗 References

📤 Share & Export