<?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: Cookie.Json.js (a Mootools version of CookieJar)</title>
	<atom:link href="http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/</link>
	<description>Making stuff work on the other side of the request.</description>
	<lastBuildDate>Thu, 12 Jan 2012 20:00:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lalit.lab &#187; Blog Archive &#187; Cookie Jar: Yummy JSON Cookies (using Prototype)</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-30915</link>
		<dc:creator>lalit.lab &#187; Blog Archive &#187; Cookie Jar: Yummy JSON Cookies (using Prototype)</dc:creator>
		<pubDate>Sun, 15 Jun 2008 07:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-30915</guid>
		<description>[...] MooTools port [...]</description>
		<content:encoded><![CDATA[<p>[...] MooTools port [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-29914</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Thu, 08 May 2008 16:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-29914</guid>
		<description>Nice article Jonah.</description>
		<content:encoded><![CDATA[<p>Nice article Jonah.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah Dempcy</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-29896</link>
		<dc:creator>Jonah Dempcy</dc:creator>
		<pubDate>Thu, 08 May 2008 08:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-29896</guid>
		<description>Nice work!

I wrote an article on using the Hash.Cookie class in MooTools:
http://www.thetruetribe.com/2008/05/using-mootools-hashcookie-api.html</description>
		<content:encoded><![CDATA[<p>Nice work!</p>
<p>I wrote an article on using the Hash.Cookie class in MooTools:<br />
<a href="http://www.thetruetribe.com/2008/05/using-mootools-hashcookie-api.html" rel="nofollow">http://www.thetruetribe.com/2008/05/using-mootools-hashcookie-api.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-10908</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Tue, 15 May 2007 01:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-10908</guid>
		<description>Thanks ragaskar. We did indeed rename it when it moved into Mootools; my bad for not updating this post.</description>
		<content:encoded><![CDATA[<p>Thanks ragaskar. We did indeed rename it when it moved into Mootools; my bad for not updating this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ragaskar</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-10906</link>
		<dc:creator>ragaskar</dc:creator>
		<pubDate>Tue, 15 May 2007 00:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-10906</guid>
		<description>for those of us not following along closely, Cookie.Json was removed on the 22nd of April. Hash.Cookie apparently, should be used for these sorts of tasks. Not clear on whether this is a code-migration or rewrite -- but seeing as how this site turns up first for Cookie json mootools, I hope it&#039;ll help someone. 

See this changeset: http://dev.mootools.net/changeset/487</description>
		<content:encoded><![CDATA[<p>for those of us not following along closely, Cookie.Json was removed on the 22nd of April. Hash.Cookie apparently, should be used for these sorts of tasks. Not clear on whether this is a code-migration or rewrite &#8212; but seeing as how this site turns up first for Cookie json mootools, I hope it&#8217;ll help someone. </p>
<p>See this changeset: <a href="http://dev.mootools.net/changeset/487" rel="nofollow">http://dev.mootools.net/changeset/487</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffrey Schrab</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-9062</link>
		<dc:creator>Jeffrey Schrab</dc:creator>
		<pubDate>Fri, 20 Apr 2007 14:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-9062</guid>
		<description>...and that is what I had in mind (re: parseJSON).  Happy to be part of the conversation that lead to that finding its way in Mootools.</description>
		<content:encoded><![CDATA[<p>&#8230;and that is what I had in mind (re: parseJSON).  Happy to be part of the conversation that lead to that finding its way in Mootools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-8850</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Wed, 18 Apr 2007 03:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-8850</guid>
		<description>I&#039;ve updated the Cookie.Json class with a test to ensure that the code evaluated is valid Json.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve updated the Cookie.Json class with a test to ensure that the code evaluated is valid Json.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-8826</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Tue, 17 Apr 2007 22:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-8826</guid>
		<description>Ok, after a bit of thought, here&#039;s what I think of it. The security problem here isn&#039;t a direct vulnerability, but rather a possible exploit of an existing one; an escalation vulnerability.

Let&#039;s say that we have a site like cnet and on this page over in this corner, we have a cross site scripting vulnerability but there&#039;s nothing interesting on this page. Let&#039;s say we store user data in a Json cookie and this cookie is evaluated on every page of the site over. On some other page, the user enters credit card data I can exploit the cross site scripting problem to set a cookie and now I have escalated the cross site problem to every page on the site and now I can snoop your credit card.

So the solution, I think is to ensure that the json isn&#039;t a function, as you recommend. The parseJSON function found on json.org (http://www.json.org/json.js) would solve the problem. I&#039;m going to chat with Valerio about his thoughts on the subject.</description>
		<content:encoded><![CDATA[<p>Ok, after a bit of thought, here&#8217;s what I think of it. The security problem here isn&#8217;t a direct vulnerability, but rather a possible exploit of an existing one; an escalation vulnerability.</p>
<p>Let&#8217;s say that we have a site like cnet and on this page over in this corner, we have a cross site scripting vulnerability but there&#8217;s nothing interesting on this page. Let&#8217;s say we store user data in a Json cookie and this cookie is evaluated on every page of the site over. On some other page, the user enters credit card data I can exploit the cross site scripting problem to set a cookie and now I have escalated the cross site problem to every page on the site and now I can snoop your credit card.</p>
<p>So the solution, I think is to ensure that the json isn&#8217;t a function, as you recommend. The parseJSON function found on json.org (<a href="http://www.json.org/json.js" rel="nofollow">http://www.json.org/json.js</a>) would solve the problem. I&#8217;m going to chat with Valerio about his thoughts on the subject.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ethan Schlenker</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-8824</link>
		<dc:creator>Ethan Schlenker</dc:creator>
		<pubDate>Tue, 17 Apr 2007 21:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-8824</guid>
		<description>The javascript that they run could alter the page by changing variables while the page is running (as opposed to after the page has loaded, ala firebug or javascript: )

And &#039;dangerous access&#039; is really just a browser bug waiting to be exploited.  Google:  cross domain cookie injection   to see how frequent and widespread the  bugs are.  It just takes a visit to one bad site.  And while it by itself may not be an issue, why enable a potential atacker with more options?

Any thoughts on Jeffrey&#039;s suggestion of a JSON regex / validation?</description>
		<content:encoded><![CDATA[<p>The javascript that they run could alter the page by changing variables while the page is running (as opposed to after the page has loaded, ala firebug or javascript: )</p>
<p>And &#8216;dangerous access&#8217; is really just a browser bug waiting to be exploited.  Google:  cross domain cookie injection   to see how frequent and widespread the  bugs are.  It just takes a visit to one bad site.  And while it by itself may not be an issue, why enable a potential atacker with more options?</p>
<p>Any thoughts on Jeffrey&#8217;s suggestion of a JSON regex / validation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron N.</title>
		<link>http://www.clientcide.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/comment-page-1/#comment-8803</link>
		<dc:creator>Aaron N.</dc:creator>
		<pubDate>Tue, 17 Apr 2007 17:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://clientside.cnet.com/code-snippets/cookiejsonjs-a-mootools-version-of-cookiejar/#comment-8803</guid>
		<description>I&#039;m not a security expert either, but the scenarios you describe seem to me to really talk about other security issues that would have to be present for this exploit to work. A user can always execute any javascript they want (just use firebug or javascript: in the url field), and a javascript portscanner inserted into the cookie of a site admin implies you already have dangerous access to that user&#039;s machine...</description>
		<content:encoded><![CDATA[<p>I&#8217;m not a security expert either, but the scenarios you describe seem to me to really talk about other security issues that would have to be present for this exploit to work. A user can always execute any javascript they want (just use firebug or javascript: in the url field), and a javascript portscanner inserted into the cookie of a site admin implies you already have dangerous access to that user&#8217;s machine&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

