<?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>Mon, 20 May 2013 12:03:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Nikita Popov's Blog: Supercolliding a PHP array]]></title>
      <guid>http://www.phpdeveloper.org/news/17322</guid>
      <link>http://www.phpdeveloper.org/news/17322</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Nikita Popov</i> talks about a little <a href="http://nikic.github.com/2011/12/28/Supercolliding-a-PHP-array.html">trick with inserting values into arrays</a> that can make it take a lot longer than it should (because of how PHP stores its array values in hashtables).
</p>
<blockquote>
PHP internally uses hashtables to store arrays. The above creates a hashtable with 100% collisions (i.e. all keys will have the same hash). [...] Because every hash function has collisions this C array doesn't actually store the value we want, but a linked list of possible values. [...] Normally there will be only a small number of collisions, so in most cases the linked list will only have one value. But the [included script] creates a hash where all elements collide.
</blockquote>
<p>
He explains why it works, noting that it's relatively simple to do in PHP because of how it applies a table mask. The slowness comes in when PHP is forced to go through the entire list when it tries to insert. Because of this issue, there's the potential for a Denial of Service attack that could potentially take a server down. There's <a href="http://svn.php.net/viewvc?view=revision&revision=321038">a fix already in place</a> for the problem, though, so keep an eye out for the next release (that will include a max_input_vars setting to prevent it).
</p>]]></description>
      <pubDate>Thu, 29 Dec 2011 12:15:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Secunia: rPath Update for gd and Multiple php Packages]]></title>
      <guid>http://www.phpdeveloper.org/news/8600</guid>
      <link>http://www.phpdeveloper.org/news/8600</link>
      <description><![CDATA[<p>
As mentioned in <a href="http://secunia.com/advisories/26663/">this Secunia advisory</a> today, rPath has release updates to several packages today including a few PHP ones and GD library updates.
</p>
<blockquote>
rPath has issued an update for gd and multiple php packages. This fixes some vulnerabilities, where some have an unknown impact and others can potentially be exploited to cause a DoS (Denial of Service).
</blockquote>
<p>
The update is marked as "moderately critical" so it's recommended that users update their installations as soon as possible. You can find out more information and get the links to download the packages from <a href="http://lists.rpath.com/pipermail/security-announce/2007-September/000233.html">the original advisory post</a>.
</p>]]></description>
      <pubDate>Thu, 06 Sep 2007 09:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Secunia.com: Debian Update for PHP4 & PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/8201</guid>
      <link>http://www.phpdeveloper.org/news/8201</link>
      <description><![CDATA[<p>
On Secunia.com, two new updates for the Debian linux distribution have been posted - on for PHP4 and the other for PHP5:
</p>
<blockquote>
Debian has issued an update for php4/5. This fixes some vulnerabilities, which can be exploited by malicious people to conduct cross-site scripting attacks, cause a DoS (Denial of Service), and potentially compromise a vulnerable system.
</blockquote>
<p>
You can get more information and links to the downloads here:
</p>
<ul>
<li><a href="http://secunia.com/advisories/25945/">PHP4 announcement</a>
<li><a href="http://secunia.com/advisories/25938/">PHP5 announcement</a>
</ul>]]></description>
      <pubDate>Mon, 09 Jul 2007 10:26:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Secunia.com: Slackware update for PHP5]]></title>
      <guid>http://www.phpdeveloper.org/news/7969</guid>
      <link>http://www.phpdeveloper.org/news/7969</link>
      <description><![CDATA[<p>
The Slackware group has released an update to their PHP5 packages according to <a href="http://secunia.com/advisories/25535/">this new release</a> on the Secunia site:
</p>
<blockquote>
Slackware has issued an update for php5. This fixes some vulnerabilities, where one has an unknown impact and others can be exploited by malicious people to bypass certain security restrictions and cause a DoS (Denial of Service).
</blockquote>
<p>
You can grab the updated packages via <a href="http://slackware.com/security/viewer.php?l=slackware-security&y=2007&m=slackware-security.482863">the original advisory</a> and bring your installation up to date with the latest security fixes.
</p>]]></description>
      <pubDate>Mon, 04 Jun 2007 17:04:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Secunia.com: PHP "gdPngReadData()" Truncated PNG Data Denial of Service]]></title>
      <guid>http://www.phpdeveloper.org/news/7894</guid>
      <link>http://www.phpdeveloper.org/news/7894</link>
      <description><![CDATA[<p>
Secunia has posted <a href="http://secunia.com/advisories/25378/">this new advisory</a> today about an issue with the GD graphics library functionality in PHP that could be used to cause a Denial of Service via a truncated PNG image.
</p>
<blockquote>
The vulnerability is caused due to the incorrect use of libpng within the function "gdPngReadData()" in ext/gd/libgd/gd_png.c of the GD extension when processing truncated data. This can be exploited to cause an infinite loop by e.g. tricking an application to process a specially crafted file. (reported by Xavier Roche)
</blockquote>
<p>
<a href="http://secunia.com/advisories/25378/">This issue</a> has been confirmed in PHP versions 4.4.7 and 5.2.2 but may affect others. The issue has already been corrected, however, and can be fetched from the <a href="http://viewcvs.php.net/viewvc.cgi/gd/libgd/gd_png.c?r1=1.22&r2=1.23&pathrev=HEAD">PHP CVS system</a> to protect your system.
</p>]]></description>
      <pubDate>Tue, 22 May 2007 11:09:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Secunia.com: Ubuntu update for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7726</guid>
      <link>http://www.phpdeveloper.org/news/7726</link>
      <description><![CDATA[<p>
Secunia has <a href="http://secunia.com/advisories/25057/">issued an advisory</a> today for Ubuntu users - an upgrade has been released to correct a few vulnerabilities.
</p>
<blockquote>
Ubuntu has issued an update for php. This fixes some vulnerabilities, which can be exploited by malicious users to disclose potentially sensitive information, bypass certain security restrictions, gain escalated privileges, cause a DoS (Denial of Service), compromise a vulnerable system, and by malicious people to disclose potentially sensitive information, bypass certain security restrictions, cause a DoS (Denial of Service), and potentially compromise a vulnerable system.
</blockquote>
<p>
The <a href="http://secunia.com/advisories/25057/">Secunia post</a> has links to all of the packages you'll need (for each kind of architecture) to get things up to date and corrected. This issue has been marked as "Moderately Critical".
</p>]]></description>
      <pubDate>Fri, 27 Apr 2007 13:26:00 -0500</pubDate>
    </item>
  </channel>
</rss>
