<?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: Securing your JSON</title>
	<atom:link href="http://ajaxian.com/archives/securing-your-json/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/securing-your-json</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: SilverTab</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248189</link>
		<dc:creator>SilverTab</dc:creator>
		<pubDate>Thu, 15 Mar 2007 00:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248189</guid>
		<description>mmm as the first poster said, I think the key is to being protected against things like CSRF in the first place (with temporary tokens for example)... trying to protect the arrays will not fix the bigger issue...?</description>
		<content:encoded><![CDATA[<p>mmm as the first poster said, I think the key is to being protected against things like CSRF in the first place (with temporary tokens for example)&#8230; trying to protect the arrays will not fix the bigger issue&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Arms</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248187</link>
		<dc:creator>Luke Arms</dc:creator>
		<pubDate>Wed, 14 Mar 2007 23:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248187</guid>
		<description>As has already been noted, this fixes nothing if the cracker doesn&#039;t run it on evil.com. And adding the script to JSON replies turns JSON into JavaScript, which breaks stuff. *sigh*</description>
		<content:encoded><![CDATA[<p>As has already been noted, this fixes nothing if the cracker doesn&#8217;t run it on evil.com. And adding the script to JSON replies turns JSON into JavaScript, which breaks stuff. *sigh*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bas</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248182</link>
		<dc:creator>Bas</dc:creator>
		<pubDate>Wed, 14 Mar 2007 20:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248182</guid>
		<description>I meant crackers :)</description>
		<content:encoded><![CDATA[<p>I meant crackers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bas</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248181</link>
		<dc:creator>Bas</dc:creator>
		<pubDate>Wed, 14 Mar 2007 20:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248181</guid>
		<description>The main reason I wrote this article is because I wanted to show that a hack like the one Joe Walker showed us isnâ€™t making JSON more insecure than it already is. I am aware of the fact that hackers can break this fix like a snap. And I totally agree with Joe: I believe that JSON is unsafe for anything but public data unless you are using unpredictable URLs. Like you said, this is an experiment...</description>
		<content:encoded><![CDATA[<p>The main reason I wrote this article is because I wanted to show that a hack like the one Joe Walker showed us isnâ€™t making JSON more insecure than it already is. I am aware of the fact that hackers can break this fix like a snap. And I totally agree with Joe: I believe that JSON is unsafe for anything but public data unless you are using unpredictable URLs. Like you said, this is an experiment&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248175</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 14 Mar 2007 18:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248175</guid>
		<description>Anything that uses delayed execution, a la setInterval, to protect against a security hole trades a security hole for a race condition.</description>
		<content:encoded><![CDATA[<p>Anything that uses delayed execution, a la setInterval, to protect against a security hole trades a security hole for a race condition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Giammarchi</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248172</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Wed, 14 Mar 2007 16:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248172</guid>
		<description>P.S. Bas, &lt;em&gt;what a post&lt;/em&gt; was for Dion Almaer choice, not for your exepriment. You&#039;re obviously free to try to increase security with every kind of function but in this case if You say that someone should use a delayed or interval function to apply the hack I can replay that if &quot;He&quot; can use code he can do everything and change every function, your one too.
Regards</description>
		<content:encoded><![CDATA[<p>P.S. Bas, <em>what a post</em> was for Dion Almaer choice, not for your exepriment. You&#8217;re obviously free to try to increase security with every kind of function but in this case if You say that someone should use a delayed or interval function to apply the hack I can replay that if &#8220;He&#8221; can use code he can do everything and change every function, your one too.<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Giammarchi</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248169</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Wed, 14 Mar 2007 16:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248169</guid>
		<description>&lt;blockquote&gt;Iâ€™m not saying this is protected json from being read by hackers&lt;/blockquote&gt;
You&#039;re not showing us anything that increase protection and please, call them cracker, not hacker. bye</description>
		<content:encoded><![CDATA[<blockquote><p>Iâ€™m not saying this is protected json from being read by hackers</p></blockquote>
<p>You&#8217;re not showing us anything that increase protection and please, call them cracker, not hacker. bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bas</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248165</link>
		<dc:creator>Bas</dc:creator>
		<pubDate>Wed, 14 Mar 2007 15:32:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248165</guid>
		<description>And when one give the applyArrayFix some random name? 
â€¦ what a comment â€¦ :/

I&#039;m not saying this is protected json from being read by hackers, but at least it tries to do something.</description>
		<content:encoded><![CDATA[<p>And when one give the applyArrayFix some random name?<br />
â€¦ what a comment â€¦ :/</p>
<p>I&#8217;m not saying this is protected json from being read by hackers, but at least it tries to do something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea Giammarchi</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248163</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Wed, 14 Mar 2007 14:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248163</guid>
		<description>&lt;blockquote&gt;hacker can use a delayed or interval function to apply the hack, so basically each time you touch an Array object youâ€™ve to apply the fix to be sure itâ€™s safe to send data&lt;/blockquote&gt;
setInterval(function(){applyArrayFix = applyArrayHack}, 1);
... what a post ... :/</description>
		<content:encoded><![CDATA[<blockquote><p>hacker can use a delayed or interval function to apply the hack, so basically each time you touch an Array object youâ€™ve to apply the fix to be sure itâ€™s safe to send data</p></blockquote>
<p>setInterval(function(){applyArrayFix = applyArrayHack}, 1);<br />
&#8230; what a post &#8230; :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathar Leichoz</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248158</link>
		<dc:creator>Nathar Leichoz</dc:creator>
		<pubDate>Wed, 14 Mar 2007 13:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248158</guid>
		<description>Two things wrong with this fix:

1) The stealing trick, which this is supposed to protect against, which involved overriding the Array prototype, is meant to be performed on the hacker&#039;s website. The Array protection method suggested above also has to be performed on the hacker&#039;s website in order for the protection to work, and so good luck getting the hacker to insert that code in their own website.

2) To get around point 1, one could insert that code by merging it as part of the JSON. But then it becomes an arms race as the hacker could override the browser functions to prevent you from creating an iframe and hence still preserve their malicious Array prototype.</description>
		<content:encoded><![CDATA[<p>Two things wrong with this fix:</p>
<p>1) The stealing trick, which this is supposed to protect against, which involved overriding the Array prototype, is meant to be performed on the hacker&#8217;s website. The Array protection method suggested above also has to be performed on the hacker&#8217;s website in order for the protection to work, and so good luck getting the hacker to insert that code in their own website.</p>
<p>2) To get around point 1, one could insert that code by merging it as part of the JSON. But then it becomes an arms race as the hacker could override the browser functions to prevent you from creating an iframe and hence still preserve their malicious Array prototype.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uriel katz</title>
		<link>http://ajaxian.com/archives/securing-your-json/comment-page-1#comment-248153</link>
		<dc:creator>uriel katz</dc:creator>
		<pubDate>Wed, 14 Mar 2007 11:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2209#comment-248153</guid>
		<description>why going around the problem,the problem is that some on run malicious code on your site when he doesn`t should have,you need to protect yourself from that not from the effects of that problem.</description>
		<content:encoded><![CDATA[<p>why going around the problem,the problem is that some on run malicious code on your site when he doesn`t should have,you need to protect yourself from that not from the effects of that problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

