Medium1 markMultiple Choice
Area II: SecurityThreatsWeb AttacksArea II

CPA · Question 40 · Area II: Security

A web application allows users to input text into a comment field. A malicious user enters a script that executes in the browsers of other users viewing the comment. This is known as:

Answer options:

A.

SQL Injection

B.

Cross-Site Scripting (XSS)

C.

Buffer Overflow

D.

Denial of Service

How to approach this question

Keywords: 'script', 'browser', 'other users'.

Full Answer

B.Cross-Site Scripting (XSS)✓ Correct
Cross-Site Scripting (XSS) occurs when an application includes untrusted data in a web page without proper validation, allowing scripts to execute in the victim's browser.

Common mistakes

Confusing XSS with SQL Injection (which targets the server/database).

Practice the full CPA ISC Practice Exam 5

82 questions · hints · full answers · grading

More questions from this exam