CVE-2025-11089

7.3 HIGH

📋 TL;DR

This CVE describes a SQL injection vulnerability in kidaze CourseSelectionSystem that allows remote attackers to execute arbitrary SQL commands via manipulation of the 'cbranch' parameter in the /Profilers/PriProfile/COUNT3s4.php file. The vulnerability affects all versions up to commit 42cd892b40a18d50bd4ed1905fa89f939173a464. Organizations using this software are at risk of data theft, modification, or system compromise.

💻 Affected Systems

Products:
  • kidaze CourseSelectionSystem
Versions: All versions up to commit 42cd892b40a18d50bd4ed1905fa89f939173a464
Operating Systems: Any OS running the application
Default Config Vulnerable: ⚠️ Yes
Notes: This product uses rolling releases, making specific version tracking difficult. All instances using the vulnerable code are affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise allowing data exfiltration, modification, or deletion, potentially leading to full system takeover if database privileges permit.

🟠

Likely Case

Unauthorized access to sensitive student/course data, potential privilege escalation, and data manipulation.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and network segmentation in place.

🌐 Internet-Facing: HIGH - The vulnerability can be exploited remotely and the exploit has been publicly disclosed.
🏢 Internal Only: MEDIUM - Still significant risk from internal threats or compromised internal systems.

🎯 Exploit Status

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

The exploit has been publicly disclosed and the vulnerability is straightforward SQL injection with remote execution capability.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown - product uses rolling releases

Vendor Advisory: None provided in CVE details

Restart Required: No

Instructions:

1. Update to latest version after commit 42cd892b40a18d50bd4ed1905fa89f939173a464
2. Verify the fix implements proper input validation and parameterized queries
3. Test the COUNT3s4.php endpoint with SQL injection payloads

🔧 Temporary Workarounds

Web Application Firewall (WAF) Rules

all

Implement WAF rules to block SQL injection patterns targeting the cbranch parameter

# Example ModSecurity rule:
SecRule ARGS:cbranch "@detectSQLi" "id:1001,phase:2,deny,status:403,msg:'SQLi attempt detected'"
# Example naxsi rule:
MainRule "str:cbranch" "msg:SQLi attempt" "mz:ARGS" "s:$SQL:4" id:1001;

Input Validation Filter

all

Add input validation to sanitize the cbranch parameter before processing

# PHP example:
$cbranch = filter_var($_GET['cbranch'], FILTER_SANITIZE_STRING);
$cbranch = mysqli_real_escape_string($connection, $cbranch);
# Better: Use prepared statements:
$stmt = $conn->prepare("SELECT * FROM table WHERE branch = ?");
$stmt->bind_param("s", $cbranch);

🧯 If You Can't Patch

  • Implement network segmentation to restrict access to the vulnerable endpoint
  • Deploy a web application firewall with SQL injection detection rules

🔍 How to Verify

Check if Vulnerable:

Test the /Profilers/PriProfile/COUNT3s4.php endpoint with SQL injection payloads in the cbranch parameter (e.g., cbranch=' OR '1'='1)

Check Version:

Check git commit hash: git log --oneline -1

Verify Fix Applied:

Verify that SQL injection payloads no longer work and that the application uses parameterized queries or proper input validation

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed parameter validation attempts
  • Requests to COUNT3s4.php with suspicious cbranch values

Network Indicators:

  • HTTP requests with SQL keywords in cbranch parameter
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/Profilers/PriProfile/COUNT3s4.php" AND (query="*OR*" OR query="*UNION*" OR query="*SELECT*" OR query="*INSERT*" OR query="*DELETE*")

🔗 References

📤 Share & Export