vendor:
Hostel Management System
by:
Kokn3t
5.4
CVSS
MEDIUM
Cross-Site Scripting (XSS)
79
CWE
Product Name: Hostel Management System
Affected Version From: 2.1
Affected Version To: 2.1
Patch Exists: YES
Related CWE: CVE-2020-25270
CPE: 2.3:a:phpgurukul:hostel_management_system:2.1
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Windows 10, Kali 2020.1
2020
PHPGurukul hostel-management-system 2.1 allows XSS via Guardian Name, Guardian Relation, Guardian Contact no, Address, City
PHPGurukul hostel-management-system 2.1 is vulnerable to Cross-Site Scripting (XSS) attacks via the Guardian Name, Guardian Relation, Guardian Contact no, Address, and City fields. An attacker can inject malicious JavaScript code into these fields when booking a hostel, which will be triggered when the admin views the student's record. This can be used to steal user data or perform other malicious activities.
Mitigation:
Input validation should be used to prevent malicious code from being injected into the fields. Additionally, the application should be configured to use a Content Security Policy (CSP) to prevent malicious code from being executed.