Which two measures are most effective in protecting websites from cross site scripting (XSS) attacks?

Which two measures are most effective in protecting websites from cross site scripting
(XSS) attacks?

Which two measures are most effective in protecting websites from cross site scripting
(XSS) attacks?

A.
Execute all user-supplied scripts in a server-side sandbox.

B.
Escape “<” and “>” parameters that displayed or evaluated by the JavaScript interpreter.

C.
URL-encode “<” and “>”parameters so they will never be evaluated by the JavaScript
Interpreter.

D.
Ensure that the session cookie is sent only on UTTPS connections.

E.
Treat all user-supplied input as unsafe, and white list known good characters



Leave a Reply 1

Your email address will not be published. Required fields are marked *