210-250 · Question #33
Which two terms are types of cross site scripting attacks? (Choose two )
The correct answer is C. stored D. reflected. XSS attacks are classified by how the malicious script is delivered - either persistently stored on the server or immediately reflected back to the user.
Question
Which two terms are types of cross site scripting attacks? (Choose two )
Options
- Adirected
- Bencoded
- Cstored
- Dreflected
- Ecascaded
How the community answered
(27 responses)- A4% (1)
- B7% (2)
- C85% (23)
- E4% (1)
Why each option
XSS attacks are classified by how the malicious script is delivered - either persistently stored on the server or immediately reflected back to the user.
Directed is not a recognized classification of XSS attack types in standard security frameworks or OWASP taxonomy.
Encoded is not a type of XSS attack - output encoding is actually a mitigation technique used to prevent XSS by neutralizing special characters.
Stored (persistent) XSS occurs when a malicious script is permanently saved on the server, such as in a database comment field, and is served to every user who loads the affected page. Because the payload lives on the server, it can affect a large number of victims without requiring them to click a crafted link.
Reflected XSS occurs when a malicious script is embedded in a request, such as a URL parameter, and the server immediately echoes it back in the response without sanitization. The attack typically requires tricking the victim into clicking a specially crafted link that triggers script execution in their browser.
Cascaded is not a defined category of XSS attack; it does not appear in OWASP or common security certification curricula.
Concept tested: Types of cross-site scripting attacks
Source: https://owasp.org/www-community/attacks/xss/
Topics
Community Discussion
No community discussion yet for this question.