<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>jos442's blog &#187; cookies</title>
	<atom:link href="http://jos442.wordpress.com/tag/cookies/feed/" rel="self" type="application/rss+xml" />
	<link>http://jos442.wordpress.com</link>
	<description>Ruby on Rails and web development</description>
	<lastBuildDate>Wed, 28 Nov 2007 16:23:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='jos442.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3842d24555ad56bebbb1210cb5701d25?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>jos442's blog &#187; cookies</title>
		<link>http://jos442.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jos442.wordpress.com/osd.xml" title="jos442&#8217;s blog" />
		<item>
		<title>Rails 2.0 security</title>
		<link>http://jos442.wordpress.com/2007/11/26/rails-20-security/</link>
		<comments>http://jos442.wordpress.com/2007/11/26/rails-20-security/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 22:06:07 +0000</pubDate>
		<dc:creator>jos442</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://jos442.wordpress.com/2007/11/26/rails-20-security/</guid>
		<description><![CDATA[
I&#8217;ve been taking a glance at Rails 2.0 new session storage. Hongli points out in his blog that cookies are not stored anymore as files in Rails 2.0. This makes the design more RESTful, as long as no state is kept in the server side.
Instead, all the session data is supplied by the client in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jos442.wordpress.com&blog=2206156&post=4&subd=jos442&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://jos442.files.wordpress.com/2007/11/cookie_narrowweb__200x277.jpg" title="Cookie monster"><img src="http://jos442.files.wordpress.com/2007/11/cookie_narrowweb__200x277.thumbnail.jpg" alt="Cookie monster" align="right" /></a></p>
<p>I&#8217;ve been taking a glance at Rails 2.0 new session storage. Hongli points out in his blog that <a href="http://izumi.plan99.net/blog/index.php/2007/11/25/rails-20-cookie-session-store-and-security/">cookies are not stored anymore as files in Rails 2.0</a>. This makes the design more RESTful, as long as no state is kept in the server side.</p>
<p>Instead, all the session data is supplied by the client in the cookie. How? The session data is validated with a checksum that is generated using an application password.</p>
<p>This implies that session data is public, though it can&#8217;t be changed as long as  the application password is kept secret.</p>
<p>We are subject to brute force attacks and session replay attacks. There&#8217;s currently <a href="http://izumi.plan99.net/blog/index.php/2007/11/26/rails-20-cookiestore-insecure-after-all-because/">a flaw</a> that makes brute force attacks easy, although it should be fixed soon.</p>
<p>Also, I have to point out that before I read his post I ignored that all cookie-based session stores were subject to session replay attacks, and the only solution is communication encryption through, e.g., SSL.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jos442.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jos442.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jos442.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jos442.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jos442.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jos442.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jos442.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jos442.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jos442.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jos442.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jos442.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jos442.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jos442.wordpress.com&blog=2206156&post=4&subd=jos442&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jos442.wordpress.com/2007/11/26/rails-20-security/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/efb470329d5342e1b54a9338ceb330c6?s=96&#38;d=identicon" medium="image">
			<media:title type="html">jos442</media:title>
		</media:content>

		<media:content url="http://jos442.files.wordpress.com/2007/11/cookie_narrowweb__200x277.thumbnail.jpg" medium="image">
			<media:title type="html">Cookie monster</media:title>
		</media:content>
	</item>
	</channel>
</rss>