SourceCodester Pharmacy Sales and Inventory System
cpe:2.3:a:pharmacy_sales_and_inventory_system_project:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*
- 1.0
A cross-site scripting (XSS) vulnerability has been identified in SourceCodester Pharmacy Sales and Inventory System version 1.0. The issue arises in the file '/index.php?page=users', where the 'name' parameter is not properly validated or encoded before being output to the web page. This flaw allows attackers to inject malicious scripts that could be executed in the context of the user's browser, potentially leading to the theft of cookies, session tokens, or other sensitive information.
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 the theft of cookies or session tokens, defacement of web pages, redirection to malicious sites, or unauthorized actions performed on behalf of the user.
To reproduce this vulnerability, navigate to the '/index.php?page=users' file in the Pharmacy Sales and Inventory System. Inject a script into the 'name' parameter, which will be executed in the browser.
To address this vulnerability, implement proper output encoding for user inputs, validate and filter input data to reject malicious content, use a Content Security Policy to restrict script sources, set secure and HttpOnly flags for sensitive cookies, and conduct regular security audits.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.