<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>These things are far too hard &#187; disable functions</title>
	<atom:link href="http://leadingedgescripts.co.uk/tag/disable-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://leadingedgescripts.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 24 Feb 2011 13:05:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Scary PHP Functions You Should Disable</title>
		<link>http://leadingedgescripts.co.uk/server-administration/scary-php-functions-you-should-disable/</link>
		<comments>http://leadingedgescripts.co.uk/server-administration/scary-php-functions-you-should-disable/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 18:49:30 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Computer Security]]></category>
		<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[disable functions]]></category>
		<category><![CDATA[php functions]]></category>
		<category><![CDATA[php security]]></category>

		<guid isPermaLink="false">http://www.leadingedgescripts.co.uk/?p=143</guid>
		<description><![CDATA[A few months back we completed a security update on one of our main servers and whilst we were performing the update we realised that there is a distinct lack of information out there concerning the security of PHP functions, and no good lists of functions that should be banned or switched off. When you install PHP, [...]]]></description>
			<content:encoded><![CDATA[<p>A few months back we completed a security update on one of our main servers and whilst we were performing the update we realised that there is a distinct lack of information out there concerning the security of PHP functions, and no good lists of functions that should be banned or switched off.</p>
<p>When you install PHP, it doesn&#8217;t make a huge amount of recommendations about which functions you should ban on your servers. Although it basically does come out of the box in safe mode, which is great, as a web host trying to offer the best service possible, we like to offer our customers the choice of using PHP&#8217;s safe mode or not. I know that as a developer it&#8217;s a real pain to be forced to deal with things like magic quotes when you already have tight methods of blocking SQL injection, XSS attacks etc.</p>
<p>So, as a hosting company, we want to leave things as flexible as possible for developers, it&#8217;s critical for us to know that our customers can&#8217;t write PHP code that could lead to our server being left wide open to attack.</p>
<p>
<!-- Begin Google Adsense code -->
<script type="text/javascript"><!--
google_ad_client = "pub-4904188713812219";
/* 468x60, created 02/11/08 */
google_ad_slot = "9286450703";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>So, being diligent web hosts we searched high and low for a decent list of PHP functions that we ought to ban, and surprisingly couldn&#8217;t really find any decent lists.</p>
<p>So, for anyone wondering what functions to ban, here is our list of PHP functions you should definitely not allow your customers to use!</p>
<p>exec, system, passthru, readfile, shell_exec, escapeshellarg, proc_close, proc_open, ini_alter, dl, parse_ini_file, show_source, popen, pclose, pcntl_exec, proc_get_status, proc_nice, proc_terminate, pfsockopen, posix_kill, posix_mkfifo, openlog, syslog, escapeshellcmd, apache_child_terminate, apache_get_env, apache_set_env, apache_note, virtual, error_log, openlog, syslog, readlink, symlink, link, highlight_file, closelog, ftp_exec, posix_setpgid, posix_setuid, posix_setsid, posix_setegid, posix_seteuid, posix_getpwnam, posix_ctermid, posix_uname, posix_getegid, posix_geteuid, posix_getpid, posix_getppid, posix_getpwuid</p>
<p>I&#8217;m not going to go into details here, but if you&#8217;re in for a fright, look these functions up (especially the posix ones) on the www.php.net website, you&#8217;ll be very scared!</p>
<p>This list may be overkill, but keep in mind, we&#8217;re aiming this at the shared server market. If anyone has any other functions they think should be banned, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://leadingedgescripts.co.uk/server-administration/scary-php-functions-you-should-disable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

