{"id":77,"date":"2008-09-14T16:19:28","date_gmt":"2008-09-14T08:19:28","guid":{"rendered":"http:\/\/play.datalude.com\/blog\/?p=77"},"modified":"2008-09-14T17:04:29","modified_gmt":"2008-09-14T09:04:29","slug":"strange-smartbro-url-hijacking","status":"publish","type":"post","link":"https:\/\/play.datalude.com\/blog\/2008\/09\/strange-smartbro-url-hijacking\/","title":{"rendered":"Strange SmartBro URL hijacking"},"content":{"rendered":"<p><a href=\"http:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2008\/09\/economist.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-78 alignright\" title=\"economist\" src=\"http:\/\/play.datalude.com\/blog\/wp-content\/uploads\/2008\/09\/economist-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>I'm at a loss to explain this unless SmartBro's DNS or proxy servers have been taken over. Here's the deal. I'm surfing normally, and then suddenly I try to go to a normal site (economist.com, yahoo.com, facebook.com, google. com, iptools.com etc) and instead of getting the correct page, I get a weird spammy advertising page, <em>even though the URL in the Address bar looks correct<\/em>.<\/p>\n<p>The image to the right is an example. Click on the image to get a full sized view. I have more examples saved if anyone is interested.<!--more-->And here is the code which goes with the economist screenshot:<\/p>\n<pre>&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;\r\n&lt;html&gt;\r\n\t&lt;head&gt;\r\n\t\t&lt;title&gt;Books\/displaystory.cfm&lt;\/title&gt;\r\n\t\t&lt;base href=\"www.economist.com\" \/&gt;\r\n\t\t&lt;meta name=\"description\" content=\"Relevancy Searcher\" \/&gt;\r\n\t\t&lt;meta name=\"revisit-after\" content=\"1 days\" \/&gt;\r\n\t\t&lt;meta name=\"robots\" content=\"follow,index\" \/&gt;\r\n\t\t&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=ISO-8859-1\" \/&gt;\r\n\t\t&lt;!--\r\n\t\t&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"style.css\" \/&gt;\r\n\t\t--&gt;\r\n\t\t&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"style2.css\" \/&gt;\r\n\t\t&lt;script type=\"text\/javascript\"&gt;\r\n\t\twindow.onload = function() {\r\n\t\t\tvar q = document.getElementById(\"q\");\r\n\t\t\tq.focus();\r\n\t\t}\r\n\t\tclk = function(q,u) {\r\n\t\t\timg = document.createElement(\"IMG\");\r\n\t\t\timg.src = \"http:\/\/www.economist.com\/?query_id=\" + q + \"&amp;url_id=\" + u;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\trndr = function(t, d, u, us, qid, uid) {\r\n\t\t\tdocument.write(\"&lt;h4&gt;&lt;a href=\\\"\" + u + \"\\\" onclick=\\\"clk(\" + qid + \",\" + uid + \")\\\"&gt;\"  + t + \"&lt;\/a&gt;&lt;\/h4&gt;\");\r\n\t\t\tdocument.write(\"&lt;p class=\\\"description\\\"&gt;\" + d + \"&lt;\/p&gt;\");\r\n\t\t\tdocument.write(\"&lt;p class=\\\"url\\\"&gt;\" + us + \"&lt;\/p&gt;\");\r\n\t\t}\r\n\r\n\t\tgetXMLHTTP = function() {\r\n\t\t\tvar xmlhttp = false;\r\n\t\t\tif (window.XMLHttpRequest) {\r\n\t\t\t\txmlhttp = new XMLHttpRequest();\r\n\t\t\t}\r\n\t\t\telse if (window.ActiveXObject) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\txmlhttp = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch (e) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\txmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (E) {\r\n\t\t\t\t\t\txmlhttp = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn xmlhttp;\r\n\t\t}\r\n\r\n\t\t&lt;\/script&gt;\r\n\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t\t&lt;div class=\"content\"&gt;\r\n\t\t\t&lt;span class=\"title\"&gt;&lt;a href=\"http:\/\/www.economist.com\"&gt;Economist.com&lt;\/a&gt;&lt;\/span&gt;\r\n\r\n&lt;form action=\"index.php\" method=\"get\"&gt;\r\n\t&lt;div class=\"searchform\"&gt;\r\n\t\t&lt;label for=\"q\"&gt;Find it quickly!&lt;\/label&gt;&lt;br \/&gt;\r\n\t\t&lt;input type=\"text\" name=\"q\" value=\"books\/displaystory.cfm\" id=\"q\" \/&gt;\r\n\t\t&lt;input type=\"submit\" value=\"Search!\" id=\"search\" \/&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/form&gt;\r\n&lt;div class=\"box\"&gt;\r\n\t&lt;div class=\"title\"&gt;\r\n\t\t&lt;h3&gt;Related searches: books\/displaystory.cfm&lt;\/h3&gt;\r\n\t&lt;\/div&gt;\r\n\t&lt;div class=\"text related\"&gt;\r\n\t&lt;script&gt;\r\n\t\/\/ Unsupported modification in the code might be changed without warning\r\n\t\/\/ To activate a parameter, just uncomment the line that contain &lt;script&gt; and that correspond\r\n\t\/\/ to the parameters that you want to activate. Ads-click won't be responsible for potential \/\/ errors that could happen if the parameters are wrongly defined.\r\n\t\/\/ *** Speed at which the keyword move to and in the clouds ***\r\n\t\/\/ 0 is the fastest (instant) 1 is the slowest (other values are with two decimal eg. 0.10).\r\n\tdocument['tc-adsclick-speedkeyword']=0.80;\r\n\t\/\/ *** Speed at which the keywords wink ***\r\n\t\/\/ 0 will never wink. 1 will be the fastest (other values are with two decimal eg. 0.10)\r\n\tdocument['tc-adsclick-hide']=0.02;\r\n\t\/\/ *** Probability of a keyword to be relocated ***\r\n\t\/\/ 0 will never relocate. 1 will be the fastest (other values are with two decimal eg. 0.1)\r\n\tdocument['tc-adsclick-relocate']=0.05;\r\n\t\/\/ Set a background image\r\n\t\/\/ URL of the image displayed in background of the Tagcloud\r\n\tdocument['tc-adsclick-background-image']='';\r\n\t\/\/ Minimum and maximum size of keywords.\r\n\tdocument['tc-adsclick-keyword-minsize']=10;\r\n\tdocument['tc-adsclick-keyword-maxsize']=34;\r\n\t\/\/ Show these colors\r\n\t\/\/ document['tc-adsclick-keyword-colors']= new Array('#FF0000','#00FF00','#0000FF');\r\n\t&lt;\/script&gt; &lt;script src=\"http:\/\/acnetwork.flux.acsyndication.com?id=974_1390&amp;oe=utf8\"&gt;&lt;\/script&gt;\r\n\t\t&lt;!-- google_ad_section_start(weight=ignore) --&gt;\r\n\t\t\t\t\t&lt;a href=\"\"&gt;&lt;\/a&gt; &amp;nbsp;\r\n\r\n\t\t&lt;!-- google_ad_section_end --&gt;\r\n\t&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;br \/&gt;<\/pre>\n<p>I can't really explain this. It happens on both my computer and my girlfriend's, but only while connected to my home network: from other networks it seems OK. It happens randomly &#8212; perhaps one page every 100 or so, and then is gone when you reload the page. We're both running Linux so I can't verify if it is OS specific, but that would make a viral \/ malware attack unlikely. However there seem to be other complaints around the internet, also from the Philippines <a href=\"http:\/\/www.pinoymac.org\/forum\/showthread.php?t=24185\">here<\/a> and <a href=\"http:\/\/forums.mcafeehelp.com\/showthread.php?p=530124#post530124\">here<\/a>, from users of Mac and Windows PCs, who use different browsers.<\/p>\n<p>My guess is that there's something infiltrating the DNS system at SmartBro or maybe one of their proxy servers. Leave a comment if you're similarly affected and lets see if we can piece this together. The HTML code points to an advertising network. They have a Google Analytics ID &#8230; hmmm<\/p>\n<h2>Update 5pm, Sunday<\/h2>\n<p>A user in the macafee forum suggested it might be the DNSchanger trojan, which resets the DNS entries on your router if you leave them with a default password. My reply to that was that it was unlikely:<\/p>\n<blockquote><p>Thanks for the suggestion melboy. I'm not entirely convinced that this can be the culprit, as<\/p>\n<ul>\n<li>My router runs a non-standard firmware<\/li>\n<li>I have set the password on it.<\/li>\n<li>I recently upgraded it, and in the process reset all existing settings<\/li>\n<li>The dns servers it is given by the smartbro DHCP are the three valid smartbro dns servers, namely 121.1.3.199, 121.1.3.208, and 203.84.191.216. These check out on <a href=\"http:\/\/www.robtex.com\/\" target=\"_blank\">www.robtex.com<\/a><\/li>\n<\/ul>\n<\/blockquote>\n<blockquote><p>So unless the main smartbro DNS servers have been affected, I don't think this is likely. As a sidenote, I recently tested the Smartbro DNS servers for the DNS poisoning vulnerability released at Blackhat this year, and they passed, with properly randomised ports.<\/p>\n<p>So &#8230; still puzzled. I may try using OpenDNS servers for a while to see if that helps. Then at least that would tell me if it was SmartBro DNS.<\/p><\/blockquote>\n<p>Hmmmmm.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I'm at a loss to explain this unless SmartBro's DNS or proxy servers have been taken over. Here's the deal. I'm surfing normally, and then suddenly I try to go to a normal site (economist.com, yahoo.com, facebook.com, google. com, iptools.com etc) and instead of getting the correct page, I get a weird spammy advertising page, &#8230; <a title=\"Strange SmartBro URL hijacking\" class=\"read-more\" href=\"https:\/\/play.datalude.com\/blog\/2008\/09\/strange-smartbro-url-hijacking\/\" aria-label=\"Read more about Strange SmartBro URL hijacking\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1,3,5],"tags":[68,69,67,60],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-it","category-philippines","category-security","tag-google","tag-smartbro","tag-url-hijack","tag-yahoo"],"_links":{"self":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":0,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/play.datalude.com\/blog\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}