nerdexam
CompTIA

PT0-001 · Question #191

You can find XSS vulnerabilities in which of the following?

The correct answer is D. All of the above. The correct answer is D, All of the above. XSS vulnerabilities can appear anywhere that user-supplied data is accepted and later rendered or reflected without proper sanitization or encoding. Search fields that echo a search string back to the user (A) are classic XSS targets…

Vulnerability discovery and analysis

Question

You can find XSS vulnerabilities in which of the following?

Options

  • ASearch fields that echo a search string back to the user
  • BHTTP headers
  • CInput fields that echo user data
  • DAll of the above

How the community answered

(17 responses)
  • A
    6% (1)
  • C
    6% (1)
  • D
    88% (15)

Explanation

The correct answer is D, All of the above. XSS vulnerabilities can appear anywhere that user-supplied data is accepted and later rendered or reflected without proper sanitization or encoding. Search fields that echo a search string back to the user (A) are classic XSS targets because the unsanitized query string is displayed on the page. Input fields that echo user data (C) - such as registration forms, comment boxes, or profile fields - are also common attack surfaces. HTTP headers (B) such as User-Agent, Referer, or custom headers can also be vectors if the server-side application logs and renders them in a web interface without sanitization. A comprehensive XSS assessment must examine all these locations.

Topics

#XSS#reflected XSS#input fields#HTTP headers

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice