nerdexam
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)
  • A
    7% (3)
  • B
    10% (4)
  • C
    2% (1)
  • D
    80% (33)

Community Discussion

No community discussion yet for this question.

Full CPEH-001 Practice