vendor:
Company's Recruitment Management System
by:
Aniket Anil Deshmane
8.8
CVSS
HIGH
Stored Cross-Site Scripting (XSS)
79
CWE
Product Name: Company's Recruitment Management System
Affected Version From: 1
Affected Version To: 1
Patch Exists: NO
Related CWE:
CPE: a:sourcecodester:company's_recruitment_management_system:1.0
Platforms Tested: Windows 10, XAMPP
2021
Company’s Recruitment Management System 1.0 – ‘description’ Stored Cross-Site Scripting (XSS)
A stored cross-site scripting (XSS) vulnerability exists in Company's Recruitment Management System 1.0, which allows an attacker to inject malicious JavaScript code into the 'description' field of the 'Vacancies' tab. An attacker can exploit this vulnerability by logging in with a staff account, navigating to the 'Vacancies' tab, clicking on 'Add New Vacancy', entering any random information in the other fields, and then entering a malicious JavaScript payload in the 'Description' field. When a user views the details of the vacancy, the malicious JavaScript code will be executed in the user's browser.
Mitigation:
Input validation should be used to prevent malicious code from being injected into the 'description' field. Additionally, the application should be configured to only allow trusted users to access the 'Vacancies' tab.