PHPGurukul Restaurant Table Booking System Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in PHPGurukul Restaurant Table Booking System version 1.0. The issue resides in the admin/add-table.php file, where the tableno parameter is not properly sanitized, allowing attackers to inject malicious JavaScript that executes in the context of the user’s browser. This vulnerability could be exploited to steal cookies, session information, and perform actions on behalf of the user.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the user.

Reproduction

To reproduce this vulnerability, send a POST request to the /rtbs/admin/add-table.php endpoint with a payload in the tableno parameter that includes JavaScript, such as a script tag. This can be done using a tool like Burp Suite or through a simple HTML form that targets the vulnerable page.

Remediation

No specific remediation is known for this vulnerability.

Added: Jun 10, 2025, 7:26 PM
Updated: Jun 10, 2025, 7:26 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
3.5
exploitability
6.5
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.