CVE-2025-25357

7.2 HIGH

📋 TL;DR

A SQL injection vulnerability in PHPGurukul Land Record System v1.0 allows remote attackers to execute arbitrary SQL commands via the email parameter in the /admin/contactus.php endpoint. This could lead to unauthorized data access, modification, or deletion. Organizations using this specific version of the software are affected.

💻 Affected Systems

Products:
  • PHPGurukul Land Record System
Versions: v1.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default installation with no special configuration required.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or remote code execution on the database server.

🟠

Likely Case

Unauthorized access to sensitive land record data, potential data manipulation, and privilege escalation.

🟢

If Mitigated

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

🌐 Internet-Facing: HIGH - The vulnerable endpoint is accessible remotely without authentication.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this to gain unauthorized access to sensitive data.

🎯 Exploit Status

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

Exploitation requires sending crafted POST requests to the vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch exists. Implement input validation and parameterized queries in /admin/contactus.php.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add server-side validation to sanitize email parameter input before processing.

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection rules to block malicious requests.

🧯 If You Can't Patch

  • Restrict access to /admin/contactus.php endpoint using network ACLs or authentication.
  • Monitor logs for unusual SQL queries or error messages related to database operations.

🔍 How to Verify

Check if Vulnerable:

Test the /admin/contactus.php endpoint with SQL injection payloads in the email parameter (e.g., ' OR '1'='1).

Check Version:

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

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return appropriate error messages or are blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in application logs
  • Multiple failed login attempts or SQL queries from single IPs

Network Indicators:

  • HTTP POST requests to /admin/contactus.php with SQL keywords in parameters

SIEM Query:

source="web_logs" AND uri="/admin/contactus.php" AND (method="POST") AND (param="email" AND value MATCHES "(?i)(union|select|insert|update|delete|drop|or|and)")

🔗 References

📤 Share & Export