CVE-2025-10687

7.3 HIGH

📋 TL;DR

This SQL injection vulnerability in SourceCodester Responsive E-Learning System 1.0 allows attackers to manipulate database queries through the Username parameter in /admin/add_teacher.php. Remote attackers can potentially access, modify, or delete sensitive data in the database. Organizations using this specific version of the e-learning system are affected.

💻 Affected Systems

Products:
  • SourceCodester Responsive E-Learning System
Versions: 1.0
Operating Systems: Any
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the admin interface at /admin/add_teacher.php specifically

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, account takeover, system compromise, or complete system destruction

🟠

Likely Case

Unauthorized data access, credential theft, and potential privilege escalation

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires admin access to reach /admin/add_teacher.php endpoint

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement proper input validation and parameterized queries in add_teacher.php

Modify /admin/add_teacher.php to use prepared statements with parameterized queries

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns

Configure WAF to block SQL injection patterns targeting /admin/add_teacher.php

🧯 If You Can't Patch

  • Restrict access to /admin/add_teacher.php using IP whitelisting or authentication requirements
  • Implement database user with minimal privileges for the application

🔍 How to Verify

Check if Vulnerable:

Test the Username parameter in /admin/add_teacher.php with SQL injection payloads

Check Version:

Check system version in admin panel or configuration files

Verify Fix Applied:

Test with SQL injection payloads after implementing parameterized queries

📡 Detection & Monitoring

Log Indicators:

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

Network Indicators:

  • HTTP POST requests to /admin/add_teacher.php with SQL payloads
  • Unusual database traffic patterns

SIEM Query:

source="web_server" AND uri="/admin/add_teacher.php" AND (payload="' OR " OR payload="UNION" OR payload="SELECT" OR payload="INSERT")

🔗 References

📤 Share & Export