So I installed K2 and got everything running and looking just the way I wanted and then this morning I get a security risk from my site scanner saying that K2 has a Web Application Cross Site Scripting vulnerability. How can I get this corrected?Here is some Info from the Scanner:DescriptionThe remote web application appears to be vulnerable to cross-site scripting (XSS).The cross-site scripting attack is one of the most common, yet overlooked, security problems facing web developers today. A web site is vulnerable if it displays user-submitted content without sanitizing user input.The target of cross-site scripting attacks is not the server itself, but the users of the server. By finding a page that does not properly sanitize user input the attacker submits client-side code to the server that will then be rendered by the client. It is important to note that websites that use SSL are just as vulnerable as websites that do not encrypt browser sessions.The damage caused by such an attack can range from stealing session and cookie data from your customers to loading a virus payload onto their computer via browser.To identify what parts of your application are susceptible to cross-site scripting, click on "Detail" under the "Found On" section.General SolutionWhen accepting user input ensure that you are HTML encoding potentially malicious characters if you ever display the data back to the client.Ensure that parameters and user input are sanitized by doing the following:# Remove < input and replace with &lt;# Remove > input and replace with &gt;# Remove ' input and replace with &apos;# Remove " input and replace with &#x22;# Remove ) input and replace with &#x29;# Remove ( input and replace with &#x28;
16 years 6 months ago #82851