Why can the failure to validate how user input is handled result in a cross-site scripting attack?

What will be an ideal response?


A cross-site scripting attack is a type of injection attack in which maliciously formed scripts are injected into otherwise trusted Web sites. The cross-site scripting (XSS) attack occurs when the attacker leverages a poorly configured or designed Web-based application so that it executes a browser-side script within the browser of the Web site visitor. Server-side applications (including variants of widely used Web servers) can enable these attacks to succeed. Any Web application that uses user-generated input directly as an output without validating or encoding it may be susceptible.

Computer Science & Information Technology

You might also like to view...

What is the correct way to write the condition y < x < z?

a. (y < x < z) b. ( (y < x) && z) c. ((y > x) || (y < z)) d. ((y < x) && (x < z))

Computer Science & Information Technology

Which of the following is not a Java keyword?

a. do b. next c. while d. for

Computer Science & Information Technology

The hides the Toolbox when the mouse pointer is moved outside the Tool- Box’s area.

a) component-selection feature b) Auto Hide feature c) pinned command d) minimize command

Computer Science & Information Technology

The ribbon has exactly the same tabs, buttons, and features in every Microsoft Office program

Indicate whether the statement is true or false

Computer Science & Information Technology