CVE-2025-1952

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in PHPGurukul Restaurant Table Booking System 1.0 allows remote attackers to execute arbitrary SQL commands via the username/mobileno parameter in the password recovery function. Attackers can potentially access, modify, or delete database content. All installations of version 1.0 are affected.

💻 Affected Systems

Products:
  • PHPGurukul Restaurant Table Booking System
Versions: 1.0
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Affects the admin password recovery functionality specifically

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, authentication bypass, remote code execution, or system takeover

🟠

Likely Case

Database information disclosure, credential theft, and potential privilege escalation

🟢

If Mitigated

Limited impact with proper input validation and database permissions 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 and the vulnerability is remotely exploitable without authentication

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://phpgurukul.com/

Restart Required: No

Instructions:

No official patch available. Consider implementing input validation and parameterized queries as workaround.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and sanitization for username/mobileno parameters

Modify /admin/password-recovery.php to validate and sanitize all user inputs

Parameterized Queries

all

Replace dynamic SQL queries with parameterized/prepared statements

Rewrite SQL queries in the affected file to use prepared statements

🧯 If You Can't Patch

  • Block external access to /admin/password-recovery.php via web application firewall or network controls
  • Implement strict database user permissions with least privilege principle

🔍 How to Verify

Check if Vulnerable:

Check if /admin/password-recovery.php exists and contains unsanitized user input in SQL queries

Check Version:

Check system documentation or configuration files for version information

Verify Fix Applied:

Test the password recovery function with SQL injection payloads to ensure they're blocked

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed password recovery attempts
  • SQL error messages in web server logs

Network Indicators:

  • HTTP POST requests to /admin/password-recovery.php with SQL injection payloads

SIEM Query:

source="web_server" AND uri="/admin/password-recovery.php" AND (payload="' OR " OR payload="--" OR payload="UNION")

🔗 References

📤 Share & Export