CISSP · Question #1163
The ability to send malicious code, generally in the form of a client side script, to a different end user is categorized as which type of vulnerability?
The correct answer is C. Cross-Site Scripting (XSS). Cross-Site Scripting (XSS) is a type of vulnerability that allows an attacker to inject malicious code, usually in the form of a client-side script, into a web application or a web page that is viewed by another user. The malicious code can then perform various actions on behalf
Question
The ability to send malicious code, generally in the form of a client side script, to a different end user is categorized as which type of vulnerability?
Options
- ASession hijacking
- BCross-site request forgery (CSRF)
- CCross-Site Scripting (XSS)
- DCommand injection
How the community answered
(56 responses)- A2% (1)
- B4% (2)
- C93% (52)
- D2% (1)
Explanation
Cross-Site Scripting (XSS) is a type of vulnerability that allows an attacker to inject malicious code, usually in the form of a client-side script, into a web application or a web page that is viewed by another user. The malicious code can then perform various actions on behalf of the victim user, such as stealing cookies, session tokens, personal information, or redirecting to malicious sites. XSS can be classified into three types: reflected, stored, and DOM-based. Reflected XSS occurs when the malicious code is embedded in a link or a parameter that is sent to the web server and then reflected back to the user's browser. Stored XSS occurs when the malicious code is stored in a database or a file on the web server and then displayed to the user's browser. DOM-based XSS occurs when the malicious code is executed by the user's browser due to a modification of the Document Object Model (DOM) of the web page.
Topics
Community Discussion
No community discussion yet for this question.