<?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: Why PHP&#8217;s $_REQUEST is dangerous</title>
	<atom:link href="http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/feed/" rel="self" type="application/rss+xml" />
	<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/</link>
	<description>One developers blog.</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:12:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-68989</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 12 Oct 2011 15:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-68989</guid>
		<description>I don&#039;t understand why everyone is down-talking this article.  It&#039;s still educational.  And yes, if the $_COOKIE value was removed from $_REQUEST, that would be awesome, and I would change a lot of my code so I didn&#039;t have to look for both $_GET and $_POST.  But for now, it will remain the same.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why everyone is down-talking this article.  It&#8217;s still educational.  And yes, if the $_COOKIE value was removed from $_REQUEST, that would be awesome, and I would change a lot of my code so I didn&#8217;t have to look for both $_GET and $_POST.  But for now, it will remain the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wil Moore III</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-66792</link>
		<dc:creator>Wil Moore III</dc:creator>
		<pubDate>Tue, 04 Oct 2011 16:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-66792</guid>
		<description>The arguments that &quot;GET/POST&quot; will _never_ be overwritten are shortsighted at best. The simple fact that this is something that can be set in php.ini (most ridiculous _feature_ of a programming language BTW) means you should still steer clear. If you never ship software or never have to support software in the wild, this is easy to dismiss; however, it is a problem. Would you really want to potentially introduce subtle bugs and security gaps?</description>
		<content:encoded><![CDATA[<p>The arguments that &#8220;GET/POST&#8221; will _never_ be overwritten are shortsighted at best. The simple fact that this is something that can be set in php.ini (most ridiculous _feature_ of a programming language BTW) means you should still steer clear. If you never ship software or never have to support software in the wild, this is easy to dismiss; however, it is a problem. Would you really want to potentially introduce subtle bugs and security gaps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Farmer</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-23157</link>
		<dc:creator>Web Farmer</dc:creator>
		<pubDate>Thu, 02 Dec 2010 07:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-23157</guid>
		<description>hi folks,

I&#039;m not agree with &quot;Any cookie ever set on a users machine will always override any GET or POST data -- creating &quot;sticky&quot; variable data&quot;

Because in php.ini
variables_order = &quot;GPCS&quot;(wrt php 5.2.8)

So GET/POST form value never ever be overwritten by Cookie.

Thanks,
Sachin Pethani</description>
		<content:encoded><![CDATA[<p>hi folks,</p>
<p>I&#8217;m not agree with &#8220;Any cookie ever set on a users machine will always override any GET or POST data &#8212; creating &#8220;sticky&#8221; variable data&#8221;</p>
<p>Because in php.ini<br />
variables_order = &#8220;GPCS&#8221;(wrt php 5.2.8)</p>
<p>So GET/POST form value never ever be overwritten by Cookie.</p>
<p>Thanks,<br />
Sachin Pethani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 為何在 PHP 中盡量不要使用 $_REQUEST &#187; Blogs of OpenFoundry - OpenFoundry團隊非官方網誌串聯平台</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-21560</link>
		<dc:creator>為何在 PHP 中盡量不要使用 $_REQUEST &#187; Blogs of OpenFoundry - OpenFoundry團隊非官方網誌串聯平台</dc:creator>
		<pubDate>Sun, 07 Nov 2010 02:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-21560</guid>
		<description>[...] Why PHP’s $_REQUEST is dangerous [...]</description>
		<content:encoded><![CDATA[<p>[...] Why PHP’s $_REQUEST is dangerous [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 為何在 PHP 中盡量不要使用 $_REQUEST &#171; Ant&#39;s ATField</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-21538</link>
		<dc:creator>為何在 PHP 中盡量不要使用 $_REQUEST &#171; Ant&#39;s ATField</dc:creator>
		<pubDate>Sat, 06 Nov 2010 18:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-21538</guid>
		<description>[...] Why PHP’s $_REQUEST is dangerous [...]</description>
		<content:encoded><![CDATA[<p>[...] Why PHP’s $_REQUEST is dangerous [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Onto Development</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-19758</link>
		<dc:creator>Onto Development</dc:creator>
		<pubDate>Fri, 08 Oct 2010 16:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-19758</guid>
		<description>The example in this article of Cookie abuse misses a more important development point.

&quot;If an attacker some how managed to set a cookie -- perhaps through some Javascript injection ...&quot;

Sounds like you have bigger issues on your hands if this happens. Lock down your user content and you won&#039;t have this problem or the other hundreds of malicious injections, many much worse than a simple prevention of use of your site.</description>
		<content:encoded><![CDATA[<p>The example in this article of Cookie abuse misses a more important development point.</p>
<p>&#8220;If an attacker some how managed to set a cookie &#8212; perhaps through some Javascript injection &#8230;&#8221;</p>
<p>Sounds like you have bigger issues on your hands if this happens. Lock down your user content and you won&#8217;t have this problem or the other hundreds of malicious injections, many much worse than a simple prevention of use of your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Cruz</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-19141</link>
		<dc:creator>Miguel Cruz</dc:creator>
		<pubDate>Mon, 27 Sep 2010 11:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-19141</guid>
		<description>Roberto: You are missing the point.

It&#039;s true that all user data is fundamentally untrustable.

However, the thinking in your message is all about protecting the server from compromise. That&#039;s not the issue here. The issue here is protecting users from abuse.

Allowing cookie data to mingle with form data doesn&#039;t change the vigilance that is necessary in order to prevent your server from compromise.

However, it does make it easier for miscreants to trick unwitting users into unwittingly performing actions on your server which they are nominally allowed to do but might not have chosen to.</description>
		<content:encoded><![CDATA[<p>Roberto: You are missing the point.</p>
<p>It&#8217;s true that all user data is fundamentally untrustable.</p>
<p>However, the thinking in your message is all about protecting the server from compromise. That&#8217;s not the issue here. The issue here is protecting users from abuse.</p>
<p>Allowing cookie data to mingle with form data doesn&#8217;t change the vigilance that is necessary in order to prevent your server from compromise.</p>
<p>However, it does make it easier for miscreants to trick unwitting users into unwittingly performing actions on your server which they are nominally allowed to do but might not have chosen to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Neumann</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-18268</link>
		<dc:creator>Roberto Neumann</dc:creator>
		<pubDate>Sat, 11 Sep 2010 04:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-18268</guid>
		<description>Correct me if I´m wrong, but this sounds like $_COOKIE was the only $_REQUEST-element that can be misused by users. But considering GPC, all three arrays do usually get user-input - so whereever you´re using $_REQUEST, even if the C has been removed, the user could still give you some faulty data to deal with, because the user can still infuse them via $_GET (address bar) or $_POST (using a local HTML form to call your php-file).

So there is no true point in removing C from GPC, because all three arrays are ultimately user-controlled and have to be dealt with! Changing its priority makes much more sense in my opinion -&gt; CGP. You´ll just fix some possible bugs either way, but there´s always a risk to deal with when dealing with user-controlled variables - no matter where they come from.</description>
		<content:encoded><![CDATA[<p>Correct me if I´m wrong, but this sounds like $_COOKIE was the only $_REQUEST-element that can be misused by users. But considering GPC, all three arrays do usually get user-input &#8211; so whereever you´re using $_REQUEST, even if the C has been removed, the user could still give you some faulty data to deal with, because the user can still infuse them via $_GET (address bar) or $_POST (using a local HTML form to call your php-file).</p>
<p>So there is no true point in removing C from GPC, because all three arrays are ultimately user-controlled and have to be dealt with! Changing its priority makes much more sense in my opinion -&gt; CGP. You´ll just fix some possible bugs either way, but there´s always a risk to deal with when dealing with user-controlled variables &#8211; no matter where they come from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Sciberras</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-16045</link>
		<dc:creator>Christian Sciberras</dc:creator>
		<pubDate>Fri, 16 Jul 2010 22:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-16045</guid>
		<description>Jeremy did you even read the article? Spyros is wrong, but so are you.

The author specifically said that $_REQUEST is only insecure because of $_COOKIE in request_order, which for your information, has been disabled for quite some time.

So to sum it up, $_REQUEST, is a very useful feature which is best used with newer versions of PHP.

There are no other ulterior &quot;major security risks&quot;.</description>
		<content:encoded><![CDATA[<p>Jeremy did you even read the article? Spyros is wrong, but so are you.</p>
<p>The author specifically said that $_REQUEST is only insecure because of $_COOKIE in request_order, which for your information, has been disabled for quite some time.</p>
<p>So to sum it up, $_REQUEST, is a very useful feature which is best used with newer versions of PHP.</p>
<p>There are no other ulterior &#8220;major security risks&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Simkins</title>
		<link>http://devlog.info/2010/02/04/why-php-request-array-is-dangerous/comment-page-1/#comment-14870</link>
		<dc:creator>Jeremy Simkins</dc:creator>
		<pubDate>Wed, 26 May 2010 16:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://devlog.info/?p=113#comment-14870</guid>
		<description>I make it a point to never use $_REQUEST. Even studying for the ZCE explains that $_REQUEST is a major security risk. Spyros, you are completely wrong.

Thanks for the article, very useful information. Let&#039;s hope people learn from this...</description>
		<content:encoded><![CDATA[<p>I make it a point to never use $_REQUEST. Even studying for the ZCE explains that $_REQUEST is a major security risk. Spyros, you are completely wrong.</p>
<p>Thanks for the article, very useful information. Let&#8217;s hope people learn from this&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

