GCIH · Question #253
Ryan, a malicious hacker submits Cross-Site Scripting (XSS) exploit code to the Website of Internet forum for online discussion. When a user visits the infected Web page, code gets automatically…
The correct answer is D. Persistent. Persistent (stored) XSS occurs when malicious script is permanently stored on the target server and executes in every victim's browser when they load the affected page, enabling account hijacking and data theft.
Question
Ryan, a malicious hacker submits Cross-Site Scripting (XSS) exploit code to the Website of Internet forum for online discussion. When a user visits the infected Web page, code gets automatically executed and Ryan can easily perform acts like account hijacking, history theft etc. Which of the following types of Cross-Site Scripting attack Ryan intends to do?
Options
- ANon persistent
- BDocument Object Model (DOM)
- CSAX
- DPersistent
How the community answered
(47 responses)- A2% (1)
- B6% (3)
- C2% (1)
- D89% (42)
Why each option
Persistent (stored) XSS occurs when malicious script is permanently stored on the target server and executes in every victim's browser when they load the affected page, enabling account hijacking and data theft.
Non-persistent (reflected) XSS requires the attacker to trick each individual victim into clicking a specially crafted URL that reflects the malicious script off the server in the response, rather than the script being stored and served to all visitors automatically.
DOM-based XSS is a client-side vulnerability where the attack payload is executed by modifying the Document Object Model in the victim's browser using unsafe client-side JavaScript, not by storing content on the server.
SAX (Simple API for XML) is an XML parsing interface and is not a category or type of Cross-Site Scripting attack.
Persistent XSS - also called stored XSS - involves an attacker injecting a malicious script into a server-side data store such as a forum post or comment field; every subsequent user who loads that page receives and executes the script in their browser without any additional action by the attacker, making it the most dangerous XSS variant for mass exploitation.
Concept tested: Persistent stored XSS attack type identification
Source: https://owasp.org/www-community/attacks/xss/
Topics
Community Discussion
No community discussion yet for this question.