<?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>Aten Labs &#187; 4square</title>
	<atom:link href="http://atenlabs.com/blog/tag/4square/feed/" rel="self" type="application/rss+xml" />
	<link>http://atenlabs.com/blog</link>
	<description>San Diego&#039;s Premier IT Security Consultancy</description>
	<lastBuildDate>Wed, 29 Feb 2012 19:14:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Paranoia, anybody?</title>
		<link>http://atenlabs.com/blog/paranoia-anybody/</link>
		<comments>http://atenlabs.com/blog/paranoia-anybody/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 02:37:08 +0000</pubDate>
		<dc:creator>Dan Tentler</dc:creator>
				<category><![CDATA[rants]]></category>
		<category><![CDATA[4square]]></category>
		<category><![CDATA[absurdity]]></category>
		<category><![CDATA[facepalm]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[getting]]></category>
		<category><![CDATA[knee jerk]]></category>
		<category><![CDATA[paranoia]]></category>
		<category><![CDATA[rob]]></category>
		<category><![CDATA[robbed]]></category>
		<category><![CDATA[someone]]></category>
		<category><![CDATA[using]]></category>

		<guid isPermaLink="false">http://atenlabs.com/blog/?p=99</guid>
		<description><![CDATA[So in a previous post, I discussed &#8220;Convergence Theory&#8220;, which is the concept that argues people will &#8220;go with the crowd&#8221;. There&#8217;s a new fad in town, and it&#8217;s all about ditching foursquare because you think you&#8217;re going to get robbed. In this case, frankly, I&#8217;m appalled. This is absurdity at its best. Lets all [...]]]></description>
			<content:encoded><![CDATA[<p>So in a previous post, I discussed &#8220;<a href="http://en.wikipedia.org/wiki/Crowd_psychology#Convergence_theory">Convergence Theory</a>&#8220;, which is the concept that argues people will &#8220;go with the crowd&#8221;. There&#8217;s a new fad in town, and it&#8217;s all about ditching foursquare because you think you&#8217;re going to get robbed.</p>
<p>In this case, frankly, I&#8217;m appalled. This is absurdity at its best. Lets all get on the paranoia choo-choo with <a href="http://mashable.com/2010/02/17/pleaserobme/">Jennifer Van Grove</a> and the silly website she&#8217;s blogging about, cancel our foursquare accounts, and go hide at home in fear. Sorry to call you out like this Jen, but this is purely knee-jerk baseless paranoia. If someone sees me IN THE PARKING LOT AT THE GROCERY STORE, then they also know I&#8217;m not home. This isn&#8217;t anything new.</p>
<p>The common complaint I have with blogposts and arguments like this is that people never think two steps ahead. Nobody ever considers engaging their foresight muscle and actually thinking this sort of thing through to conclusion.</p>
<p>I&#8217;m a security-minded person. That means I have to very often think like an attacker. I have to plan out &#8220;missions&#8221;, I have to completely exhaust all nefarious ideas and plotting in an effort to fortify the clients that hire me to make them more secure. This exercise allows me to put on an attackers hat and logistically consider courses of action in an effort to understand things like the frame of mind and context of an attacker.</p>
<p>In the last few weeks I&#8217;ve seen a lot of folks all of the sudden &#8220;realize&#8221; that when checking into foursquare this tells the internet that &#8220;you&#8217;re not at home&#8221;. Disappointingly enough the first thing that short-sighted people think is &#8220;OH GOD THIS MEANS EVERYONE KNOWS I&#8217;M NOT HOME. I&#8217;M GOING TO GET ROBBED!&#8221;. I cannot articulate using text exactly the style in which I face-palmed. To bring some clarity to those who have chosen to forego foresight, I&#8217;ve made this handy flow-chart. Have a look:</p>
<p><a href="http://atenlabs.com/blog/wp-content/uploads/2010/02/paranoid-foursquare.jpg"><img class="aligncenter size-medium wp-image-100" title="paranoid-foursquare" src="http://atenlabs.com/blog/wp-content/uploads/2010/02/paranoid-foursquare-241x300.jpg" alt="" width="241" height="300" /></a></p>
<p>Simply put: If you&#8217;re going to rob someone, you have to put a little thought into it. You may be shot. You may be caught on camera. You may have to deal with nosy neighbors. Do you even know who this person is or where they live? Think about it for more than 30 seconds. If you&#8217;re still convinced that foursquare will get you robbed, print this chart out, and put it over your display using a stapler.</p>
<p>Stop being paranoid. Stop following the crowd. Wake up.</p>
]]></content:encoded>
			<wfw:commentRss>http://atenlabs.com/blog/paranoia-anybody/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>foursquare sending passwords in the clear</title>
		<link>http://atenlabs.com/blog/foursquare-sending-passwords-in-the-clear/</link>
		<comments>http://atenlabs.com/blog/foursquare-sending-passwords-in-the-clear/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 19:38:22 +0000</pubDate>
		<dc:creator>Dan Tentler</dc:creator>
				<category><![CDATA[insight]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[training]]></category>
		<category><![CDATA[4sq]]></category>
		<category><![CDATA[4square]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[foursquare]]></category>
		<category><![CDATA[g1]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[packet]]></category>
		<category><![CDATA[sniffing]]></category>
		<category><![CDATA[zipline]]></category>

		<guid isPermaLink="false">http://atenlabs.com/blog/?p=87</guid>
		<description><![CDATA[In this case, I&#8217;ll be arguing: The easier it gets to write code(scripting, really), the sloppier it gets and the more insecure it gets. We can see this because of the prevalence of sql injection, cross site scripting and error handling in the ever expanding catalog of new sites appearing on the internet. I cite [...]]]></description>
			<content:encoded><![CDATA[<p>In this case, I&#8217;ll be arguing:</p>
<blockquote><p><em>The easier it gets to write code(scripting, really), the sloppier it gets and the more insecure it gets.</em></p></blockquote>
<p>We can see this because of the prevalence of sql injection, cross site scripting and error handling in the ever expanding catalog of new sites appearing on the internet.</p>
<p>I cite this from personal experience. As of late people seem to care more and more for &#8216;how pretty it is&#8217; and less about what actually happens behind the scenes.  I&#8217;m reminded of the 90s when video games were stuck in 256 color 320&#215;240, with bleeps and bloops for sound &#8211; if you didn&#8217;t have a good story people wouldn&#8217;t buy your game. Now <a href="http://escapistmagazine.com/videos/view/zero-punctuation" target="_blank">things are different.</a> All people seem to care about are the graphics, and the story, music, and gameplay is all phoned-in.</p>
<p>These days I see new tools and applications online that in most cases make me shudder. A friend of mine, <a href="http://twitter.com/quine" target="_blank">@quine</a> noticed something &#8211; the android foursquare application communicates unencrypted, using apache&#8217;s &#8216;basic&#8217; authentication.</p>
<p><span id="more-87"></span>For those of you who aren&#8217;t sure what that means, here&#8217;s the breakdown:</p>
<p>The most basic form of authentication apache uses is called &#8216;basic auth&#8217;. All it does is take your credentials and encode them using base64 &#8211; the same encoding used for email attachments. Encoding is not encryption. You can decode this in seconds. There are even apps that will do it for you if they see a base64 encoded string.</p>
<p>@quine asked me to do a packetsniff on my phone, so I plugged my G1 into my notebook, fired up adb and got a shell on my phone. Tcpdump -s 65535 -A -l -nnnvvv  showed me this</p>
<blockquote>
<div id="_mcePaste">11:18:35.553924 IP (tos 0&#215;0, ttl 64, id 54010, offset 0, flags [DF], proto TCP (6), length 286) 25.97.11.256.39819 &gt; 174.129.33.12.80: P, cksum 0xc5e2 (correct), 1:247(246) ack 1 win 2920</div>
<div id="_mcePaste">E&#8230;??@.@.r..a.?.!&#8230;.PDH?.????P..h??..GET /v1/user?mayor=0&amp;badges=0&amp;geolat=31.123456&amp;geolong=-110.123456&amp;geohacc=5000.0 HTTP/1.1</div>
<div id="_mcePaste">User-Agent: com.joelapenna.foursquared 2010011401</div>
<div id="_mcePaste">Host: api.foursquare.com</div>
<div id="_mcePaste">Connection: Keep-Alive</div>
<div id="_mcePaste">Authorization: Basic T2hUaGlua1lvdXJlOkNsZXZlckRvbnRjaGEK</div>
</blockquote>
<p>UHHH.. that &#8216;Authorization: Basic&#8217; line there are my credentials. Right along there with my GPS coordinates! They&#8217;re sent with nearly every request. In the clear! Wow &#8211; I&#8217;m never using my phone on unencrypted wifi again.</p>
<p>To decode base64 one must merely copy/paste the encoded string into any one of a handful of different decoders. We used this command line on osx:</p>
<blockquote><p>echo &#8216;&lt;base64 string&gt;&#8217; | openssl enc -base64 -d</p></blockquote>
<p>There are applications that exist now, like dsniff, which will deobfuscate the credentials when they&#8217;re seen on the lan or over the air. This is pretty bad. There&#8217;s no other way to put it. Thanks to <a href="http://twitter.com/jennyjenjen" target="_blank">@jennyjenjen</a> for meeting up with me to test it on the iphone, which uses the same API, and is just as vulnerable.</p>
<p><strong>My suggestion: </strong>If you&#8217;re going to use foursquare on your mobile device, make sure you&#8217;re not using open coffeeshop wifi spots, and you&#8217;re using your carriers 3g/cdma/gsm/etc internet connection. This will protect you from the potential of people sniffing credentials on your lan. Or, have a look at <a href="http://atenlabs.com/zipline">zipline</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://atenlabs.com/blog/foursquare-sending-passwords-in-the-clear/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

