CVE-2025-3238

7.3 HIGH

📋 TL;DR

A critical SQL injection vulnerability exists in PHPGurukul Online Fire Reporting System 1.2, specifically in the /search-request.php file's searchdata parameter. This allows remote attackers to execute arbitrary SQL commands on the database. Organizations using this specific version of the fire reporting system are affected.

💻 Affected Systems

Products:
  • PHPGurukul Online Fire Reporting System
Versions: 1.2
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects version 1.2 of this specific software. The vulnerability is in the default installation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data manipulation, and potential remote code execution if database permissions allow.

🟠

Likely Case

Unauthorized data access and extraction of sensitive fire reporting information, potentially including personally identifiable information.

🟢

If Mitigated

Limited impact with proper input validation and database permission restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub, making this easily exploitable by attackers with basic SQL injection knowledge.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://phpgurukul.com/

Restart Required: No

Instructions:

No official patch available. Contact vendor for updated version or apply workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement proper input validation and parameterized queries for the searchdata parameter in search-request.php

Modify PHP code to use prepared statements: $stmt = $conn->prepare('SELECT * FROM table WHERE column = ?'); $stmt->bind_param('s', $searchdata);

Web Application Firewall (WAF) Rules

all

Deploy WAF rules to block SQL injection patterns targeting the searchdata parameter

Add WAF rule: Block requests containing SQL keywords (UNION, SELECT, INSERT, etc.) in searchdata parameter

🧯 If You Can't Patch

  • Isolate the system from internet access and restrict to internal network only
  • Implement strict network segmentation and monitor all database queries from the application

🔍 How to Verify

Check if Vulnerable:

Test the /search-request.php endpoint with SQL injection payloads in the searchdata parameter

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return error messages

📡 Detection & Monitoring

Log Indicators:

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

Network Indicators:

  • HTTP requests to /search-request.php containing SQL keywords in parameters
  • Unusual database connection patterns from application server

SIEM Query:

source=web_logs AND uri_path="/search-request.php" AND (param="searchdata" AND value MATCH "UNION|SELECT|INSERT|DELETE|--")

🔗 References

📤 Share & Export