Stored_XSS issue exists @ WebSite/BusinessLogic/Data/CustomerRepository.cs in branch master
Method GetCustomerByCustomerId at line 21 of WebSite\BusinessLogic\Data\CustomerRepository.cs gets data from the database, for the FirstOrDefault element. This element’s value then flows through the code without being properly filtered or encoded and is eventually displayed to the user in method Page_Load at line 12 of WebSite\Checkout\Receipt.aspx.cs. This may enable a Stored Cross-Site-Scripting attack.
Severity: High
CWE:79
Vulnerability details and guidance
Lines: 23
Code (Line #23):
return _context.Customers.FirstOrDefault(c => c.CustomerId == CustomerId);