CVE-2025-10483

6.3 MEDIUM

📋 TL;DR

This SQL injection vulnerability in SourceCodester Online Student File Management System 1.0 allows attackers to manipulate database queries through the firstname parameter in /admin/save_user.php. Remote attackers can potentially access, modify, or delete sensitive student data. All deployments of version 1.0 are affected.

💻 Affected Systems

Products:
  • SourceCodester Online Student File Management System
Versions: 1.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires PHP environment with database backend; vulnerable in all default installations

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover via SQL injection to RCE chaining

🟠

Likely Case

Unauthorized access to sensitive student records, grade manipulation, or administrative credential theft

🟢

If Mitigated

Limited data exposure if proper input validation and WAF rules are in place

🌐 Internet-Facing: HIGH - Remote exploitation possible without authentication
🏢 Internal Only: MEDIUM - Still exploitable by internal threats or compromised accounts

🎯 Exploit Status

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

Exploit published on GitHub; requires admin access to reach /admin/save_user.php endpoint

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

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

Restart Required: No

Instructions:

No official patch available. Consider replacing with alternative software or implementing custom fixes.

🔧 Temporary Workarounds

Input Validation Filter

PHP

Add parameter validation to filter SQL injection attempts

Modify /admin/save_user.php to add: $firstname = mysqli_real_escape_string($conn, $_POST['firstname']);

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: SecRule ARGS:firstname "@detectSQLi" "id:1001,phase:2,deny,status:403"

🧯 If You Can't Patch

  • Network segmentation: Isolate the system from internet access
  • Implement strict access controls: Limit admin panel access to specific IPs only

🔍 How to Verify

Check if Vulnerable:

Test /admin/save_user.php with SQL injection payloads in firstname parameter

Check Version:

Check PHP files for version comments or review installation documentation

Verify Fix Applied:

Attempt SQL injection after implementing fixes; verify no database errors or unexpected behavior

📡 Detection & Monitoring

Log Indicators:

  • SQL syntax errors in PHP logs
  • Unusual database queries from admin interface
  • Multiple failed login attempts to admin panel

Network Indicators:

  • HTTP POST requests to /admin/save_user.php with SQL keywords in parameters
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND uri_path="/admin/save_user.php" AND (firstname CONTAINS "UNION" OR firstname CONTAINS "SELECT" OR firstname CONTAINS "--")

🔗 References

📤 Share & Export