CVE-2024-50835

7.2 HIGH

📋 TL;DR

This SQL injection vulnerability in the KASHIPARA E-learning Management System allows attackers to manipulate database queries through the edit_student.php admin interface. Attackers could potentially read, modify, or delete sensitive student data stored in the database. Organizations using version 1.0 of this software are affected.

💻 Affected Systems

Products:
  • KASHIPARA E-learning Management System
Versions: 1.0
Operating Systems: All platforms running PHP/MySQL web servers
Default Config Vulnerable: ⚠️ Yes
Notes: Requires admin access to reach /admin/edit_student.php endpoint. Vulnerable parameters: cys, un, ln, fn, id.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, or system takeover via privilege escalation.

🟠

Likely Case

Unauthorized access to student records, personal information exposure, and potential data integrity issues.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-sensitive data.

🌐 Internet-Facing: HIGH - The vulnerable endpoint is accessible via web interface and requires only admin access which could be compromised.
🏢 Internal Only: MEDIUM - Requires access to admin interface but could be exploited by malicious insiders or through credential theft.

🎯 Exploit Status

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

Exploitation requires admin credentials but SQL injection is straightforward once authenticated. Public proof-of-concept exists in GitHub repository.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch available. Implement parameterized queries and input validation in edit_student.php. Sanitize cys, un, ln, fn, and id parameters.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting the vulnerable parameters

Input Validation Filter

all

Add server-side validation to restrict parameter values to expected formats

🧯 If You Can't Patch

  • Restrict access to /admin/edit_student.php using IP whitelisting or additional authentication
  • Implement database-level controls: use least privilege accounts, enable query logging, and regular backups

🔍 How to Verify

Check if Vulnerable:

Test edit_student.php with SQL injection payloads in cys, un, ln, fn, or id parameters while authenticated as admin

Check Version:

Check system documentation or source code for version information

Verify Fix Applied:

Attempt SQL injection tests after implementing parameterized queries and verify no database errors or unexpected behavior

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries from edit_student.php
  • SQL syntax errors in web server logs
  • Multiple failed parameter validation attempts

Network Indicators:

  • HTTP POST requests to /admin/edit_student.php with SQL keywords in parameters
  • Unusual database connection patterns from web server

SIEM Query:

source="web_server" AND uri="/admin/edit_student.php" AND (param="cys" OR param="un" OR param="ln" OR param="fn" OR param="id") AND (value="UNION" OR value="SELECT" OR value="OR 1=1" OR value="--" OR value=";")

🔗 References

📤 Share & Export