Community QuestionSeen on 4 CBTsRe-created in 9 study sets this year

Cross-site scripting (XSS)

Community-sourced. Answers may be wrong or out of date. Always verify with your official training portal before submitting. Not affiliated with any branch, agency, or vendor. Details.
Answer

An attacker discovered an input validation vulnerability on a website, crafted a URL with additional HTML code, and emailed the link to a victim. The victim unknowingly defaced (vandalized) the web site after clicking on the malicious URL. No other malicious operations occurred outside of the web application's root directory. This scenario is describing which type of attack?

Alternate answers seen on other CBTs

The same question shows up worded slightly differently across CBT versions. Here are the other answer variants we've indexed.

is a malicious script hosted on the attacker's site or coded in a link injected onto a trusted site designed to compromise clients browsing the trusted site.

Comptia Certmaster Practice For Security+

A web security vulnerability that allows an attacker to compromise the interactions that users have with a vulnerable application. It allows an attacker to circumvent the same origin policy, which is designed to segregate different websites from each other.

Comptia Exam Objectives Security+