CVE-2025-45019

5.4 MEDIUM

📋 TL;DR

A SQL injection vulnerability in PHPGurukul Park Ticketing Management System v2.0 allows remote attackers to execute arbitrary SQL commands via the cprice parameter in the /add-foreigners-ticket.php endpoint. This can lead to unauthorized data access, modification, or deletion. Organizations using this specific version of the ticketing system are affected.

💻 Affected Systems

Products:
  • PHPGurukul Park Ticketing Management System
Versions: v2.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Affects systems with the vulnerable file accessible via web interface. Requires PHP environment with database connectivity.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, or full system takeover via SQL injection leading to remote code execution.

🟠

Likely Case

Unauthorized access to sensitive customer data, ticket information, or financial records stored in the database.

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Public proof-of-concept available on GitHub. Exploitation requires sending crafted POST requests to the vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Not available

Restart Required: No

Instructions:

1. Check vendor website for updated version
2. If patch available, download and replace affected files
3. Test functionality after update
4. No official patch currently available

🔧 Temporary Workarounds

Input Validation Filter

all

Add server-side validation to sanitize cprice parameter before processing

// PHP code to validate numeric input
if (!is_numeric($_POST['cprice'])) {
    die('Invalid price value');
}
$price = (float)$_POST['cprice'];

Web Application Firewall Rule

all

Block SQL injection patterns in POST requests to /add-foreigners-ticket.php

WAF rule to detect SQL injection patterns in cprice parameter

🧯 If You Can't Patch

  • Block external access to /add-foreigners-ticket.php using firewall rules
  • Implement strict database user permissions with least privilege access

🔍 How to Verify

Check if Vulnerable:

Test by sending SQL injection payload in cprice parameter to /add-foreigners-ticket.php endpoint

Check Version:

Check system documentation or about page for version information

Verify Fix Applied:

Attempt SQL injection after implementing fixes - should receive error or no database impact

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple failed login attempts following SQL injection patterns
  • Unexpected database queries from web server

Network Indicators:

  • POST requests to /add-foreigners-ticket.php with SQL keywords in parameters
  • Unusual database traffic patterns from web server

SIEM Query:

source="web_logs" AND uri="/add-foreigners-ticket.php" AND (cprice CONTAINS "UNION" OR cprice CONTAINS "SELECT" OR cprice CONTAINS "OR 1=1")

🔗 References

📤 Share & Export