vendor:
GYM Management System
by:
Alperen Yozgat
6.1
CVSS
HIGH
Cross Site Scripting (XSS)
79
CWE
Product Name: GYM Management System
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE:
CPE: a:phpgurukul:gym_management_system:1.0
Platforms Tested: Kali Linux 6.1.27-1kali1 (2023-05-12) x86_64 + XAMPP 7.4.30
2023
Cross Site Scripting (Stored) in GYM Management System
The GYM Management System version 1.0 is vulnerable to stored cross-site scripting (XSS) due to insufficient validation of user-supplied data in the 'lname' field of the profile.php page. An attacker can inject a malicious payload, such as x%22%20onmouseover%3Dalert%28document.cookie%29%20x%3D%22, which will be executed whenever a user accesses the profile.php page, leading to the execution of arbitrary scripts in the context of the user's browser. This vulnerability has been detected by Alperen Yozgat.
Mitigation:
To mitigate this vulnerability, input validation and output encoding should be implemented to sanitize user-supplied data before rendering it on web pages. Additionally, developers should consider implementing Content Security Policy (CSP) headers to mitigate the impact of XSS attacks.