<?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>Thu, 20 Nov 2008 19:16:22 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Davey Shafik's Blog: PHP Streams Rock my World!]]></title>
      <guid>http://www.phpdeveloper.org/news/8641</guid>
      <link>http://www.phpdeveloper.org/news/8641</link>
      <description><![CDATA[<p>
<i>Davey Shafik</i> has gotten <a href="http://pixelated-dreams.com/archives/319-PHP-Streams-Rock-my-World!.html">more than a little excited</a> by the streams functionality in his latest blog post:
</p>
<blockquote>
PHP streams are absolutely amazing. As mentioned by Elizabeth Smith (a great read if you don't know how to use streams) PHP streams are super powerful. Streams is something that is (to my knowledge) unique to PHP. The closest thing I've seen to it, is Linux's FUSE "user space" (i.e. not kernel module) file systems.
</blockquote>
<p>
He <a href="http://pixelated-dreams.com/archives/319-PHP-Streams-Rock-my-World!.html">shows an example</a> of a stream in action and suggests an interface he'd like to see - an automatic connection to the Amazon S3 storage.
</p>]]></description>
      <pubDate>Wed, 12 Sep 2007 14:14:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: PHP security exploit with GIF images]]></title>
      <guid>http://www.phpdeveloper.org/news/8088</guid>
      <link>http://www.phpdeveloper.org/news/8088</link>
      <description><![CDATA[<p>
On the PHPClasses site today, there's <a href="http://www.phpclasses.org/blog/post/67-PHP-security-exploit-with-GIF-images.html">a new post</a> that points out an issue that could happen with dyanamic GIF creation in a PHP script leading to a security exploit.
</p>
<p>
<i>Manuel Lemos</i> writes:
</p>
<blockquote>
The problem that was discovered is that you can insert PHP code in the middle of a GIF image. That would not be a problem if it was not for the insecure ways some developers use to serve images upload by their users. Usually, uploaded files are moved to a given directory. If the site then serves the images directly from that directory and preserve the original file name, the site may be open for security exploits.
</blockquote>
<p>
The problem comes when a user decides to upload an "image" file that's actually a PHP script (ending in PHP even) to the remote system. When this is outputted, it's placed inside the image tag and executed with each page load. <i>Manuel</i> <a href="http://www.phpclasses.org/blog/post/67-PHP-security-exploit-with-GIF-images.html">offers a suggestion</a> to prevent the issue - protecting the images directory and using readfile to grab the contents of the file to output rather than just a straight echo.
</p>]]></description>
      <pubDate>Wed, 20 Jun 2007 12:57:00 -0500</pubDate>
    </item>
  </channel>
</rss>
