<?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 for Martin&#039;s Weekend Coding</title>
	<atom:link href="http://blog.alutam.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alutam.com</link>
	<description>Sharing useful tips from my &#34;weekend projects&#34;</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:03:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Jersey and Cross-Site Request Forgery (CSRF) by Ward</title>
		<link>http://blog.alutam.com/2011/09/14/jersey-and-cross-site-request-forgery-csrf/comment-page-1/#comment-1273</link>
		<dc:creator>Ward</dc:creator>
		<pubDate>Fri, 03 Feb 2012 22:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=119#comment-1273</guid>
		<description>It looks like I misunderstood the previous article, sorry about that.</description>
		<content:encoded><![CDATA[<p>It looks like I misunderstood the previous article, sorry about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Jersey and Cross-Site Request Forgery (CSRF) by Ward</title>
		<link>http://blog.alutam.com/2011/09/14/jersey-and-cross-site-request-forgery-csrf/comment-page-1/#comment-1272</link>
		<dc:creator>Ward</dc:creator>
		<pubDate>Thu, 02 Feb 2012 22:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=119#comment-1272</guid>
		<description>Hi Martin,

I found the following articles mentioning a flow with this approach. Can you please comment on it?

http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails
https://docs.djangoproject.com/en/1.2/releases/1.2.5/#csrf-exception-for-ajax-requests</description>
		<content:encoded><![CDATA[<p>Hi Martin,</p>
<p>I found the following articles mentioning a flow with this approach. Can you please comment on it?</p>
<p><a href="http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails" rel="nofollow">http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails</a><br />
<a href="https://docs.djangoproject.com/en/1.2/releases/1.2.5/#csrf-exception-for-ajax-requests" rel="nofollow">https://docs.djangoproject.com/en/1.2/releases/1.2.5/#csrf-exception-for-ajax-requests</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Jersey and Cross-Site Request Forgery (CSRF) by andrew</title>
		<link>http://blog.alutam.com/2011/09/14/jersey-and-cross-site-request-forgery-csrf/comment-page-1/#comment-1269</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Wed, 25 Jan 2012 14:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=119#comment-1269</guid>
		<description>sorry for previous question, I assked too fast, I found solution</description>
		<content:encoded><![CDATA[<p>sorry for previous question, I assked too fast, I found solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Jersey and Cross-Site Request Forgery (CSRF) by andrew</title>
		<link>http://blog.alutam.com/2011/09/14/jersey-and-cross-site-request-forgery-csrf/comment-page-1/#comment-1268</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Wed, 25 Jan 2012 14:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=119#comment-1268</guid>
		<description>Stupid question, but how to register thie filter?</description>
		<content:encoded><![CDATA[<p>Stupid question, but how to register thie filter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reading Password-Protected ZIP Files in Java by hiblack</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-1267</link>
		<dc:creator>hiblack</dc:creator>
		<pubDate>Fri, 06 Jan 2012 03:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-1267</guid>
		<description>Thank you, it&#039;s great  :-)</description>
		<content:encoded><![CDATA[<p>Thank you, it&#8217;s great  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reading Password-Protected ZIP Files in Java by Martin</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-1265</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 01 Dec 2011 04:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-1265</guid>
		<description>You can use it in any way you want. If you are re-publishing the source code, referring back to this blog in a javadoc comment would be nice.</description>
		<content:encoded><![CDATA[<p>You can use it in any way you want. If you are re-publishing the source code, referring back to this blog in a javadoc comment would be nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reading Password-Protected ZIP Files in Java by Chris</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-1264</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 29 Nov 2011 15:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-1264</guid>
		<description>Hi Martin!

Thank you very much for your interesting blog!

We think about integrating your source code posted inside this blog entry &quot;Reading Password-Protected ZIP Files in Java&quot; into one of our applications intended to be finally used for production scenarios. Could you please let us know if you have any concerns regarding this approach? Please let us know if there are terms of a license or any other restrictions we might be aware of?

Your help is much appreciated!

Kind Regards,

Chris</description>
		<content:encoded><![CDATA[<p>Hi Martin!</p>
<p>Thank you very much for your interesting blog!</p>
<p>We think about integrating your source code posted inside this blog entry &#8220;Reading Password-Protected ZIP Files in Java&#8221; into one of our applications intended to be finally used for production scenarios. Could you please let us know if you have any concerns regarding this approach? Please let us know if there are terms of a license or any other restrictions we might be aware of?</p>
<p>Your help is much appreciated!</p>
<p>Kind Regards,</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reading Password-Protected ZIP Files in Java by Martin</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-1263</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Wed, 23 Nov 2011 18:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-1263</guid>
		<description>Well, I have been thinking for some time I&#039;d create an open source project for this and add the output stream as well - as I do see this simple post on my blog is getting lots of hits - so seems like it is quite useful. The problem with the output stream is that I won&#039;t be able to do it in a really streaming way because of the way how Java Zip output stream encodes the file - will have to read significant portion of the zip content into memory - so you will have to make sure your zip file is of a reasonable size or that you allocate enough heap. Will see if I get some time over the weekend... :)</description>
		<content:encoded><![CDATA[<p>Well, I have been thinking for some time I&#8217;d create an open source project for this and add the output stream as well &#8211; as I do see this simple post on my blog is getting lots of hits &#8211; so seems like it is quite useful. The problem with the output stream is that I won&#8217;t be able to do it in a really streaming way because of the way how Java Zip output stream encodes the file &#8211; will have to read significant portion of the zip content into memory &#8211; so you will have to make sure your zip file is of a reasonable size or that you allocate enough heap. Will see if I get some time over the weekend&#8230; :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reading Password-Protected ZIP Files in Java by faheem</title>
		<link>http://blog.alutam.com/2009/10/31/reading-password-protected-zip-files-in-java/comment-page-1/#comment-1262</link>
		<dc:creator>faheem</dc:creator>
		<pubDate>Wed, 23 Nov 2011 15:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=102#comment-1262</guid>
		<description>Hi Martin

Congratulations! your program has become a defacto standard to decrypt password-protected zip files.

But my counterparts are expecting me now to send them PKWare encrypted zip files, after an extensive search I could find java programs which uses AES encryption but not PKWare.

I am in gr8 need of  ZipEncryptOutputStream :(

Any help ??</description>
		<content:encoded><![CDATA[<p>Hi Martin</p>
<p>Congratulations! your program has become a defacto standard to decrypt password-protected zip files.</p>
<p>But my counterparts are expecting me now to send them PKWare encrypted zip files, after an extensive search I could find java programs which uses AES encryption but not PKWare.</p>
<p>I am in gr8 need of  ZipEncryptOutputStream :(</p>
<p>Any help ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Jersey and Cross-Site Request Forgery (CSRF) by Justin</title>
		<link>http://blog.alutam.com/2011/09/14/jersey-and-cross-site-request-forgery-csrf/comment-page-1/#comment-1260</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Thu, 03 Nov 2011 23:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.alutam.com/?p=119#comment-1260</guid>
		<description>In the first reference it states:

These technologies can set custom HTTP headers, but
have security policies built in to prevent web sites from sending requests to each other
unless specifically allowed by policy.

The key thing here is &#039;web sites&#039;, what if the you are trying to protect your REST endpoints from CSRF attacks that originate from a browser that you have established trust with. You can&#039;t drop the request to the end point since it comes the same machine!

RESTful services if they remain stateless (which they must to be called RESTful) are forced to trust the browser. If the browser is comprimised then there is nothing that can protect the services.

I have yet to see an argument that can convince me that you could build a html + javascript + REST application that is secure.</description>
		<content:encoded><![CDATA[<p>In the first reference it states:</p>
<p>These technologies can set custom HTTP headers, but<br />
have security policies built in to prevent web sites from sending requests to each other<br />
unless specifically allowed by policy.</p>
<p>The key thing here is &#8216;web sites&#8217;, what if the you are trying to protect your REST endpoints from CSRF attacks that originate from a browser that you have established trust with. You can&#8217;t drop the request to the end point since it comes the same machine!</p>
<p>RESTful services if they remain stateless (which they must to be called RESTful) are forced to trust the browser. If the browser is comprimised then there is nothing that can protect the services.</p>
<p>I have yet to see an argument that can convince me that you could build a html + javascript + REST application that is secure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

