CVE-2025-7162

6.3 MEDIUM

📋 TL;DR

This critical SQL injection vulnerability in PHPGurukul Zoo Management System 2.1 allows remote attackers to execute arbitrary SQL commands via the 'cprice' parameter in the /admin/add-foreigners-ticket.php file. Attackers can potentially access, modify, or delete database content. Organizations using this specific version of the software are affected.

💻 Affected Systems

Products:
  • PHPGurukul Zoo Management System
Versions: 2.1
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires access to the admin interface path /admin/add-foreigners-ticket.php

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover through SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized database access allowing data exfiltration, privilege escalation, or application disruption.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database permissions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit requires authentication to admin interface; SQL injection is straightforward once authenticated.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://phpgurukul.com/

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Input Validation and Sanitization

all

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

Modify /admin/add-foreigners-ticket.php to validate numeric input for cprice parameter

Web Application Firewall (WAF) Rules

all

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

Add WAF rule: Block requests to /admin/add-foreigners-ticket.php with SQL injection patterns in parameters

🧯 If You Can't Patch

  • Restrict network access to the admin interface using firewall rules or network segmentation.
  • Implement strong authentication controls and monitor for unusual admin account activity.

🔍 How to Verify

Check if Vulnerable:

Test the /admin/add-foreigners-ticket.php endpoint with SQL injection payloads in the cprice parameter.

Check Version:

Check the software version in the application interface or configuration files.

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that input validation is properly implemented.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin interface
  • Requests to /admin/add-foreigners-ticket.php with suspicious parameters

Network Indicators:

  • SQL error messages in HTTP responses
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/admin/add-foreigners-ticket.php" AND (param="cprice" AND value MATCH "[';]|UNION|SELECT")

🔗 References

📤 Share & Export