<?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>Praetorian Prefect &#187; Social Networking</title>
	<atom:link href="http://praetorianprefect.com/archives/tag/social-networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://praetorianprefect.com</link>
	<description>Information security, a little slower...a little deeper</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:38:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Formspring.me XSS Vulnerability</title>
		<link>http://praetorianprefect.com/archives/2010/06/formspring-me-xss-vulnerability/</link>
		<comments>http://praetorianprefect.com/archives/2010/06/formspring-me-xss-vulnerability/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 02:46:32 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Cross Site Scripting]]></category>
		<category><![CDATA[Social Networking]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3922</guid>
		<description><![CDATA[Formspring.me, a newly popular social networking site, has a fundamental cross site scripting flaw that allows one logged in user to steal another user’s session, but also may allow users to find out who posted a nasty comment about them.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring.gif" alt="" title="formspring" width="136" height="120" class="alignleft size-full wp-image-3925" /></a></p>

<p>Formspring.me, a newly popular social networking site, has a fundamental cross site scripting flaw that allows one logged in user to steal another user&#8217;s session, but also may allow users to find out who posted a nasty comment about them. A key complaint about the site is that you can not find out the identity of an anonymous user.</p>

<p><i>Update</i>: Kudos to Formspring.me, even though it was hard to initially report the problem, they corrected it in about an hour from opening a post on their technical support forum, a nice turnaround by any standard.</p>

<h3>Formspring.me</h3>

<p>Formspring.me is a six month old social networking question and answer site. The web site has come under scrutiny following a few recent news stories involving incidents with teenagers, the site&#8217;s primary demographic. The first notable incident was where <a href="http://www.whtm.com/news/stories/0210/707982.html">a fight broke out</a> over comments on the site. More notably, however, is the story of Alexis Pilkington, a 17 year old West Islip, NY High School graduate who <a href="http://www.newsday.com/long-island/suffolk/after-teen-s-death-3-800-pledge-web-site-boycott-1.1829354">committed suicide after dozens of insulting comments</a> had been made to her on the site.</p>

<p>From comments on the site, these are not isolated incidents, and its fairly clear Formspring needs to come up with a better model:</p>

<p><i>Is it possible for you to delete an account for harrassment if the posts were anonymously posted? I received 18 threats last night that I followed up with a police report to my local PD. I have the police report number, as of yet I have not deleted my account so that if you needed to access it to see the post you could. Please advise.</i></p>

<p><i>I need to know how to go about finding out who send a message to my daughter&#8217;s account. The message says.. that she would be better off dead.</i></p>

<p><i>I would appreciate it if Formspring will work with our local Santa Barbara Police Department and the Santa Barbara Sheriff Department to find the person that was impersonating my daughter.</i></p>

<p>Such problems have led to various organized boycotts, letters home from school officials, and coverage under the topic of cyber-bullying in a number of news outlets.</p>

<h3>The Big Issue People Have</h3>

<p>One of the primary complaints about the web site is the anonymity of questioners. Hiding behind the veil of anonymity has allowed, mostly teenagers, to make nasty remarks to each other they would probably not make under their own names (although frankly the Internet is a wild place). Largely as a result of this, a good deal of time has been spent trying to figure out a way to determine: &#8220;who said that about me?&#8221;. That is at least according to the articles <a href="http://www.northjersey.com/news/95486479_Anonymous_cyber-taunts_leave_lasting_wounds_on_kids.html">I&#8217;ve been reading</a>. Formspring won&#8217;t help you with anonymous questions, as it states in <a href="http://formspringme.zendesk.com/entries/93852-can-you-tell-me-who-asked-me-an-anonymous-question">their support forums</a></p>

<p>But here&#8217;s an answer to that question, or at least a method: a way to grab another user&#8217;s session only knowing user name because of a web site vulnerability present in the Formspring web site.</p>

<ol>
<li><p>We have two users: Tester21 and Tester25. Since they have such close names, they&#8217;ve decided to follow each other using the site&#8217;s People->Find People and Follow functions.</p></li>
<li><p>Tester 25 goes to www.formspring.me and asks Tester21 a question:
<div id="attachment_3927" class="wp-caption alignnone" style="width: 710px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring_1.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring_1.gif" alt="" title="formspring_1" width="700" height="561" class="size-full wp-image-3927" /></a><p class="wp-caption-text">Ask another user a question.</p></div>
<br /></p></li>
<li>But that&#8217;s kind of boring, so Tester25 asks a better question: </li>
</ol>

<pre><code>&lt;script&gt;alert(document.cookie);&lt;/script&gt;
</code></pre>

<p>4.  Tester21 logs in and sees he has a question:
<div id="attachment_3928" class="wp-caption alignnone" style="width: 636px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring2.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring2.gif" alt="" title="formspring2" width="626" height="409" class="size-full wp-image-3928" /></a><p class="wp-caption-text">Malicious script, dutifully encoded by Formspring.me.</p></div>
<br />
Immediately he see&#8217;s that this isn&#8217;t a question. Formspring has done a good job for him, because rather than allow this malicious script to execute, they have encoded parts of the output as shown:</p>

<pre><code>&lt;a href="#" rel="question"&gt;
&amp;lt;script&amp;gt;alert(document.cookie);&amp;lt;/script&amp;gt;&lt;/a&gt;
&lt;span class="askedBy"&gt;asked by &lt;a href="http://www.formspring.me/tester25" rel="profile"&gt;tester25&lt;/a&gt;
</code></pre>

<p>5.  Glad Formspring has protected him from revealing his session cookie by properly encoding output, Tester21 makes a note to drop that loser Tester25 from his Follow list and clicks Home:</p>

<div id="attachment_3929" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring3.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/formspring3.gif" alt="" title="formspring3" width="750" height="595" class="size-full wp-image-3929" /></a><p class="wp-caption-text">The home screen preview executes the Javascript.</p></div>

<h3>What Happened?</h3>

<p>A preview function on the home page shows the user the last pending question they&#8217;ve received. If its the one that is the cross site scripting string, the script executes. In this case its only the classic alert box demonstration, but anything that can be accomplished with Javascript is possible.</p>

<h3>Another Random Issue</h3>

<p>It appears formspring.me actually logs users in as someone else sometimes without any interaction, as evidenced by <a href="http://formspringme.zendesk.com/entries/187720-logging-into-other-peoples-pages">this user complaint</a>:</p>

<p><i>Hi, everytime i want to go to my home page or feeds on my friends answered questions, i keep going to random people&#8217;s homepage or their feeds, anyway i can fix this?</i></p>

<h3>Why is Disclosure this Difficult?</h3>

<p>After numerous attempts to sign up for the Support section of the site so we could notify Formspring of this defect, we finally just posted an issue in their Technical Support forum as the notification. They need to think about adding a screen or e-mail address for reporting security issues, ala Twitter and other sites.</p>

<h3>Finally</h3>

<p>So assuming someone is acting as an anonymous user, but has given more information in their profile (e-mail, etc.) then the person who wants to know who they are could send them a variation of the &#8220;poison question&#8221; above that steals that user&#8217;s session (likely this would involve sending the user&#8217;s cookies to another web site, having a script running there that grabs the cookies and perhaps logs in in as that user and changes the user&#8217;s password which essentially takes over the account). From taking over the account the attacker gains access to any information filled out in the profile (could be nothing if Anonymous uses dummy information and an anonymous e-mail) and can post and answer questions as that user.</p>

<p>Additionally by searching out people making use of the Formspring widget, you don&#8217;t even really need to be a Formspring user yourself to post the XSS string to a Formspring user&#8217;s account.</p>

<p>The problem above is magnified in that many users connect their Formspring accounts to Facebook and Twitter (meaning a person who has taken over the account can then post messages to these other two social networking services).</p>

<p>In terms of actual impact, its unclear that user&#8217;s would have any truly sensitive information available in their profiles, making information disclosure a low risk (assumes the user didn&#8217;t post sensitive information themselves). Birthday and e-mail are probably the only two fields that could be considered user confidential. So the primary issue is session hijacking. Is it a big deal? It probably is not, other social networking sites had similar issues in their first six months of existence, it is just something that should be corrected.</p>

<p>As for Formspring itself, and the issues people are having with anonymous users, this is probably worthy of its own blog post. There are a number of sites that allow anonymous comments to be posted, and the web is famous for snarks and nastiness in online comments. That said, having experienced these problems so publicly, and being a web site that is used primarily by young people, Formspring would be best advised to remove the anonymous question capability to avoid libel, cut down on police investigations, and get itself out of the negative press for a while. Call it the price of being popular.</p>

<p>A special thanks to <a href="http://www.twitter.com/ethicalhack3r">ethicalhack3r</a> for bouncing some ideas around.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/f-secure-xss-on-anti-theft-website/">F-Secure XSS on Anti-Theft Website</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/xss-flaw-on-paypal-com/">XSS Flaw on PayPal.com</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/pentagon-web-pwned/">Pentagon Web Site Vulnerabilities Identified</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/06/formspring-me-xss-vulnerability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Not the Haus of Gaga too</title>
		<link>http://praetorianprefect.com/archives/2009/11/not-the-haus-of-gaga-too/</link>
		<comments>http://praetorianprefect.com/archives/2009/11/not-the-haus-of-gaga-too/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 08:20:58 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[brute forcing]]></category>
		<category><![CDATA[defacement]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=1723</guid>
		<description><![CDATA[Around 9pm EST on Monday the Twitter account of pop singer Lady Gaga, <a href="http://www.twitter.com/ladygaga">@ladygaga</a> was cracked in to and a series of messages added to her tweet stream. This is the second high profile Twitter account to be cracked in the last few days, on Friday the account of pop singer Britney Spears, @BritneySpears, started professing sympathy for the devil. The Lady Gaga one is interesting though, because like an homage to old school cracks of the past, the attackers appear to have left their name. Further these are two high profile accounts broken into after Twitter has implemented at least three major changes to their web site's authentication process.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/lady_gaga_hacked.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/lady_gaga_hacked-150x150.jpg" alt="lady_gaga_hacked" title="lady_gaga_hacked" width="150" height="150" class="alignleft size-thumbnail wp-image-1734" /></a>Around 9pm EST on Monday the Twitter account of pop singer Lady Gaga, <a href="http://www.twitter.com/ladygaga">@ladygaga</a> was cracked in to and a series of messages added to her tweet stream. This is the second high profile Twitter account to be cracked in the last few days, on Friday the account of pop singer Britney Spears, @BritneySpears, started professing sympathy for the devil. The Lady Gaga one is interesting though, because like an homage to old school cracks of the past, the attackers appear to have left their name. Further these are two high profile accounts broken into after Twitter has implemented at least three major changes to their web site&#8217;s authentication process.
<br /><br /><br />
Around 9pm users who follow @ladygaga started to get the following messages:</p>

<ul>
<li>&lt;3 &lt;3 &lt;3 @T3ETH NXT TIME REALNESS PIC A BETTER PASSWORD!!!! PVNKS UNITE!!!</li>
<li>&lt;3 LADY GAGA &#8211; NO HATE INTENDED!!!! CAN&#8217;T WAIT 4 THE MONSTER BALL!!!!</li>
<li>&#8230;butt LADY GAGA RULEZ THE WORLD!!!!! Warhol are you listening?!!</li>
<li>I swear my dick is not as big as T33TH’S!!!! POPWRLDSUCKZ!!! PUNX UNITE!!!! &lt;3</li>
<li>GAGA PEECE FOR LYFE!!!</li>
<li>Hay my babies!!! LOVE GAGA??? LOVE T33TH!!! http://www.myspace.com/teethdance</li>
</ul>

<p><div id="attachment_1747" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/ladygaga_hack.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/ladygaga_hack-300x203.jpg" alt="Strange tweets showing up in Lady Gaga&#039;s tweetstream." title="ladygaga_hack" width="300" height="203" class="size-medium wp-image-1747" /></a><p class="wp-caption-text">Strange tweets showing up in Lady Gaga's tweetstream.</p></div>
<br />
In this case it appears the cracker signed his or her or their work, referencing the Twitter account <a href="http://www.twitter.com/t3eth">@t3eth</a> and the <a href="http://www.myspace.com/teethdance">MySpace fan page: teethdance</a>.</p>

<p><div id="attachment_1733" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/173072.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/173072-300x200.jpg" alt="London band Teeth." title="173072" width="300" height="200" class="size-medium wp-image-1733" /></a><p class="wp-caption-text">London band Teeth.</p></div>
<br />
<div id="attachment_1776" class="wp-caption alignnone" style="width: 309px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/n35408829631_1342856_3278.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/n35408829631_1342856_3278-299x300.jpg" alt="The London band T3eth, suspected of hacking the account." title="n35408829631_1342856_3278" width="299" height="300" class="size-medium wp-image-1776" /></a><p class="wp-caption-text">The London band T3eth, suspected of hacking the account.</p></div>
<br />
The defacers appear to be members of the band Teeth: Ximon Tayki, Simon Whybray and Veronica So from the Dalston district in London, UK. This assumption is drawn on the fact that a link to their MySpace page was provided in one of the first tweets and they seem to reference the defacement <a href="http://twitter.com/T3ETH">in their tweets</a> responding to other Twitter users either congratulating them or giving them a hard time. All of this is circumstantial evidence, but the Twitter account is well established and has similar branding as the MySpace page. But of course someone could have done all this and just pointed back to the band.
<br /><br /></p>

<h3>Anonymous?</h3>

<p>The lone offensive tweet references the Internet hoax that suggested Lady Gaga was a hermaphrodite, perpetuated initially by the Youtube video below and a <a href="http://bossip.com/139759/chicks-with-dcks-is-lady-gaga-packing/">fake quote</a>:
<br /><br /></p>

<pre><code>It’s not something that I’m ashamed of, just isn’t something that I go around telling everyone. Yes. I 
have both male and female genitalia, but I consider myself a female. It’s just a little bit of a penis 
and really doesn’t interfere much with my life. The reason I haven’t talked about it is that it’s not a 
big deal to me. Like come on. It’s not like we all go around talking about our vags. I think this is
a great opportunity to make other multiple gendered people feel more comfortable with their bodies. 
I’m sexy, I’m hot. I have both a poon and a peener. Big f*cking deal. 
- Attributed to Lady Gaga
</code></pre>

<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/i23qGLw3H_Y&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/i23qGLw3H_Y&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>

<p>I only bother including the video, because it contains a reference to another famous Internet group: Anonymous. No conspiracy, its just amusing to see Guy Fawke in the beginning of the video hanging out with the Lady Gaga crowd.</p>

<p><div id="attachment_1752" class="wp-caption alignnone" style="width: 287px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/anonymous_gagacrowd.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/anonymous_gagacrowd-277x300.jpg" alt="Anonymous hanging out at the Lady Gaga concert." title="anonymous_gagacrowd" width="277" height="300" class="size-medium wp-image-1752" /></a><p class="wp-caption-text">Anonymous hanging out at the Lady Gaga concert.</p></div>
<br />
Anonymous is that loose affiliation of Internet denizens known for various hoaxes, blaming things on ripoff site eBaum&#8217;sWorld, and probably most famously Project Chanology a protest against the Church of Scientology. The members are also known for wearing Guy Fawkes masks:</p>

<p><div id="attachment_1724" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/Anonymous_Scientology_9_by_David_Shankbone.JPG"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/Anonymous_Scientology_9_by_David_Shankbone-300x225.jpg" alt="Members of Anonymous protesting scientology." title="Anonymous_Scientology_9_by_David_Shankbone" width="300" height="225" class="size-medium wp-image-1724" /></a><p class="wp-caption-text">Members of Anonymous protesting scientology.</p></div>
<br /></p>

<h3>Britney</h3>

<p>On Friday, Britney Spears appeared to be letting us in on a previously unknown penchant for devil worship:</p>

<p><div id="attachment_1735" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/spears_hacked.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/spears_hacked-300x158.jpg" alt="The appearance of the Britney Spears Twitter account on Friday." title="spears_hacked" width="300" height="158" class="size-medium wp-image-1735" /></a><p class="wp-caption-text">The appearance of the Britney Spears Twitter account on Friday.</p></div>
<br />
As an aside, the Britney Spears Twitter account <a href="http://www.twitter.com/BritneySpears">@BritneySpears</a> like the @ladygaga account is listed by Twitter as a <i>Verified Account</i> a service offered by Twitter for certain accounts of famous persons (politicians, actors/actresses, singers, athletes) that are at a high risk of impersonation on the micro-blogging service. This service was brought about in part because of a well publicized law suite by baseball manager Tony LaRussa, who went after Twitter for an account on their service that was pretending to be him.</p>

<h3>Why is this News?</h3>

<p>Celebrities having their Twitter accounts cracked doesn&#8217;t seem like a new problem, and indeed Britney did report herself dead via Twitter back on June 28th. But there is a difference, and that is that many of the openings for easily brute forcing the Twitter password via the web site have closed. Note I said easily, don&#8217;t spam the comments with speculation on how the account was compromised (unless its high quality speculation), we know quite well that Twitter is still far from security nirvana.</p>

<p>Twitter has been slowly closing loop holes in their authentication process over the course of this year. <a href="http://praetorianprefect.com/archives/2009/09/rofl-this-you-on-here-the-latest-twitter-worm/">Back in September</a> we pointed out the reCAPTCHA implementation on login that shows up when you enter too many bad authentication attempts, a key difference in the process from when the rash of prominent account break-ins occurred earlier in the year (including the notable crack of a Twitter admin&#8217;s account). Twitter has more recently started to lock out accounts for an hour when they provide too many bad passwords (a lousy idea from a security perspective, but we&#8217;ll get into that some other time).</p>

<p>In <a href="http://praetorianprefect.com/archives/2009/09/breaking-twitter-authentication/">Breaking Twitter</a> we showed how Twitter rate limits were not enforced as advertised in their API documentation, allowing brute force of passwords via the API. Well that hole has <em>somewhat</em> closed (we&#8217;ll touch on that in a future post as well).</p>

<p>Now in the Lady Gaga case, Teeth seems to be admitting that they successfully guessed the password, so fair enough for that one. What about the Britney case? Because what was once a very obvious avenue of attack (point password brute forcing tool and click) has become a little less obvious. Maybe its someone in her entourage, or Kevin Federline?</p>

<p>PoPo Zao.</p>

<h3>Update</h3>

<ul>
<li>Lady Gaga had this to say today: <i>&#8220;Seems as though my twitter was hacked yesterday. I could be angry, except I secretly love how psychotically smart my fans are.&#8221;</i></li>
<li>It looks like Lady Gaga&#8217;s password was: JustDance1. Explains why it was easy to guess, that&#8217;s the title of one of her initial hit songs. Hopefully she doesn&#8217;t fall into the category of using the same password on every web site.</li>
</ul>

<h3>References</h3>

<ul>
<li><a href="http://dazeddigital.com/Music/article/5854/1/Gnash_Your_Teeth">Gnash Your Teeth</a></li>
<li><a href="http://earsucker.com/2009/11/16/lady-gagas-twitter-hacked/">Lady Gaga’s Twitter hacked?</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/persistent-xss-on-twitter-com/">Persistent XSS on Twitter.com</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/james-lipton-says-dont-tweet-your-junk/">James Lipton says &#8220;Don&#8217;t tweet your junk&#8221;</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/11/%e2%80%9chi-this-you-lol%e2%80%9d-twitter-attack-snares-kevin-mitnick/">“Hi. This you?? LOL” Twitter Attack Snares Kevin Mitnick</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/facebook%e2%80%99s-faith-a-new-scareware-attack/">Facebook’s Faith: A New Scareware Attack</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/09/breaking-twitter-authentication/">Breaking Twitter (authentication)</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/11/not-the-haus-of-gaga-too/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Perfect Crime, the perfect alibi: My Facebook Status</title>
		<link>http://praetorianprefect.com/archives/2009/11/the-perfect-crime-the-perfect-alibi-my-facebook-status/</link>
		<comments>http://praetorianprefect.com/archives/2009/11/the-perfect-crime-the-perfect-alibi-my-facebook-status/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 13:44:22 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Law]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[I fought the law]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=1618</guid>
		<description><![CDATA[The NY Times brings us the story of Rodney Bradford. He&#8217;s the 19 year old Brooklyn man whose lawyer, Robert Reuland, invoked one of the first known &#8220;Facebook alibis&#8221; in his defense of the 19 year old Bradford on what were a second set of robbery charges he was facing. Since the Facebook defense is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/facebook_kid.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/facebook_kid-150x150.jpg" alt="facebook_kid" title="facebook_kid" width="150" height="150" class="alignleft size-thumbnail wp-image-1676" /></a>The <a href="http://fort-greene.blogs.nytimes.com/2009/11/11/his-facebook-status-now-charges-dropped">NY Times</a> brings us the story of Rodney Bradford. He&#8217;s the 19 year old Brooklyn man whose lawyer, Robert Reuland, invoked one of the first known &#8220;Facebook alibis&#8221; in his defense of the 19 year old Bradford on what were a second set of robbery charges he was facing. Since the Facebook defense is now on the record, I&#8217;m going to lay out my plans for knocking over a liquor store without consequences.</p>

<p>At 11:49am on October 17th an update was made to Bradford&#8217;s Facebook profile: &#8220;WHERE MY IHOP?&#8221;, a message to his pregnant girlfriend. This update was one minute before two men were robbed at gun point in the Farragut Houses in Brooklyn where Bradford lives. At the time of this robbery, the robbery he faced charges for, Bradford claims he was sitting at the computer at his father&#8217;s apartment in Harlem making this Facebook update despite his being identified by a witness at the Farragut Houses.</p>

<blockquote>
  <p>&#8220;If it wasn&#8217;t for Facebook I&#8217;d still be on Rikers Island.&#8221; <br />Rodney Bradford</p>
</blockquote>

<p>So like any good defense attorney would, Reuland pointed out to Brooklyn District Attorney Lindsay Gerdes that his client could not possibly be in two places at the same time, and look, here is the evidence on Facebook that he was sitting at the computer at his father&#8217;s place. The DA subpoenaed Facebook to verify the location where the status update was made from, Facebook verified it, and the charges were dropped.</p>

<p><div id="attachment_1677" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/facebook_kid_homepage.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/facebook_kid_homepage-300x245.jpg" alt="The newly donned &quot;Facebook Kid&#039;s&quot; Facebook page." title="facebook_kid_homepage" width="300" height="245" class="size-medium wp-image-1677" /></a><p class="wp-caption-text">The Facebook Kids Facebook page.</p></div>
<br /><br />
Mr. Reuland does acknowledge that anyone who knew Bradford&#8217;s user name and password could make the updates. But he responds: “This implies a level of criminal genius that you would not expect from a young boy like this; he is not Dr. Evil,” and notes the Facebook alibi was just “the icing on the cake,”. But making the effort to subpoena Facebook and comments by Jonah Bruno, a spokesman for the Brooklyn Assistant DA&#8217;s office acknowledging that the Facebook component was a key reason for dropping the charges, indicate that the Facebook status update time played a predominant role in the decision by the district attorney&#8217;s office to drop the charges. Also remember that with the existing elements of the alibi, Bradford remained in jail on Rikers Island, it was when the Facebook piece came in that he was released.
<br /></p>

<h3>Facebook Magic</h3>

<pre><code>The district attorney subpoenaed Facebook to verify that the status update had actually been typed from 
a computer located at 71 West 118th Street in Harlem.
</code></pre>

<p>Source: <i><a href="http://fort-greene.blogs.nytimes.com/2009/11/11/his-facebook-status-now-charges-dropped/">NY Times</a></i></p>

<blockquote>
  <p>&#8220;Facebook saved my son.&#8221; Ernestine Bradford</p>
</blockquote>

<p>The above is interesting. It is interesting because there is no way Facebook could tell with certainty that an update was made from the computer at 71 West 118th Street. In fact they could only reasonably make such an educated guess through forensic evaluation of the computer in Harlem itself. They didn&#8217;t do that, they looked at their own information (likely some combination of site cookies read and web server logs) and decided that the update came from there. While IP (internet protocol) addresses used from the home are not technically static, they can remain the same assignment for days from an ISP providing cable, FIOS, or similar. So Facebook can say that the IP address of the party making the request to its web servers is the same as previous accesses and can approximate the geo-location of the IP. That assumes no use of a proxy or anonymizer.</p>

<h3>Technologists Lurking in the NYT Comments</h3>

<p>The comments from NY Times blog readers are telling. While some are ridiculous &#8211; <i>he probably just used his phone to make the update</i> (the phone browsers can usually be fingerprinted in the web server logs, the IP would show a phone network)- some are legitimate. Why couldn&#8217;t a friend have updated Facebook for him, maybe he used RDP to login (its built into Windows XP, just needs to be enabled), maybe VNC, maybe an SSH tunnel, and so on are all listed possibliities.</p>

<blockquote>
  <p>&#8220;This was just a very strong alibi&#8230;It reflects the pervasiveness that Web sites and social networking has on our lives.&#8221; <br />Bradford&#8217;s lawyer, Robert Reuland</p>
</blockquote>

<p>The problem (for a non-technical user) with VNC or RDP is that they need to be installed on most phones, and the SSH tunnel while not complicated would not be a readily available option to a non-computer literate person. RDP is on Windows XP, but it would have to be enabled, and his lawyer is telling us that his client is not a computer guy. The friend updating Facebook? That&#8217;s low tech and easy, but for my money I don&#8217;t want to involve any extra parties, collusion makes crime harder.</p>

<h3>The Perfect Crime</h3>

<p>So now that I know I can invoke the Facebook defense, how do I want to approach it? Let&#8217;s say I decide I want to knock over a liquor store. I have my mask and so forth, but I also want to establish my alibi, that I was 30 miles away at my computer doing some social networking on Facebook. I could get in remotely from my mobile device (VNC, RDP, etc.) but I don&#8217;t want to be worrying about that while I&#8217;m emptying the register. As I mentioned before, my buddies can&#8217;t keep a secret, so I&#8217;m not letting them update Facebook either.</p>

<p>So I started with the following PHP script using curl (JD McCloud, python guru, is groaning at the desk next to me over the use of PHP). I fired up <a href="http://www.owasp.org/index.php/OWASP_WebScarab_Project">WebScarab</a>, the great intercepting proxy from <a href="http://www.owasp.org">OWASP, the Open Web Application Security Project</a>, and captured the full HTTP header that is part of a Facebook status update request. Snagging the request URL, Facebook cookies, and POST options sent with the request, I setup the PHP script below to essentially replay a Facebook status update request.</p>

<p>Note that I&#8217;ve removed the content specific to my profile. I don&#8217;t have the script logging in to Facebook. If I needed to I would have, but fortunately Facebook has a &#8220;Keep me logged in&#8221; radial button on its homepage, so I didn&#8217;t bother.</p>

<pre><code>&lt;?php

$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5)
 Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)");

curl_setopt($ch, CURLOPT_COOKIE, 'datr=; s_vsn_facebookpoc_1=; __utma=; __utmz=.utmccn=
(referral)|utmcsr=|utmcct=|utmcmd=; s_vsn_facebookpocads_1=; locale=en_US; __qca=; x-referer=; 
cur_max_lag=; lsd=; h_user=; __utmc=; c_user=; lxe=; lxr=; sid=; xs=; presence=');

curl_setopt($ch, CURLOPT_POSTFIELDS,'action=PROFILE_UPDATE&amp;profile_id=&amp;status=I said where are my 
pancakes!&amp;target_id=&amp;app_id=&amp;&amp;composer_id=&amp;display_context=profile&amp;post_form_id=&amp;fb_dtsg=&amp;
_log_display_context=profile&amp;ajax_log=1&amp;post_form_id_source=AsyncRequest&amp;__a=1');

curl_setopt($ch, CURLOPT_URL, 'http://www.facebook.com:80/ajax/updatestatus.php');
curl_exec($ch);
?&gt;
</code></pre>

<p>Now I just add a Scheduled Task (Programs > Accessories > System Tools > Scheduled Tasks) or use <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/at.mspx">At</a> to run the program at the time I&#8217;m scheduled to do the stick up, and I&#8217;m all set. Facebook will note dutifully that a status update request came to them using the FireFox browser from an IP roughly around where I claimed to be. As long as no one actually checks my PC&#8230;</p>

<h3>Oh C&#8217;mon Now</h3>

<p>Yes I know what you&#8217;re thinking. I said that accessing the PC remotely was probably too complex (in reality I have no idea) for Mr. Bradford, and now I&#8217;m pitching writing scripts. I agree, if you are not a computer person, this would be out of reach. So how about another approach?</p>

<p><a href="http://coscripter.researchlabs.ibm.com/coscripter">CoSripter</a>, now owned by IBM, is pretty non-technical. Download a Firefox plugin, record your activities as you login to Facebook and update your status, and save the script that is generated. And if a person can&#8217;t follow those instructions, they can always watch the <a href="http://coscripter.researchlabs.ibm.com/coscripter/browse/video">video tutorial</a>. Here is the script that is automatically generated as I go through a login and status update on Facebook:</p>

<pre><code>    * go to “http://www.facebook.com/index.php”
    * pause 3600 seconds
    * enter your “e-mail address” into the “Email” textbox
    * enter your password into the “Keep me logged in Forgot your password?” textbox
    * click the “Login” button
    * click the “Profile” link
    * enter "I said where the hell are my pancakes" in the “What’s on your mind?” textbox
    * click the first “Share” button
</code></pre>

<p>Its fairly easy to see what we&#8217;re doing above, I&#8217;ve set up variable names for my e-mail and password, but even that is very straight forward, and its only if you want to protect your credentials. Since you have recorded everything that generates the script, you only have to do one manual change, the line &#8220;pause 3600 seconds&#8221;. Remember, my robbery is 30 miles away, so I&#8217;m running my script, but giving myself an hour to get myself over to the liquor store. At exactly one hour from the time I kicked this off in Firefox I&#8217;m grabbing twenties from the tray and Facebook is seeing an update from FireFox in their logs for user &#8220;me&#8221; with the status update above. Facebook dutifully reports that I couldn&#8217;t have committed the robbery, I was still wondering where my pancakes where.</p>

<h3>Facebook et al. and the Law</h3>

<p>As social networking has taken hold as a cultural phenomenon, so too will its use in the proceedings of the legal system. There have been other uses of Facebook and other social networking sites in legal proceedings that have a great deal more legitimacy. There is <a href="http://www.journal-news.net/page/content.detail/id/525232.html">the jackass in Pennsylvania who checked his Facebook status during a robbery</a> on the victim&#8217;s computer and left the page open. There&#8217;s the Indiana murder case where <a href="http://www.ediscoverylaw.com/2009/10/articles/case-summaries/indiana-supreme-court-rules-trial-court-properly-admitted-evidence-of-defendants-myspace-page-in-murder-trial/">a MySpace description</a> was used as character evidence. The things people write online can be used against them in employment or divorce cases.</p>

<p>But with all that said, nativity with social networking tools like Facebook must not be misinterpreted as an actual understanding of the way web applications and computers work. I hope Facebook with their technical understanding of the boundaries of their network responded to that subpoena with a voluminous explanation that what they were providing was in fact proof of very little, proof only that their web servers had received a request looking like this at a certain time. I hope that Robert Reuland is the only defense attorney who is able to pull a fast one (exactly what he is paid to do) presenting Facebook status updates as forensically sound and acceptable evidence of a person&#8217;s location. Finally, I hope Mr. Bradford gets his pancakes.</p>

<h3>What&#8217;s your approach?</h3>

<p>There are plenty of other ways to approach this, and thus go on a consequences free international crime spree thanks to Facebook. How are you going to approach it?</p>

<h3>Update</h3>

<p>Bradford hired a civil attorney, Herbert L. Schmell, who says that they&#8217;re &#8220;99.9 percent sure&#8221; that they will sue the city for a false arrest/imprisonment.</p>

<h3>References</h3>

<ul>
<li><a href="http://fort-greene.blogs.nytimes.com/2009/11/11/his-facebook-status-now-charges-dropped/">His Facebook Status Now? ‘Charges Dropped’</a></li>
<li><a href="http://www.nypost.com/p/news/local/brooklyn/facebook_alibi_saves_jailed_teen_FCfvxWbwZOC4CCcgmG8RbI#ixzz0WhEfVDNl">Facebook alibi saves jailed teen</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/scareware-purveyors-spammers-and-crooks-take-advantage-of-haiti-earthquake/">Scareware Purveyors, Spammers, and Crooks Take Advantage of Haiti Earthquake</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/">JUNOS (Juniper) Flaw Exposes Core Routers to Kernel Crash</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/forensics-beverages-aside-a-look-at-incident-response-tools/">Forensics: Beverages Aside, A Look at Incident Response Tools</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/11/the-perfect-crime-the-perfect-alibi-my-facebook-status/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Facebook’s Faith: A New Scareware Attack</title>
		<link>http://praetorianprefect.com/archives/2009/10/facebook%e2%80%99s-faith-a-new-scareware-attack/</link>
		<comments>http://praetorianprefect.com/archives/2009/10/facebook%e2%80%99s-faith-a-new-scareware-attack/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 21:22:43 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[capthca]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[non-technical]]></category>
		<category><![CDATA[scareware]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=684</guid>
		<description><![CDATA[On Thursday morning, AVG researcher Roger Thompson, after sourcing some spyware attacks to a series of Facebook profiles, noted that these few hundred profiles were showing up with the same profile image (seen at left) but different profile information.  The home video link on these profiles, belonging to Faith / Emily / whoever, points to the a web site that displays scareware dialogs.]]></description>
			<content:encoded><![CDATA[<div id="attachment_685" class="wp-caption alignleft" style="width: 196px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/faith.jpg"><img class="size-full wp-image-685" title="faith" src="http://praetorianprefect.com/wp-content/uploads/2009/10/faith.jpg" alt="Meet Faith...or Emily...or...the face of the new Facebook attack" width="186" height="247" /></a><p class="wp-caption-text">Meet Faith...or Emily...or...the face of the new Facebook attack</p></div>

<p>On Thursday morning, AVG researcher Roger Thompson, after sourcing some spyware attacks to a series of Facebook profiles, noted that these few hundred profiles were showing up with the same profile image (seen at left) but different profile information.  The home video link on these profiles, belonging to Faith / Emily / whoever, points to the a web site that displays scareware dialogs: <em>netmedtest.com/index.php?affid=30500</em>.</p>

<p>Clicking the video url opens up a browser dialog box suggesting the user has viruses on their PC, suggests a system’s check and opens up a scareware dialog. Scareware is software sold or downloaded via creating a perception on the part of the user of a usually non-existent threat to the user that is typically non-functional or malicious.</p>

<p>The URL itself is registered to accounts with temporary or throw away e-mail addresses, amusingly these services like spambob and mailinator that were intended to help uses avoid spam are used by bad actors as the registration and contact e-mails for registering malicious web site URL&#8217;s. The site <em>netmedtest</em> is hosted in Haifa, Israel.</p>

<h3>The Profile</h3>

<div id="attachment_690" class="wp-caption alignnone" style="width: 723px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/facebookattack_screen1.jpg"><img class="size-full wp-image-690" title="facebookattack_screen1" src="http://praetorianprefect.com/wp-content/uploads/2009/10/facebookattack_screen1.jpg" alt="The fake profile with video link." width="713" height="370" /></a><p class="wp-caption-text">The fake profile with video link.</p></div>

<div id="attachment_698" class="wp-caption alignnone" style="width: 279px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/facebookattack_screen2.jpg"><img class="size-full wp-image-698" title="facebookattack_screen2" src="http://praetorianprefect.com/wp-content/uploads/2009/10/facebookattack_screen2.jpg" alt="If you click the video link, you get this dialog." width="269" height="100" /></a><p class="wp-caption-text">If you click the video link, you get this dialog.</p></div>

<div id="attachment_699" class="wp-caption alignnone" style="width: 549px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/facebookattack_screen3.jpg"><img class="size-full wp-image-699" title="facebookattack_screen3" src="http://praetorianprefect.com/wp-content/uploads/2009/10/facebookattack_screen3.jpg" alt="And after that, you get this dialog." width="539" height="289" /></a><p class="wp-caption-text">And after that, you get this dialog.</p></div>

<h3>Facebook&#8217;s Response</h3>

<p>Facebook spokesman Simon Axten notes that Facebook is in the process of identifying the fake accounts so they can be disabled en masse. The actual URL used to serve the spyware has been blocked by Facebook as well as the major web browsers already.</p>

<h3>A Failure of CAPTCHA</h3>

<p>The fact that there are a couple of hundred of these profile pages could suggest an automated setup of the accounts, which would mean a bypass of the CAPTCHA authentication used in account setup on Facebook. Facebook uses <a href="http://recaptcha.net/learnmore.html">reCAPTCHA</a> specifically (a free service that is digitizing the NY Times at the same time they are validating that the user is actually human).</p>

<div id="attachment_701" class="wp-caption alignleft" style="width: 463px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/facebook_captcha_example.jpg"><img class="size-full wp-image-701" title="facebook_captcha_example" src="http://praetorianprefect.com/wp-content/uploads/2009/10/facebook_captcha_example.jpg" alt="Facebook CAPTCHA screen example." width="453" height="249" /></a><p class="wp-caption-text">Facebook CAPTCHA screen example.</p></div>

<p>CAPTCHA mechanisms have increasingly been compromised by both automated programmatic means such as the <a href="http://securitylabs.websense.com/content/Blogs/2919.aspx">method used to break Google’s CAPTCHA</a>, as well as through manual means where human interaction is used to solve CAPTCHA images (cheap sources of labor spend the day typing in CAPTCHA responses). Given that the fake profiles number in the hundreds, either method is realistically plausible. Facebook&#8217;s spokesperson indicates that they believe it is the second case: &#8220;Based on our investigation and the relatively small number of accounts created, we’re almost certain that they were created manually, rather than by a bot.&#8221;</p>

<p>At the time of writing this example bogus profile of Faith Price is still available on Facebook: <a href="http://www.facebook.com/people/Faith-Price/100000305282922">http://www.facebook.com/people/Faith-Price/100000305282922</a>.</p>

<h3>Countermeasures</h3>

<p>As previously stated, the major browsers have picked up the malicious link and are blocking it, and Facebook is aware of the problem, so for most users this is not a major issue at this point. As always, note that legitimate anti-virus companies will not advertise to you using scareware tactics and avoid clicking on links provided by persons you do not know.  In general avoid drive by downloads by not surfing the web with a user account that has administrative privileges.</p>

<h3>References</h3>

<ul>
<li><a href="http://thompson.blog.avg.com/">AVG Blogs &#8211; Roger Thompson</a></li>
<li><a href="http://recaptcha.net/learnmore.html">What is ReCAPTCHA?</a></li>
<li><a href="http://www.computerworld.com/s/article/9138780/Facebook_Captchas_broken_">Facebook Captchas broken?</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/persistent-xss-on-twitter-com/">Persistent XSS on Twitter.com</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/3473/">March&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/10/facebook%e2%80%99s-faith-a-new-scareware-attack/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
