<?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: php security interview questions</title>
	<atom:link href="http://www.phpinterviewquestions.com/php-interview-questions/php-security-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpinterviewquestions.com/php-interview-questions/php-security-interview-questions/</link>
	<description>Prepare for your next php based interview with high confidence</description>
	<lastBuildDate>Fri, 23 Sep 2011 11:31:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: free tutorials</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/php-security-interview-questions/comment-page-1/#comment-36</link>
		<dc:creator>free tutorials</dc:creator>
		<pubDate>Thu, 22 Jul 2010 16:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=327#comment-36</guid>
		<description>Hey thanks a lot for sharing useful interview questions..... which will be very helpful while attending the interviews.....
 glad i found ur site...really  a very helpful site.....
by the way check out my collection of php interview questions from here: &lt;a href=&quot;http://webdaggers.blogspot.com/2010/07/php-interview-questions.html&quot; rel=&quot;nofollow&quot;&gt; php interview questions &lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hey thanks a lot for sharing useful interview questions&#8230;.. which will be very helpful while attending the interviews&#8230;..<br />
 glad i found ur site&#8230;really  a very helpful site&#8230;..<br />
by the way check out my collection of php interview questions from here: <a href="http://webdaggers.blogspot.com/2010/07/php-interview-questions.html" rel="nofollow"> php interview questions </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/php-security-interview-questions/comment-page-1/#comment-34</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Wed, 14 Jul 2010 11:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=327#comment-34</guid>
		<description>Hi Mishi,
Good examples are difficult to produce for everyone, because it often requires a unique situation to make the risk clear. However, the most common example is that found in the PHP manual:
[php]
&lt;?php
if (authenticated_user()){
  $authorized = true;
}
if ($authorized){
  include &#039;/highly/sensitive/data.php&#039;;
}
?&gt;
[/php]
With register_globals enabled, this page can be requested with ?authorized=1 in the query string to bypass the intended access control. Of course, this particular vulnerability is the fault of the developer, not register_globals, but this indicates the increased risk posed by the directive. Without it, ordinary global variables (such as $authorized in the example) are not affected by data submitted by the client. A best practice is to initialize all variables and to develop with error_reporting set to E_ALL, so that the use of an uninitialized variable won&#039;t be overlooked during development.</description>
		<content:encoded><![CDATA[<p>Hi Mishi,<br />
Good examples are difficult to produce for everyone, because it often requires a unique situation to make the risk clear. However, the most common example is that found in the PHP manual:</p>
<pre class="brush: php;">
&lt;?php
if (authenticated_user()){
  $authorized = true;
}
if ($authorized){
  include '/highly/sensitive/data.php';
}
?&gt;
</pre>
<p>With register_globals enabled, this page can be requested with ?authorized=1 in the query string to bypass the intended access control. Of course, this particular vulnerability is the fault of the developer, not register_globals, but this indicates the increased risk posed by the directive. Without it, ordinary global variables (such as $authorized in the example) are not affected by data submitted by the client. A best practice is to initialize all variables and to develop with error_reporting set to E_ALL, so that the use of an uninitialized variable won&#8217;t be overlooked during development.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mishi</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/php-security-interview-questions/comment-page-1/#comment-33</link>
		<dc:creator>Mishi</dc:creator>
		<pubDate>Wed, 14 Jul 2010 10:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=327#comment-33</guid>
		<description>Why is it a security risk?</description>
		<content:encoded><![CDATA[<p>Why is it a security risk?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

