<?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: URL-based session is insecure and so is JavaBlogs.com</title>
	<atom:link href="http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/feed/" rel="self" type="application/rss+xml" />
	<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/</link>
	<description>no buzzwords allowed</description>
	<lastBuildDate>Wed, 10 Mar 2010 17:47:15 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: KT</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1801</link>
		<dc:creator>KT</dc:creator>
		<pubDate>Fri, 19 Sep 2008 11:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1801</guid>
		<description>You are mistaken about cookie protection.
The same-origin policy is not really working for scripts included using the &lt;script src=...&gt; tag and stealing cookies in a mashup is not that complicated, really. The only real cookie-protecting solution currently is the &lt;a href=&quot;http://www.codinghorror.com/blog/archives/001167.html&quot; rel=&quot;nofollow&quot;&gt;HttpOnly attribute&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>You are mistaken about cookie protection.<br />
The same-origin policy is not really working for scripts included using the &lt;script src=&#8230;&gt; tag and stealing cookies in a mashup is not that complicated, really. The only real cookie-protecting solution currently is the <a href="http://www.codinghorror.com/blog/archives/001167.html" rel="nofollow">HttpOnly attribute</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toomas Römer</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1766</link>
		<dc:creator>Toomas Römer</dc:creator>
		<pubDate>Wed, 17 Sep 2008 12:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1766</guid>
		<description>I guess the idea was that 3rd party JavaScript scripts can only access their own domain cookies.</description>
		<content:encoded><![CDATA[<p>I guess the idea was that 3rd party JavaScript scripts can only access their own domain cookies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joerg</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1756</link>
		<dc:creator>Joerg</dc:creator>
		<pubDate>Tue, 16 Sep 2008 09:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1756</guid>
		<description>You write that cookies cannot be accessed by JavaScript. What about the cookie property in JavaScript document objects ()? Am I missing something?</description>
		<content:encoded><![CDATA[<p>You write that cookies cannot be accessed by JavaScript. What about the cookie property in JavaScript document objects ()? Am I missing something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toomas Römer</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1487</link>
		<dc:creator>Toomas Römer</dc:creator>
		<pubDate>Wed, 03 Sep 2008 13:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1487</guid>
		<description>One solution to make it more secure is to tie the identifier with some other properties, IP or User-Agent. This isn&#039;t bulletproof but definitely will not let strangers hijack sessions by accident.</description>
		<content:encoded><![CDATA[<p>One solution to make it more secure is to tie the identifier with some other properties, IP or User-Agent. This isn&#8217;t bulletproof but definitely will not let strangers hijack sessions by accident.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1481</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 03 Sep 2008 07:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1481</guid>
		<description>An oldie but a goodie ;) There are two countermeasures I can think of:

- Open external links using a special &quot;hop page&quot;, i.e. don&#039;t like to http://example.org/ directly, use a redirect from a dedicated page, e.g.  http://www.example.com/goto?http://www.example.org/ - and make sure not to include the session ID ;)

- Attach a session to an IP and/or other client specifics (User-Agent or Accept-* HTTP headers come to mind) - this reduces the risk to some degree.</description>
		<content:encoded><![CDATA[<p>An oldie but a goodie ;) There are two countermeasures I can think of:</p>
<p>- Open external links using a special &#8220;hop page&#8221;, i.e. don&#8217;t like to <a href="http://example.org/" rel="nofollow">http://example.org/</a> directly, use a redirect from a dedicated page, e.g.  <a href="http://www.example.com/goto?http://www.example.org/" rel="nofollow">http://www.example.com/goto?http://www.example.org/</a> &#8211; and make sure not to include the session ID ;)</p>
<p>- Attach a session to an IP and/or other client specifics (User-Agent or Accept-* HTTP headers come to mind) &#8211; this reduces the risk to some degree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Willie Wheeler</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1479</link>
		<dc:creator>Willie Wheeler</dc:creator>
		<pubDate>Wed, 03 Sep 2008 06:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1479</guid>
		<description>Good post. Another thing to be careful about where URL-based session IDs are concerned is something called session fixation. The idea is that the attacker posts a link with a JSESSIONID (talking about Java here) to a forum, a comment, or some other public location. When unsuspecting users click on that link, the default behavior of the servlet container (or at least some servlet containers--I&#039;m not sure if this is mandated by the spec of if it&#039;s container-specific) is to create a session with that ID if one doesn&#039;t already exist. The attacker can check the site from time to time to try to hijack sessions since the attacker knows the session ID.  (Sites can defend against this by generating a new JSESSIONID if the user passes one in that doesn&#039;t already exist on the server.)</description>
		<content:encoded><![CDATA[<p>Good post. Another thing to be careful about where URL-based session IDs are concerned is something called session fixation. The idea is that the attacker posts a link with a JSESSIONID (talking about Java here) to a forum, a comment, or some other public location. When unsuspecting users click on that link, the default behavior of the servlet container (or at least some servlet containers&#8211;I&#8217;m not sure if this is mandated by the spec of if it&#8217;s container-specific) is to create a session with that ID if one doesn&#8217;t already exist. The attacker can check the site from time to time to try to hijack sessions since the attacker knows the session ID.  (Sites can defend against this by generating a new JSESSIONID if the user passes one in that doesn&#8217;t already exist on the server.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://dow.ngra.de/2008/09/02/url-based-session-is-insecure-and-so-is-javablogscom/comment-page-1/#comment-1469</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 03 Sep 2008 02:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://dow.ngra.de/?p=247#comment-1469</guid>
		<description>Its true, but if the users have cookies turned off its the only way to go. For instance Weblogic always uses URL based session id on the first connection, but if it gets the cookie back it discontinues the URL rewrite....drives search engine crawlers nuts!!! ;)</description>
		<content:encoded><![CDATA[<p>Its true, but if the users have cookies turned off its the only way to go. For instance Weblogic always uses URL based session id on the first connection, but if it gets the cookie back it discontinues the URL rewrite&#8230;.drives search engine crawlers nuts!!! ;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
