nerdexam
GAQM

CPEH-001 · Question #712

Which of the following is one of the most effective ways to prevent Cross-site Scripting (XSS) flaws in software applications?

The correct answer is C. Validate and escape all information sent to a server. See the full explanation below for the reasoning.

Question

Which of the following is one of the most effective ways to prevent Cross-site Scripting (XSS) flaws in software applications?

Options

  • AUse security policies and procedures to define and implement proper security settings.
  • BUse digital certificates to authenticate a server prior to sending data.
  • CValidate and escape all information sent to a server.
  • DVerify acces right before allowing access to protected information and UI controls.

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    84% (21)

Community Discussion

No community discussion yet for this question.

Full CPEH-001 Practice