Exam4Training

URL: http://www.certified.com/search.pl?

Consider the following code:

URL: http://www.certified.com/search.pl?

text=<script>alert(document.cookie)</script>

If an attacker can trick a victim user to click a link like this, and the Web application does not validate input, then the victim’s browser will pop up an alert showing the users current set of cookies. An attacker can do much more damage, including stealing passwords, resetting your home page, or redirecting the user to another Web site.

What is the countermeasure against XSS scripting?
A . Create an IP access list and restrict connections based on port number
B . Replace "<" and ">" characters with "& l t;" and "& g t;" using server scripts
C . Disable Javascript in IE and Firefox browsers
D . Connect to the server using HTTPS protocol instead of HTTP

Answer: B

Latest CEH-001 Dumps Valid Version with 878 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version