<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Content-Disposition is not a security mechanism</title>
	<atom:link href="http://i8jesus.com/?feed=rss2&#038;p=64" rel="self" type="application/rss+xml" />
	<link>http://i8jesus.com/?p=64</link>
	<description>because arshan's too cheap to license OneNote</description>
	<lastBuildDate>Wed, 01 Sep 2010 06:10:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Aditya K Sood</title>
		<link>http://i8jesus.com/?p=64&#038;cpage=1#comment-18281</link>
		<dc:creator>Aditya K Sood</dc:creator>
		<pubDate>Thu, 30 Jul 2009 07:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://i8jesus.com/?p=64#comment-18281</guid>
		<description>Hi

The stature &quot;content-Disposition&quot; greatly depends on the design as well as implementation level. A paper has been released on &quot;Silent HTTP Form Repurposing attacks through PDF&quot;.

You can find the paper at

http://secniche.org/papers/SNS_09_03_PDF_Silent_Form_Re_Purp_Attack.pdf

The overall point is to to trace down the artifacts of HTTP header implementation and relative impacts on the helper software&#039;s.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>The stature &#8220;content-Disposition&#8221; greatly depends on the design as well as implementation level. A paper has been released on &#8220;Silent HTTP Form Repurposing attacks through PDF&#8221;.</p>
<p>You can find the paper at</p>
<p><a href="http://secniche.org/papers/SNS_09_03_PDF_Silent_Form_Re_Purp_Attack.pdf" rel="nofollow">http://secniche.org/papers/SNS_09_03_PDF_Silent_Form_Re_Purp_Attack.pdf</a></p>
<p>The overall point is to to trace down the artifacts of HTTP header implementation and relative impacts on the helper software&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arshan dabirsiaghi</title>
		<link>http://i8jesus.com/?p=64&#038;cpage=1#comment-17834</link>
		<dc:creator>arshan dabirsiaghi</dc:creator>
		<pubDate>Mon, 27 Jul 2009 14:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://i8jesus.com/?p=64#comment-17834</guid>
		<description>The E4X stuff is terrifying to me. 

/me hopes IE picks it up so we can write a 1,000 OWA exploits</description>
		<content:encoded><![CDATA[<p>The E4X stuff is terrifying to me. </p>
<p>/me hopes IE picks it up so we can write a 1,000 OWA exploits</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kuza55</title>
		<link>http://i8jesus.com/?p=64&#038;cpage=1#comment-17823</link>
		<dc:creator>kuza55</dc:creator>
		<pubDate>Mon, 27 Jul 2009 09:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://i8jesus.com/?p=64#comment-17823</guid>
		<description>Actually we talked about the same issue in Google Gears, since it was a bit more fun (E4X stylez, take that Watchfire!).

Mainly because after mentioning the Flash issue as an aside at Bluehat no-one blinked and the official response from Adobe was &quot;yep, that&#039;s how Flash works&quot;, I did a whole talk about that and similar SOP stuff: http://kuza55.blogspot.com/2008/09/its-been-while.html

I hadn&#039;t checked the Java patch, so I&#039;m surprised that Content-Disposition isn&#039;t checked, since Flash does check it now. I might have to see if Gmail serves jar files with the appropriate Content-Type /grin

One interesting thing is that Content-Disposition: attachment is somewhat odd in IE, in that if the user clicks open, it runs in the context of the site. This was part of the local machine lock-down, but iirc, scripts don&#039;t run by default on file:// URIs in IE, and in Firefox you can&#039;t read files outside the directory you&#039;re executing in and can&#039;t read the directory listing of the page you&#039;re on, so steps are being taken to prevent this. (I found this out, right about when I sat down to write that .html trojan, so trust me, I&#039;m just as pissed off as the next hacker.)

Also, CSRF tokens need to be regenerated between sessions, not the unpredictable attachment ids that Gmail uses, because otherwise hackers get tricky and write exploits, I&#039;d release code to prove it, but then I&#039;d burn a whole lot of small, but useful bugs in browsers &amp; Gmail.

There&#039;s tonnes of file-API related bugs, a bunch of crazy italians published some good articles on PHP in particular at http://ush.it/ but I&#039;m sure you&#039;ve seen them...

Personally, the few sites I&#039;ve seen that had file uploads and weren&#039;t owned in 60 seconds...stored files in a database or at least outside outside the web root, stripped of ..s, slashes and NULLs and served via a wrapper page, a variation of this is storing them in another partition, and using a virtual directory mapping to them and disabling all possible ways of executing code. Of course these all still had xss, but what non-static website doesn&#039;t at some point?

Browsers are fucked.
 - Alex</description>
		<content:encoded><![CDATA[<p>Actually we talked about the same issue in Google Gears, since it was a bit more fun (E4X stylez, take that Watchfire!).</p>
<p>Mainly because after mentioning the Flash issue as an aside at Bluehat no-one blinked and the official response from Adobe was &#8220;yep, that&#8217;s how Flash works&#8221;, I did a whole talk about that and similar SOP stuff: <a href="http://kuza55.blogspot.com/2008/09/its-been-while.html" rel="nofollow">http://kuza55.blogspot.com/2008/09/its-been-while.html</a></p>
<p>I hadn&#8217;t checked the Java patch, so I&#8217;m surprised that Content-Disposition isn&#8217;t checked, since Flash does check it now. I might have to see if Gmail serves jar files with the appropriate Content-Type /grin</p>
<p>One interesting thing is that Content-Disposition: attachment is somewhat odd in IE, in that if the user clicks open, it runs in the context of the site. This was part of the local machine lock-down, but iirc, scripts don&#8217;t run by default on file:// URIs in IE, and in Firefox you can&#8217;t read files outside the directory you&#8217;re executing in and can&#8217;t read the directory listing of the page you&#8217;re on, so steps are being taken to prevent this. (I found this out, right about when I sat down to write that .html trojan, so trust me, I&#8217;m just as pissed off as the next hacker.)</p>
<p>Also, CSRF tokens need to be regenerated between sessions, not the unpredictable attachment ids that Gmail uses, because otherwise hackers get tricky and write exploits, I&#8217;d release code to prove it, but then I&#8217;d burn a whole lot of small, but useful bugs in browsers &amp; Gmail.</p>
<p>There&#8217;s tonnes of file-API related bugs, a bunch of crazy italians published some good articles on PHP in particular at <a href="http://ush.it/" rel="nofollow">http://ush.it/</a> but I&#8217;m sure you&#8217;ve seen them&#8230;</p>
<p>Personally, the few sites I&#8217;ve seen that had file uploads and weren&#8217;t owned in 60 seconds&#8230;stored files in a database or at least outside outside the web root, stripped of ..s, slashes and NULLs and served via a wrapper page, a variation of this is storing them in another partition, and using a virtual directory mapping to them and disabling all possible ways of executing code. Of course these all still had xss, but what non-static website doesn&#8217;t at some point?</p>
<p>Browsers are fucked.<br />
 &#8211; Alex</p>
]]></content:encoded>
	</item>
</channel>
</rss>
