GAQM
CPEH-001 · Question #512
Which of the following is the BEST approach to prevent Cross-site Scripting (XSS) flaws?
The correct answer is D. Validate and escape all information sent to a server. See the full explanation below for the reasoning.
Question
Which of the following is the BEST approach to prevent Cross-site Scripting (XSS) flaws?
Options
- AUse digital certificates to authenticate a server prior to sending data.
- BVerify access right before allowing access to protected information and UI controls.
- CVerify access right before allowing access to protected information and UI controls.
- DValidate and escape all information sent to a server.
How the community answered
(41 responses)- A7% (3)
- B10% (4)
- C2% (1)
- D80% (33)
Community Discussion
No community discussion yet for this question.