CVE-2024-54925

9.8 CRITICAL

📋 TL;DR

A SQL injection vulnerability in kashipara E-learning Management System v1.0 allows remote attackers to execute arbitrary SQL commands via the id parameter in /remove_sent_message.php. This enables unauthorized database access, potentially exposing sensitive student and administrative data. All users running the vulnerable version are affected.

💻 Affected Systems

Products:
  • kashipara E-learning Management System
Versions: v1.0
Operating Systems: Any OS running PHP with database backend
Default Config Vulnerable: ⚠️ Yes
Notes: Requires PHP environment with database connectivity (likely MySQL/MariaDB).

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data manipulation, authentication bypass, and potential remote code execution via database functions.

🟠

Likely Case

Unauthorized access to sensitive student records, grades, personal information, and administrative credentials stored in the database.

🟢

If Mitigated

Limited information disclosure if database permissions are properly restricted and input validation is implemented elsewhere.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

The GitHub reference contains detailed exploitation writeup. SQL injection via GET/POST parameter manipulation is straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch available. Implement parameterized queries or input validation in /remove_sent_message.php.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting /remove_sent_message.php

Input Validation Filter

all

Add PHP input validation to sanitize the id parameter before database queries

// In remove_sent_message.php, add: $id = intval($_GET['id']); // or mysqli_real_escape_string()

🧯 If You Can't Patch

  • Restrict network access to the application using firewall rules
  • Implement database user with minimal required permissions (read-only if possible)

🔍 How to Verify

Check if Vulnerable:

Test /remove_sent_message.php?id=1' OR '1'='1 and observe database errors or unexpected behavior

Check Version:

Check application version in admin panel or source code comments

Verify Fix Applied:

Verify parameterized queries are implemented and test with SQL injection payloads

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries from web server
  • SQL syntax errors in application logs
  • Multiple requests to /remove_sent_message.php with suspicious parameters

Network Indicators:

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

SIEM Query:

web.url:*remove_sent_message.php* AND (web.param:*'* OR web.param:*SELECT* OR web.param:*UNION*)

🔗 References

📤 Share & Export