PHPGurukul Restaurant Table Booking System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in the PHPGurukul Restaurant Table Booking System version 1.0. The issue resides in the file '/admin/check_availability.php', where the 'username' parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, leading to unauthorized database access, data manipulation, and potential system control.

Impact

Exploitation of this vulnerability allows for SQL injection, with possible consequences including unauthorized database access, data leakage, data manipulation, and disruption of service.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/admin/check_availability.php' with a crafted 'username' parameter that includes malicious SQL payloads. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

To address this vulnerability, it is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM