PHPGurukul Directory Management System Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in PHPGurukul Directory Management System version 2.0. The issue resides in the file '/searchdata.php', where the 'searchdata' parameter is not properly sanitized. This vulnerability allows the injection of JavaScript payloads, which can be executed when the crafted POST requests are submitted. Although exploitation requires user interaction, it can be facilitated through phishing techniques, making it a critical concern.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the user's browser. This could lead to session hijacking, cross-site request forgery (CSRF) attacks, and a complete compromise of the client's side.

Reproduction

To reproduce this vulnerability, an attacker can create a form that automatically submits a JavaScript payload via the 'searchdata' parameter to the vulnerable '/searchdata.php' endpoint. This can be done by hosting the form on a phishing page or using JavaScript to simulate the form submission, taking advantage of the lack of input sanitization on the server side.

Remediation

Users are advised to update to a version of PHPGurukul Directory Management System that addresses this vulnerability. For developers, implementing proper input sanitization and validation in the 'searchdata' parameter before reflecting it in the HTML response is crucial. Additionally, integrating CSRF tokens can help mitigate the risk of exploitation.

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

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
1.7
exploitability
7.7
remediation
0.0
relevance
0.0
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.