PHPGurukul Rail Pass Management System Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in PHPGurukul Rail Pass Management System version 1.0. The issue resides in the file '/rpms/download-pass.php', where the 'searchdata' parameter is not properly sanitized, allowing attackers to inject malicious JavaScript. This vulnerability can be exploited remotely, without any authentication, by manipulating the 'searchdata' parameter to execute arbitrary JavaScript in the context of the user's browser.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the user, potentially leading to session hijacking, cookie theft, and unauthorized actions on behalf of the user.

Reproduction

To reproduce this vulnerability, send a POST request to '/rpms/download-pass.php' with a payload in the 'searchdata' parameter that includes JavaScript, such as a script tag. The injected script will execute in the browser of anyone who views the page.

Remediation

It is recommended to implement proper input validation and output encoding, particularly for user-generated content. Additionally, consider using a Content Security Policy to mitigate the effects of XSS vulnerabilities.

Added: Jun 10, 2025, 8:45 PM
Updated: Jun 10, 2025, 8:45 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
3.5
exploitability
7.7
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.