code-projects Online Shoe Store
cpe:2.3:a:code-projects:online_shoe_store:*:*:*:*:*:*:*
- 1.0
A cross-site scripting (XSS) vulnerability has been identified in code-projects Online Shoe Store version 1.0. The issue resides in the Add Product Page, specifically within the admin/admin_feature.php file. The vulnerability is triggered by manipulating the product_name parameter, allowing attackers to inject malicious scripts that are executed in the context of the user's browser. This exploitation can be done remotely, without the need for authentication or user interaction.
Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the victim's browser. This could lead to theft of cookies, session tokens, or other sensitive information, as well as performing actions on behalf of the victim or redirecting them to malicious websites.
To reproduce this vulnerability, navigate to the admin/admin_feature.php page of the Online Shoe Store application. Inject a script into the product_name parameter. The injected script will be executed in the browser, demonstrating the cross-site scripting vulnerability.
To address this vulnerability, implement proper input validation and output encoding for the product_name parameter. Ensure that user inputs are sanitized before being displayed on the webpage. Additionally, consider using a Content Security Policy to restrict the execution of scripts.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.