Cross Site Scripting is an attack against

  1. Client (Browser)

  2. Database

  3. Web Application

  4. Web Server


Correct Option: A

AI Explanation

To answer this question, you need to understand what Cross-Site Scripting (XSS) is.

Cross-Site Scripting is an attack against the Client (Browser).

Option A) Client (Browser) - This option is correct because Cross-Site Scripting involves injecting malicious scripts into a web application, which are then executed by the user's browser. This allows attackers to steal sensitive information, manipulate web content, or perform other malicious actions on the user's behalf.

Option B) Database - This option is incorrect because Cross-Site Scripting does not directly target the database. However, if the injected scripts are not properly validated or sanitized, they can be stored in the database and potentially cause further harm.

Option C) Web Application - This option is partially correct because Cross-Site Scripting targets vulnerabilities in the web application itself, allowing attackers to inject malicious scripts. However, the actual execution of the injected scripts occurs on the client's browser.

Option D) Web Server - This option is incorrect because Cross-Site Scripting does not directly target the web server. The web server simply serves the web application to the client's browser, but the actual vulnerability lies within the client-side code.

The correct answer is A) Client (Browser). This option is correct because Cross-Site Scripting attacks exploit vulnerabilities in the client's browser, allowing attackers to execute malicious scripts.

Find more quizzes: