CVE-2025-13057

6.3 MEDIUM

📋 TL;DR

Campcodes School Fees Payment Management System 1.0 contains a SQL injection vulnerability in the /ajax.php?action=save_student endpoint via the ID parameter. This allows remote attackers to execute arbitrary SQL commands on the database. All users running version 1.0 are affected.

💻 Affected Systems

Products:
  • Campcodes School Fees Payment Management System
Versions: 1.0
Operating Systems: Any OS running PHP/MySQL
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all installations of version 1.0 regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized access to student and payment data, including personally identifiable information and financial records.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to specific tables.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and the exploit is publicly available.
🏢 Internal Only: MEDIUM - Internal attackers could still exploit this, but external threat is higher.

🎯 Exploit Status

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

Simple SQL injection via ID parameter with public exploit details available.

🛠️ 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 as workaround.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation to ensure ID parameter contains only numeric values.

// PHP example: if(!is_numeric($_GET['ID'])) { die('Invalid input'); }

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting the /ajax.php endpoint.

# ModSecurity example: SecRule ARGS:ID "@rx (\'|\"|;|--|union|select)" "deny,status:403"

🧯 If You Can't Patch

  • Isolate the system from internet access and restrict to internal network only.
  • Implement strict network segmentation and monitor all database queries from the application.

🔍 How to Verify

Check if Vulnerable:

Test /ajax.php?action=save_student with SQL injection payloads like ID=1' OR '1'='1

Check Version:

Check application version in admin panel or readme files.

Verify Fix Applied:

Verify that SQL injection payloads no longer work and return error or sanitized response.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple requests to /ajax.php with special characters in ID parameter

Network Indicators:

  • HTTP requests containing SQL keywords (UNION, SELECT, etc.) in URL parameters

SIEM Query:

source="web_logs" AND url="/ajax.php" AND (url_query="*'*" OR url_query="*UNION*" OR url_query="*SELECT*")

🔗 References

📤 Share & Export