<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 23:09:30 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Elijah Horton: Sandboxing Untrusted Code With PHPSandbox]]></title>
      <guid>http://www.phpdeveloper.org/news/19520</guid>
      <link>http://www.phpdeveloper.org/news/19520</link>
      <description><![CDATA[<p>
<i>Elijah Horton</i> has a recent post to his site sharing a tool he's developed to <a href="http://www.fieryprophet.com/blog/detail/sandboxing-untrusted-code-with-phpsandbox">sandbox and validate PHP code</a> of user-contributed code.
</p>
<blockquote>
Few quotes related to the PHP language are as pithy and resoundingly accurate as the phrase: "Eval is evil." The reasons are myriad: the eval() function basically gives whatever code is passed to it unlimited control of the parser, and this freedom makes eval() both a temptation for developers, who may need to dynamically control PHP at runtime, and a panacea for hackers who are ever-searching for more servers to add to their botnets. So, how does one make use of the extreme power available through runtime evaulation of PHP, without exposing one's server to near-certain rooting? Through a sandbox. 
</blockquote>
<p>
His tool - <a href="https://github.com/fieryprophet/php-sandbox">PHPSandbox</a>, uses the <a href="https://github.com/nikic/PHP-Parser">PHP-Parser</a> library to deconstruct the PHP code its given and look for issues. He gives an example of a call to <a href="http://php.net/mail">mail</a> and how it would catch the issue. He shows how to install it via Composer, how to configure it with whitelisted methods/functions. It also includes a way to overwrite function calls with a bit safer alternative.
</p>
Link: http://www.fieryprophet.com/blog/detail/sandboxing-untrusted-code-with-phpsandbox]]></description>
      <pubDate>Mon, 29 Apr 2013 11:56:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NOLOH.com: Demos, Demos Everywhere]]></title>
      <guid>http://www.phpdeveloper.org/news/14734</guid>
      <link>http://www.phpdeveloper.org/news/14734</link>
      <description><![CDATA[<p>
The <a href="http://noloh.com">NOLOH project</a> has <a href="http://dev.noloh.com/#/blog/2010/06/30/3/">officially announced</a> the release of a large demos section of their site complete with live examples of the framework in action.
</p>
<blockquote>
Until now one of the biggest issues with noloh.com was the need to sign-up for a <a href="http://www.noloh.com/#/home/&register=1">free hosted sandbox</a>, or download NOLOH in order to see it in action. No Longer. We're happy to officially announce the launch of noloh.com's <a href="http://dev.noloh.com/#/demos">Demo</a> section. The demo section allows you to play with live demos and examples, view their source, download the complete source, and even fork your very own version on github.
</blockquote>
<p>
Currently there's two examples for you to check out - an implementation of Hangman and an Image Broswer. Their "live example" gives a simple browser to run the application in, a source code viewer and a link to discuss the script. You can also, as they mention, fork it directly on github or just download it directly.
</p>]]></description>
      <pubDate>Thu, 01 Jul 2010 12:50:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP 10.0 Blog: php -T (variable tainting)]]></title>
      <guid>http://www.phpdeveloper.org/news/6862</guid>
      <link>http://www.phpdeveloper.org/news/6862</link>
      <description><![CDATA[<p>
On the PHP 10.0 Blog, there's <a href="http://php100.wordpress.com/2006/12/08/php-t/">a new post</a> today talking about variable tainting and what it might be like if PHP included it too.
</p>
<blockquote>
<a href="http://www.webreference.com/programming/perl/taint/">Perl</a> and <a href="http://www.rubycentral.com/book/taint.html">Ruby</a> have variable tainting. Maybe PHP should have it too?
</blockquote>
<p>
Variable tainting is a bit of built-in functionality that provides a "safety net" of sorts to the contents of variables to help protect both the users and the script itself from potentially harmful content.
</p>
<p>
He <a href="http://php100.wordpress.com/2006/12/08/php-t/">talks about</a> how Ruby and Perl handle the functionality and how, were PHP to work it in, which approach would fit better with PHP's current model:
</p>
<blockquote>
If one wants to implement proper tainting or sandboxing, it probably should be based on more generic approach that would account for existence of functions unknown in design time.
</blockquote>]]></description>
      <pubDate>Mon, 11 Dec 2006 10:26:00 -0600</pubDate>
    </item>
  </channel>
</rss>
