+Directly evaluating user input (for example, an HTTP request parameter) as code without properly +sanitizing the input first allows an attacker arbitrary code execution. This can occur when user +input is treated as JavaScript, or passed to a framework which interprets it as an expression to be +evaluated. Examples include AngularJS expressions or JQuery selectors. +
++Avoid including user input in any expression which may be dynamically evaluated. If user input must +be included, use context-specific escaping before +including it. It is important that the correct escaping is used for the type of evaluation that will +occur. +
++The following example shows part of the page URL being evaluated as JavaScript code on the server. This allows an +attacker to provide JavaScript within the URL and send it to server. client side attacks need victim users interaction +like clicking on a attacker provided URL. +
+ +