GIAC
GWAPT · Question #36
While reviewing a web application, you find a comment field vulnerable to stored XSS. How should this be remediated?
The correct answer is A. Sanitize all input and encode it before rendering in the browser. See the full explanation below for the reasoning.
Question
While reviewing a web application, you find a comment field vulnerable to stored XSS. How should this be remediated?
Options
- ASanitize all input and encode it before rendering in the browser
- BIncrease the session timeout
- CBlock all user inputs
- DUse HTTPS for communication
How the community answered
(24 responses)- A75% (18)
- B13% (3)
- C4% (1)
- D8% (2)
Community Discussion
No community discussion yet for this question.