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 admin_product.php file, where the product_name parameter is not properly validated or encoded before being output to users. This flaw allows attackers to inject malicious scripts that are executed in the context of the user's browser, potentially leading to the theft of cookies, session tokens, or other sensitive information. The vulnerability can be exploited remotely without requiring 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 the theft of cookies or session tokens, unauthorized actions performed on behalf of the victim, defacement of web pages, redirection to malicious sites, or even control over the victim's browser.
To reproduce this vulnerability, navigate to the '/admin/admin_product.php' file of the Online Shoe Store project. Inject a script into the 'product_name' parameter. The injected script will be executed in the browser, demonstrating the cross-site scripting vulnerability.
It is recommended to implement proper output encoding for user inputs, validate and filter input data to reject malicious content, use a Content Security Policy to restrict script execution, 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.