nerdexam
GIAC

GWAPT · Question #26

How can a web application developer prevent Reflected XSS vulnerabilities?

The correct answer is C. By encoding user input before displaying it. See the full explanation below for the reasoning.

Question

How can a web application developer prevent Reflected XSS vulnerabilities?

Options

  • ABy using client-side validation only
  • BBy encrypting session cookies
  • CBy encoding user input before displaying it
  • DBy disabling JavaScript

How the community answered

(43 responses)
  • A
    7% (3)
  • B
    12% (5)
  • C
    79% (34)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full GWAPT Practice