Few days ago i got a facebook notification about a friend of my suggesting that i "like" some group.
it was a group that finds your celebrity twin(in terms of appearance),i have heard about some technologies that can do that so i went to see what the group is about,i know that most of them are scam.
This group was not a exception,it asked you to click like in order to show its info page,after that it asked you to click a link,after clicking that link a modal window appeared.
of course i didn`t and i took that code and started to analyze it:
so next thing was to de-minize it,that was done by running the inner function in firebug,what i got was this:
so it seems there is another layer of obfuscation,the most intersting thing was the _0x95ea array that was hex encoded,so i just copy-paste it to a python shell,and the result was:
ok so at first look I thought that it was only opening the invite window,hiding it and sending a invitation to your friends(that is the way i got the invitation and that is the worm like behiavor).
but that was because I overlooked this line:
<iframe width="700" height="550" frameborder="0" scrolling="yes" src="http://xa.ly/Vx"></iframe>
which is a link to somekind of link shortner that gives you money for each impression,and also it redirects you to a page with ads,so the creator of this page makes some $$ for each sucker that clicks like!
the group currently have 17,000ish users,for 10 cent(a assumption) per impression,he made a nice 1740$ of thin air!
so thats it,it spread like a worm(altougth a bit manual) and makes the author some money.
the thing is that the technique can be used to do real evil stuff like stealing your facebook account(for example by sending your cookies to a remote server),most of tech savy people out there will not fall for this kind of crap,but 17,000 stupid users already did.
PS:the link to the group is http://www.facebook.com/pages/hds-mzw-t-htwm-slkm-bpyysbwq-wbd/128140680541003 it is in Hebrew,so the target audience is small,I wonder how much people a english group can attract :)
PS2:I reported this group but that doesn`t seems to shut down this page,I hope that this post will make facebook shutdown this kind of groups.