<?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>Security And Caffeine &#187; security</title>
	<atom:link href="http://www.securityandcaffeine.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.securityandcaffeine.com</link>
	<description>something witty here</description>
	<lastBuildDate>Thu, 12 Feb 2009 22:42:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Twitter &#8220;hacked&#8221; aka a nice example of CSRF</title>
		<link>http://www.securityandcaffeine.com/2009/02/12/twitter-hacked-aka-a-nice-example-of-csrf/</link>
		<comments>http://www.securityandcaffeine.com/2009/02/12/twitter-hacked-aka-a-nice-example-of-csrf/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 20:00:08 +0000</pubDate>
		<dc:creator>Mack Staples</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.securityandcaffeine.com/?p=59</guid>
		<description><![CDATA[Today marked an interesting day in Twitter history: a learning opportunity for the masses.  If you use Twitter, you probably saw one of your friends issue a tweet like the following: Don&#8217;t Click: http://tinyurl.com/amgzs6 And, probably like many of the people out there, you clicked the link.  By the way, if you clicked the link [...]]]></description>
			<content:encoded><![CDATA[<p>Today marked an interesting day in <a title="Twitter" href="http://www.twitter.com">Twitter</a> history: a learning opportunity for the masses.  If you use Twitter, you probably saw one of your friends issue a tweet like the following:</p>
<blockquote><p>Don&#8217;t Click: <a href="http://tinyurl.com/amgzs6">http://tinyurl.com/amgzs6</a></p></blockquote>
<p><strong></strong></p>
<p>And, probably like many of the people out there, you clicked the link.  By the way, if you clicked the link above, good job.  You&#8217;re now one of the tens, possibly hundreds, of thousands of Twitter users that clicked that.</p>
<p>And then, you found out that your Twitter account got HACKED!  Even prolific blogger Dooce clicked, and subsequently decided her account had been compromised.  <a title="Dooce's tweet" href="http://twitter.com/dooce/status/1203725230">Her followup tweet</a> was </p>
<blockquote><p>My twitter account got hacked. That last tweet was a hack, not my doing. Apologies for any inconvenience.</p></blockquote>
<p>&#8220;Inconvenience&#8221;?  Your inability to not click an unknown link resulted in all your readers&#8217; accounts being exposed to this.</p>
<p>Here&#8217;s the thing, though: your account is fine.  It wasn&#8217;t compromised.  At least, not in the way you are thinking.  I&#8217;m sure you&#8217;re thinking someone broke in, posted as you, and took off.  Now they have your username, password, measurements, shoe size, and even the length of your&#8230; hair.  I was going to say hair.  I promise.</p>
<p>Well, you&#8217;re wrong.  They don&#8217;t.</p>
<p>What happened?  Well, you clicked the link.  Alright, let&#8217;s get technical.</p>
<p>You&#8217;re on Twitter.  In fact, you&#8217;ve probably logged in to Twitter, so your browser has an authenticated session.  If you don&#8217;t know what that means, it&#8217;s simply that your browser has a piece of information that identifies you as you.  That info allows you access to your account, your tweets, your friends, and so on.  When you clicked the &#8220;Don&#8217;t Click&#8221; link, something happened: you opened a web page.  That&#8217;s all you saw.  The web page, redirected via <a title="TinyURL" href="http://www.tinyurl.com">TinyURL.com</a>, was <a title="So Obama!" href="http://www.umoor.eu/blog/yes-we-can.php">http://www.umoor.eu/blog/yes-we-can.php</a>.</p>
<p>Don&#8217;t worry, both the TinyURL and the yes-we-can.php pages have since been disabled.</p>
<p>Take page contained two thing of note: a button, which you could see, and an iframe, which you could not see.  The button was simple enough:</p>
<blockquote><p>button {position: absolute;top: 10px;left: 10px;z-index: 1;width: 120px;}</p></blockquote>
<p>It just sat there, looking bored.  The iframe was more interesting:</p>
<blockquote><p>iframe {position: absolute;width: 550px;height: 228px;top: -170px;left: -400px;z-index: 2;opacity: 0;filter: alpha(opacity=0);}</p></blockquote>
<p>The CSS, you&#8217;ll notice, sets a size and height, but positions it off to the side and makes it transparent.  You were not supposed to even know it&#8217;s there.  Now, source of the iframe is what matters.  Remember, it&#8217;s hidden, so you see none of this.</p>
<blockquote><p>iframe src=&#8221;http://twitter.com/home?status=Don&#8217;t Click: http://tinyurl.com/amgzs6&#8243; scrolling=&#8221;no&#8221;</p></blockquote>
<p>Since Twitter allows you to set you status by tacking the status on to the &#8220;home&#8221; URL, the iframe made the same request.  Backing up, you were (probably) authenticated to Twitter, so there were no problems simply updating your status.  From there, your friends saw it, clicked the link, and their own status was updated.  And it cascaded.</p>
<p>How bad did it cascade?  Here is the <a href="http://search.twitter.com/search?q=http%3A%2F%2Ftinyurl.com%2Famgzs6">Twitter search for just that URL</a>.</p>
<p>So, did you account get &#8220;hacked&#8221;?  Not exactly.  The account was <em>not</em> compromised or broken into, but it did perform actions on your behalf without you knowing about it.  Do you need to run and change your password?  Not this time.  How about, instead, you find out where links go before you trust them.  Then again, if you&#8217;re an Obama supporter, anything with &#8220;yes-we-can&#8221; in it will probably get you.  By the way, if you take a TinyURL and put &#8220;preview&#8221; in it, you can see where it goes without going there.  So , <a href="http://tinyurl.com/amgzs6"><span>http://tinyurl.com/amgzs6</span></a><span> becomes <a href="http://tinyurl.com/amgzs6">http://preview.tinyurl.com/amgzs6</a>.</span></p>
<p><strong></strong></p>
<p>Now, I want you to think about something: in this case, you were exploited and inadvertently posted to Twitter.  What if, instead of posting to Twitter, the iframe had tried to transfer money from your bank account?</p>
<p>And, most importantly, what can you do about it?  Learn where links are going before you click, and download and use <a title="CSRFblocker" href="http://www.hexsec.com/labs.html">CSRFblocker</a>, which will be available soon from the <a title="Hexagon Security" href="http://www.hexsec.com/">Hexagon Security think-tank</a>.</p>
<p>Credit: <a href="http://twitter.com/reverz">@reverz</a> and <a href="http://twitter.com/nathanhamiel">@nathanhamiel</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.securityandcaffeine.com%2F2009%2F02%2F12%2Ftwitter-hacked-aka-a-nice-example-of-csrf%2F&amp;linkname=Twitter%20%26%238220%3Bhacked%26%238221%3B%20aka%20a%20nice%20example%20of%20CSRF"><img src="http://www.securityandcaffeine.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.securityandcaffeine.com/2009/02/12/twitter-hacked-aka-a-nice-example-of-csrf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stealing data, with Apple&#8217;s Blessing</title>
		<link>http://www.securityandcaffeine.com/2008/09/11/stealing-data-with-apples-blessing/</link>
		<comments>http://www.securityandcaffeine.com/2008/09/11/stealing-data-with-apples-blessing/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 14:07:58 +0000</pubDate>
		<dc:creator>Mack Staples</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://securityandcaffeine.com/?p=28</guid>
		<description><![CDATA[I have a subscription to Pinch Media&#8217;s &#8220;New App&#8221; RSS feed.  As a result, I see literally every single new app that shows up, and I test many if not most of them.  Yesterday, I downloaded a new toy app and gave it a whirl.  The app is called &#8220;A.K.A&#8221;.  It takes your name, and gives [...]]]></description>
			<content:encoded><![CDATA[<p>I have a subscription to <a href="http://www.pinchmedia.com/">Pinch Media&#8217;s</a> <a href="http://feeds.feedburner.com/RecentlyAddedIphoneApplications-PinchMedia">&#8220;New App&#8221; RSS feed</a>.  As a result, I see literally every single new app that shows up, and I test many if not most of them.  Yesterday, I downloaded a new toy app and gave it a whirl.  The app is called &#8220;A.K.A&#8221;.  It takes your name, and gives you your Pirate, Jedi, and Porn Star name.  Very simple little app, and quite entertaining.</p>
<p>If you want to check out the app, <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=290033763&amp;mt=8">here is the iTunes store link</a>.  Because iTunes conveniently <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=290033766">provides a link to this information</a>, it&#8217;s easy to tell that the author, Robert de Jong, has not published any other apps.  Further, one <a href="http://whois.net">whois</a> and <a href="http://www.google.com/search?client=safari&amp;rls=en-us&amp;q=robert+de+jong&amp;ie=UTF-8&amp;oe=UTF-8">a google search</a> later, and you can tell that the author, based in Colorado, isn&#8217;t either of the other two Robert de Jongs out there; <a href="http://www.econ.ohio-state.edu/dejong/">one is in Ohio</a>, the <a href="http://www.robertdejong.com/">other in Canada</a>.  Oh, his &#8220;company&#8221; also <a href="http://www.dejoware.com">has a website</a>, though it looks like a sole-proprietership, meaning there has been no paperwork filed with the government to form an LLC or corporation.  Further evidence: I couldn&#8217;t find a DEJOware business listing, according to the Colorado business registry.  On his site, the only contact link is a mailto, which will allow you to send him an email.</p>
<p>So, where does that leave us?  Well, let&#8217;s look at the application itself.  I mentioned earlier that it takes in user input, and gives you back your &#8220;other&#8221; names.  Let&#8217;s give this a whirl, using some fake information (why will be covered in a minute).  Starting the app up, we go immediately to the Pirate name screen.  First and last name are requested.  &#8220;Johnny Appleseed&#8221; is already demo&#8217;d on the iTunes store, so let&#8217;s do another name.  How about &#8220;Robert de Jong&#8221;?  I put it in, and get back the pirate name of &#8220;&#8216;Salty&#8217; Squid Flint&#8221;.  Stripper name time!  Robert de Jong, in the stripper world, would be &#8220;Fantasia Heavencocker&#8221;.  Wow.  Now Jedi name time.  Hitting this tab expands the input, and, again as seen on iTunes, more information is requested.  First, last, mother&#8217;s maiden, and birthplace are requested.  Robert&#8217;s mother&#8217;s maiden name will be, for this demo, &#8220;Wozniak&#8221; (sorry Steve), and his birthplace will be Boulder.  I get back the very Jedi name of &#8220;Dej-Ro Wozbou&#8221;.</p>
<p>Dej-Ro Wozbou is parts of each element of data.  Three from last name, two from first name, three from mother&#8217;s maiden, and three form birthplace.  <strong>de J</strong>ong <strong>Ro</strong>bert <strong>Woz</strong>niak <strong>Bou</strong>lder.  See?</p>
<p>So, why would I use false information here?  Here&#8217;s what just happened: a previously unknown developer has created an application and published it <em>with Apple&#8217;s blessing</em>.  The application asks for your information, and does&#8230; we know not what with it.  The app could send your information, literally, anywhere.  Further, the information is all user-supplied, so there&#8217;s nothing that would make Apple unhappy (like rifling through your address book for your information).  No, we, the users, provide all the information it asks for.  And that&#8217;s the problem.  We just provided First Name, Last Name, Mother&#8217;s Maiden Name, and Birthplace to this application and, potentially, to this developer.  If those four pieces of information sound familiar, it&#8217;s because those are usually what stand between you and retrieving an account password almost anywhere.  &#8220;But he doesn&#8217;t know my username!&#8221; you cry.  Actually, most people will use FirstnameLastname as their account username, if it&#8217;s an important account.  Like banking.  Think about that.</p>
<p>Now, my disclaimer and CYA: I don&#8217;t know any of this for sure.  I haven&#8217;t monitored the network traffic to see if A.K.A is calling home.  I&#8217;m not even accusing A.K.A. or Robert de Jong of doing anything malicious.  The A.K.A. app happens to fit a model that could be used to steal information.  It is also &#8220;trusted&#8221; because Apple has blessed it.  Before you willingly hand any information over to an application, trusted or not, consider what could be done with that information.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.securityandcaffeine.com%2F2008%2F09%2F11%2Fstealing-data-with-apples-blessing%2F&amp;linkname=Stealing%20data%2C%20with%20Apple%26%238217%3Bs%20Blessing"><img src="http://www.securityandcaffeine.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.securityandcaffeine.com/2008/09/11/stealing-data-with-apples-blessing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->