CVE-2024-0306

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Kashipara Dynamic Lab Management System allows remote attackers to execute arbitrary SQL commands via the admin_password parameter in the login process. Attackers can potentially bypass authentication, access sensitive data, or take control of the database. All users of affected versions are at risk.

💻 Affected Systems

Products:
  • Kashipara Dynamic Lab Management System
Versions: Up to and including version 1.0
Operating Systems: Any OS running PHP and MySQL/MariaDB
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the admin login endpoint specifically; requires PHP environment with database backend.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, authentication bypass, privilege escalation, and potential remote code execution on the underlying server.

🟠

Likely Case

Authentication bypass allowing unauthorized admin access, data exfiltration from the database, and potential system takeover.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only error messages or failed login attempts.

🌐 Internet-Facing: HIGH - The vulnerable endpoint is accessible remotely and requires no authentication, making internet-facing instances extremely vulnerable.
🏢 Internal Only: HIGH - Even internal systems are vulnerable to insider threats or compromised internal accounts.

🎯 Exploit Status

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

Exploit details are publicly available in GitHub repositories; SQL injection via admin_password parameter requires no authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None known

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available, or implement workarounds.

🔧 Temporary Workarounds

Input Validation and Parameterized Queries

all

Modify /admin/admin_login_process.php to use prepared statements with parameterized queries instead of direct string concatenation.

Replace vulnerable SQL queries with PDO or mysqli prepared statements

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection rules to block malicious payloads targeting the admin login endpoint.

Configure WAF rules to block SQL injection patterns at /admin/admin_login_process.php

🧯 If You Can't Patch

  • Isolate the system from internet access and restrict internal network access
  • Implement strict network segmentation and monitor all traffic to the vulnerable endpoint

🔍 How to Verify

Check if Vulnerable:

Test the /admin/admin_login_process.php endpoint with SQL injection payloads in the admin_password parameter and observe database errors or unexpected behavior.

Check Version:

Check the system's version in its configuration files or admin panel; look for version 1.0 or earlier.

Verify Fix Applied:

After implementing parameterized queries, test with SQL injection payloads to confirm they are properly sanitized and no longer execute.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL syntax in admin login attempts
  • Multiple failed login attempts with SQL payloads
  • Database error logs showing SQL injection attempts

Network Indicators:

  • HTTP POST requests to /admin/admin_login_process.php containing SQL keywords like UNION, SELECT, OR 1=1

SIEM Query:

source="web_logs" AND uri="/admin/admin_login_process.php" AND (body CONTAINS "UNION" OR body CONTAINS "SELECT" OR body CONTAINS "OR 1=1")

🔗 References

📤 Share & Export