<?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>Fri, 24 May 2013 10:28:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[php|architect: Possible vulnerabilities found in PHP session IDs ]]></title>
      <guid>http://www.phpdeveloper.org/news/14331</guid>
      <link>http://www.phpdeveloper.org/news/14331</link>
      <description><![CDATA[<p>
<i>Beth Tucker Long</i> has posted a new warning <a href="http://www.phparch.com/2010/04/09/possible-vulnerabilities-found-in-php-session-ids">about a possible issue with session IDs</a> in PHP dealing with <a href="http://seclists.org/fulldisclosure/2010/Mar/519">weak random numbers</a> being generated by the language when making the IDs.
</p>
<blockquote>
Seclists.org has posted an advisory titled "<a href="http://seclists.org/fulldisclosure/2010/Mar/519">Weak RNG in PHP session ID generation leads to session hijacking</a>." RNG stands for Random Number Generation, and the advisory is warning that not enough entropy is being used to seed the RNG; this, in turn, can lead to a reduced number of possible session IDs under certain specific conditions, thus making brute force session spoofing easier, if not bringing it into the realm of feasibility.
</blockquote>
<p>
The threat is only marked at a "medium" level of severity, but it could still cause problems if you're not careful. There are specific conditions that have to be in place for it to be a problem including using the standard PHP session generation and that the app shares the information about remote users. To protect yourself you can either install <a href="http://www.hardened-php.net/suhosin/">Suhosin</a> and don't use the result of <a href="http://php.net/uniqid</a> directly, hash it. You can also <a href="http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file">set an external source</a> for entropy to help randomize the session ID even more.
</p>]]></description>
      <pubDate>Mon, 12 Apr 2010 08:29:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: Update to libxml2 in PHP - progress hath been acquired]]></title>
      <guid>http://www.phpdeveloper.org/news/7988</guid>
      <link>http://www.phpdeveloper.org/news/7988</link>
      <description><![CDATA[<p>
Related to an <a href="http://greg.chiaraquartet.net/archives/176-W3C-SchemaRelax-NGDTD-seem-to-be-totally-useless-in-PHP,-help.html">issue from a previous post</a>, <i>Greg Beaver</i> has <a href="http://greg.chiaraquartet.net/archives/177-Update-to-libxml2-in-PHP-progress-hath-been-acquired.html">posted a solution</a> to his Relax NG schema problem in PHP.
</p>
<blockquote>
Shortly after my last blog post, I got a very helpful email from Rob Richards, who offered to help me with my trials and tribulations. He took a quick look at the schema for package.xml, and a sample package.xml and was able to find two small tweaks to make parsing actually work (gasp). This changes everything. I am abandoning the creation of a relax NG schema in favor of the battle-tested xsd. The error messages for xsd validation are far clearer than the rng ones.
</blockquote>
<p>
The <a href="http://greg.chiaraquartet.net/archives/177-Update-to-libxml2-in-PHP-progress-hath-been-acquired.html">code included</a> shows how much simpler the error messages are with the XSD validation option versus the RNG ones.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2007 11:45:00 -0500</pubDate>
    </item>
  </channel>
</rss>
