GCIH · Question #83
Which of the following is a type of computer security vulnerability typically found in Web applications that allow code injection by malicious Web users into the Web pages viewed by other users?
The correct answer is C. Cross-site scripting. Cross-site scripting (XSS) is the web application vulnerability that allows attackers to inject malicious client-side scripts into pages viewed by other users.
Question
Which of the following is a type of computer security vulnerability typically found in Web applications that allow code injection by malicious Web users into the Web pages viewed by other users?
Options
- ASID filtering
- BCookie poisoning
- CCross-site scripting
- DPrivilege Escalation
How the community answered
(21 responses)- B5% (1)
- C90% (19)
- D5% (1)
Why each option
Cross-site scripting (XSS) is the web application vulnerability that allows attackers to inject malicious client-side scripts into pages viewed by other users.
SID filtering is a Windows Active Directory security feature that strips SID history attributes on cross-domain trust boundaries, unrelated to web application code injection.
Cookie poisoning involves modifying cookie values to manipulate application behavior, but it does not inject executable code into pages viewed by other users.
Cross-site scripting (XSS) occurs when an application includes untrusted data in a web page without proper validation or encoding, allowing attackers to inject scripts that execute in other users' browsers. This can be used to steal session cookies, redirect users, or perform actions on behalf of the victim. XSS is classified as an injection vulnerability and consistently appears in the OWASP Top 10.
Privilege escalation is the act of gaining higher access rights than originally granted, which is a different category of attack and does not involve injecting code into web pages.
Concept tested: Cross-site scripting XSS vulnerability definition
Source: https://owasp.org/www-community/attacks/xss/
Topics
Community Discussion
No community discussion yet for this question.