CVE-2024-5361

6.3 MEDIUM

📋 TL;DR

This critical vulnerability in PHPGurukul Zoo Management System 2.1 allows remote attackers to execute SQL injection attacks via the 'fromdate' parameter in the /admin/normal-bwdates-reports-details.php file. This can lead to unauthorized database access, data theft, or system compromise. Organizations using this specific version of the software are affected.

💻 Affected Systems

Products:
  • PHPGurukul Zoo Management System
Versions: Version 2.1
Operating Systems: Any OS running PHP (typically Linux/Windows)
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the administrative interface to be accessible. The vulnerability is in a specific PHP file used for report generation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data exfiltration, privilege escalation, or remote code execution on the underlying server.

🟠

Likely Case

Unauthorized access to sensitive zoo management data, including animal records, visitor information, financial data, and administrative credentials.

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable and affects an internet-facing administrative interface.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this to gain elevated privileges or access sensitive data.

🎯 Exploit Status

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

Exploit details are publicly available. Attack requires access to the admin interface but not necessarily authentication if other flaws exist.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None found

Restart Required: No

Instructions:

1. Check vendor website for updates. 2. If no patch available, implement workarounds immediately. 3. Consider replacing with alternative software if vendor is unresponsive.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation to sanitize the 'fromdate' parameter before processing.

Edit /admin/normal-bwdates-reports-details.php to add: $fromdate = mysqli_real_escape_string($conn, $_POST['fromdate']);

Web Application Firewall (WAF)

all

Deploy WAF rules to block SQL injection patterns targeting the vulnerable endpoint.

Add WAF rule: Block requests to /admin/normal-bwdates-reports-details.php with SQL injection patterns in parameters

🧯 If You Can't Patch

  • Restrict network access to the admin interface using firewall rules or IP whitelisting.
  • Disable the vulnerable file by renaming or removing /admin/normal-bwdates-reports-details.php if functionality can be sacrificed.

🔍 How to Verify

Check if Vulnerable:

Test the /admin/normal-bwdates-reports-details.php endpoint with SQL injection payloads in the 'fromdate' parameter and monitor for database errors.

Check Version:

Check the software version in the admin panel or readme files. For PHP: grep -r 'version' /path/to/zoo-management-system/

Verify Fix Applied:

After applying fixes, retest with SQL injection payloads to confirm they are blocked or sanitized.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts followed by access to the vulnerable endpoint
  • HTTP requests to /admin/normal-bwdates-reports-details.php with suspicious parameters

Network Indicators:

  • Unusual outbound database connections from the web server
  • Traffic patterns indicating automated exploitation attempts

SIEM Query:

source="web_logs" AND uri="/admin/normal-bwdates-reports-details.php" AND (param="fromdate" AND value MATCHES "[';]|UNION|SELECT")

🔗 References

📤 Share & Export