<?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, 17 May 2012 03:42:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP-Security.net: New PHP-CGI Exploit (CVE-2012-1823)]]></title>
      <guid>http://www.phpdeveloper.org/news/17908</guid>
      <link>http://www.phpdeveloper.org/news/17908</link>
      <description><![CDATA[<p>
The PHP-Security.net site has two posts related to the recently discovered bug in PHP (hence the <a href="http://phpdeveloper.org/news/17907">new versions</a>) related to the CGI handling in certain server configurations. 
</p>
<p>
In <a href="http://www.php-security.net/archives/9-New-PHP-CGI-exploit-CVE-2012-1823,-PoC-exploit.html">the first</a> they detail more of what the bug is, how it could be exploited and link to the <a href="http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/">original advisory</a> for the problem. Also included are more details on the issue, including sample avenues of attack.
</p>
<p>
In the <a href="http://www.php-security.net/archives/11-Mitigation-for-CVE-2012-1823-CVE-2012-2311.html">second post</a> they look at the recent PHP release and note that it does not completely rid the language of the problem. They point out that the Rewrite rule that's included in their post (not the one on PHP.net) should be used to prevent this issue from effecting your installations.
</p>]]></description>
      <pubDate>Fri, 04 May 2012 08:24:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: PHP Security: Cross-Site Scripting Attacks (XSS)]]></title>
      <guid>http://www.phpdeveloper.org/news/17890</guid>
      <link>http://www.phpdeveloper.org/news/17890</link>
      <description><![CDATA[<p>
PHPMaster.com has a new tutorial posted today (by <i>George Fekete</i>) about <a href="http://phpmaster.com/php-security-cross-site-scripting-attacks-xss/">preventing cross-site scripting attacks</a> in your PHP-based applications.
</p>
<blockquote>
Unfortunately, cross-site scripting attacks occurs mostly, because developers are failing to deliver secure code. Every PHP programmer has the responsibility to understand how attacks can be carried out against their PHP scripts to exploit possible security vulnerabilities. Reading this article, you'll find out more about cross-site scripting attacks and how to prevent them in your code.
</blockquote>
<p>
Included in the tutorial is an example with a simple form and definitions of different types of XSS attacks - reflected XSS, persistent XSS and three ways to prevent them: data filtering, output filtering and data validation. He also links to a few "cheatsheets" to help even more (including <a href="http://ha.ckers.org/xss.html">this guide</a> and a Zend Framework set of <a href="http://www.zfsnippets.com/snippets/view/id/5">XSS test data</a>.
</p>]]></description>
      <pubDate>Tue, 01 May 2012 11:59:28 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP 5.3.11 And PHP 5.4.1 Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/17873</guid>
      <link>http://www.phpdeveloper.org/news/17873</link>
      <description><![CDATA[<p>
The PHP project has officially <a href="http://www.php.net/archive/2012.php#id2012-04-26-1">released the latest versions</a> of the language - PHP 5.3.11 and PHP 5.4.1:
</p>
<blockquote>
The PHP development team announces the immediate availability of PHP 5.3.11 and PHP 5.4.1. These releases focuses on improving the stability of the current PHP branches with over 60 bug fixes, some of which are security related. [...] For a full list of changes in PHP 5.3.11 and PHP 5.4.1, see the <a href="http://www.php.net/ChangeLog-5.php">ChangeLog</a>. For source downloads please visit our <a href="http://www.php.net/downloads.php">downloads page</a>, Windows binaries can be found on <a href="http://windows.php.net/download/">windows.php.net/download/</a>. All users of PHP are strongly encouraged to upgrade to PHP 5.3.11 or PHP 5.4.1.
</blockquote>
<p>
Several bugs were fixed in both releases including issues with validation of the name of the uploaded file, adding open_basedir checks to readline_write_history/readline_read_history, 
and the addition of debug info handler to DOM objects.
</p>]]></description>
      <pubDate>Thu, 26 Apr 2012 07:43:06 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Infosec Institute: SQL Injection through HTTP Headers]]></title>
      <guid>http://www.phpdeveloper.org/news/17775</guid>
      <link>http://www.phpdeveloper.org/news/17775</link>
      <description><![CDATA[<p>
While not specific to PHP, security is something that all developers need to think about in their applications. To that end, the Infosec Institute has <a href="http://resources.infosecinstitute.com/sql-injection-http-headers/">published this guide</a> to helping you prevent SQL injection attacks that could come in via the HTTP headers of requests to your site.
</p>
<blockquote>
During vulnerability assessment or penetration testing, identifying the input vectors of the target application is a primordial step. Sometimes, when dealing with Web application testing, verification routines related to SQL injection flaws discovery are restricted to the GET and POST variables as the unique inputs vectors ever. What about other HTTP header parameters? Aren't they potential input vectors for SQL injection attacks? How can one test all these HTTP parameters and which vulnerability scanners to use in order to avoid leaving vulnerabilities undiscovered in parts of the application?
</blockquote>
<p>
They start by describing the different kinds of headers that the attacks could come in on - GET, POST, cookies and the other HTTP headers. According to <a href="http://resources.infosecinstitute.com/wp-content/uploads/033012_1704_SQLInjectio1.png?d9c344">some results</a>, the HTTP headers option is the least protected in most common applications. He includes some good examples of headers that might contain malicious data such as:
</p>
<ul>
<li>X-Forwarded-For
<li>User-agent
<li>Referer
</ul>
<p>
Techniques are also included showing you tools and methods to help test your own applications including some in-browser tools and external applications (like Sqlmap, Nessus, WebInspect, SkipFish and Wapiti) with some <a href="http://resources.infosecinstitute.com/wp-content/uploads/033012_1704_SQLInjectio13.png?d9c344">average scores</a> from running them on various coverage scores.
</p>]]></description>
      <pubDate>Wed, 04 Apr 2012 10:17:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: RIPS - Static Source Code Analyzer for Vulnerabilities in PHP Scripts]]></title>
      <guid>http://www.phpdeveloper.org/news/17698</guid>
      <link>http://www.phpdeveloper.org/news/17698</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has <a href="http://www.thespanner.co.uk/2012/03/19/rips-static-source-code-analyser/">pointed out an interesting tool</a> today for analyzing the source of your application and trying to discover security-related issues: <a href="http://rips-scanner.sourceforge.net/">RIPS</a>
</p>
<blockquote>
RIPS is a tool written in PHP to find vulnerabilities in PHP applications using static code analysis. By tokenizing and parsing all source code files RIPS is able to transform PHP source code into a program model and to detect sensitive sinks (potentially vulnerable functions) that can be tainted by userinput (influenced by a malicious user) during the program flow. Besides the structured output of found vulnerabilities RIPS also offers an integrated code audit framework for further manual analysis.
</blockquote>
<p>
<a href="http://rips-scanner.sourceforge.net/">The project site</a> lists out the features that come with the tool, what it searches for (including command execution issues, header injection, file manipulation and SQL injection) and some example screenshots of its interface. You can <a href="http://sourceforge.net/projects/rips-scanner/files/">download the latest version</a> and try it out for yourself.
</p>]]></description>
      <pubDate>Tue, 20 Mar 2012 10:34:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[P&aacute;draic Brady's Blog: XSS in PHP (Part 1): How Not to Use Htmlspecialchars]]></title>
      <guid>http://www.phpdeveloper.org/news/17667</guid>
      <link>http://www.phpdeveloper.org/news/17667</link>
      <description><![CDATA[<p>
<i>P&aacute;draic Brady</i> has <a herf="http://blog.astrumfutura.com/2012/03/a-hitchhikers-guide-to-cross-site-scripting-xss-in-php-part-1-how-not-to-use-htmlspecialchars-for-output-escaping/">written up an exhaustive guide</a> to using <a href="http://php.net/htmlspecialchars">htmlspecialchars</a> correctly and securely in your applications (though it's technically how "not to use it"). This is part one of a series looking at preventing cross-site scripting in PHP applications.
</p>
<blockquote>
<p>
While it's no harm poking fun at ourselves, in PHP we do have a serious problem. Cross-Site Scripting (XSS) remains one of the most significant classes of security problems afflicting PHP applications. Despite years of education, community awareness and the development of frameworks which can offer a huge boost in consistent practices - things are not getting any better.
</p>
<p>
So, I finally figured out what the core problem is: PHP programmers are completely clueless about XSS. It's that simple. Instead of going out and studying the topic, we blindly follow some preferred herd of people offering advice with heartfelt conviction despite the fact that they are probably just as ignorant as the rest of us. Does that sound like the behaviour of something which allegedly evolved into an intelligent species? The result is a mix of ignorance and stagnant knowledge that leaves PHP in an unenviable position beset by wrongheaded zealots.
</p>
</blockquote>
<p>
He introduces the <a href="http://php.net/htmlspecialchars">htmlspecialchars</a> function and how it has been generally assumed a good method for presenting XSS attacks.   He talks about issues with quotes, problems that IE6 seems to have that no one else does and the all-important third parameter of the function (character set detection) and the optional fourth (decoding HTML entities automatically). 
</p>
<p>
He's created <a href="https://github.com/padraic/xss">this github repository</a> with the examples from the post.
</p>]]></description>
      <pubDate>Tue, 13 Mar 2012 12:44:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP 5.4.0 RC8 released]]></title>
      <guid>http://www.phpdeveloper.org/news/17581</guid>
      <link>http://www.phpdeveloper.org/news/17581</link>
      <description><![CDATA[<p>
The PHP project has <a href="http://www.php.net/archive/2012.php#id2012-02-24-1">officially announced the latest release candidate</a> for the upcoming PHP 5.4.0 series - PHP 5.4.0 RC8.
</p>
<blockquote>
The PHP development team would like to announce the 8th release candidate of PHP 5.4. PHP 5.4 includes new language features and removes several legacy (deprecated) behaviours. Windows binaries can be downloaded from the Windows QA site. THIS IS A RELEASE CANDIDATE - DO NOT USE IT IN PRODUCTION! This is the 8th release candidate. The release candidate phase is intended as a period of bug fixing prior to the stable release. No new features should be included before the final version of PHP 5.4.0.
</blockquote>
<p>
Improvements in this release include bugfixes for an issues with <a href="http://php.net/htmlspecialchars">htmlspecialchars</a>/<a href="http://php.net/htmlentities">htmlentities</a> as well as improving on the "max_input_vars" configuration setting to work better with nested variables. You can find the full list of changes <a href="https://svn.php.net/repository/php/php-src/tags/php_5_4_0RC8/NEWS">in the NEWS file</a> and download the release for testing <a href="http://qa.php.net/">from the QA site</a> (<a href="http://windows.php.net/qa/">Windows binaries</a>).
</p>]]></description>
      <pubDate>Fri, 24 Feb 2012 08:46:15 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[User Group: Boston PHP Welcomes Chris Shiflett]]></title>
      <guid>http://www.phpdeveloper.org/news/17544</guid>
      <link>http://www.phpdeveloper.org/news/17544</link>
      <description><![CDATA[<p>
The Boston PHP User Group will be having their next meeting <a href="http://www.meetup.com/bostonphp/events/30179741/">tonight (the 15th) at 7pm</a> at the Microsoft N.E.R.D Center in Cambridge. The featured speaker for the evening is <a href="http://shiflett.org">Chris Shiflett</a>, a well-known member of the PHP community. He'll be speaking on "Security-Centered Design: Exploring the Impact of Human Behavior".
</p>
<blockquote>
Join Boston PHP and O'Reilly Author Chris Shiflett as we take you through a fascinating talk on the human behavior and social aspect of security. We'll explore topics such as change blindness and ambient signifiers, and we'll show some real-world examples that demonstrate the profound impact human behavior can have on security. If your a designer, developer, human interaction designer, you won't want to miss this talk.
</blockquote>
<p>
So far there's <a href="http://www.meetup.com/bostonphp/events/30179741/">over 150 marked as attending</a> - if you plan on trying to make it tonight, be sure you RSVP so they know how many to expect.
</p>]]></description>
      <pubDate>Wed, 15 Feb 2012 07:11:37 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Davey Shafik's Blog: The Blowfish Debacle]]></title>
      <guid>http://www.phpdeveloper.org/news/17532</guid>
      <link>http://www.phpdeveloper.org/news/17532</link>
      <description><![CDATA[<p>
<i>Davey Shafik</i> has a recent post to his blog about what he calls "<a href="http://daveyshafik.com/archives/35354-the-blowfish-debacle.html">The Blowfish Debacle</a>" - the issues that came up with the PHP 5.3.7 release to upgrade the crypt_blowfish version that resulted in a larger error being introduced.
</p>
<blockquote>
This was a great security fix, solving an issue with insecure passwords due to incorrect behavior. HOWEVER, what wasn't made clear, is that this change was actually a backwards compatibility break. If you upgraded to 5.3.7+ data hashed pre-5.3.7 would no longer match data hashed post-5.3.7; this means if you use it for passwords, it will no longer match. So what's the deal here?
</blockquote>
<p>
He talks about the differences in the two methods of encryption, the newer being the "more correct" way of doing things. If you need the backwards compatibility because of previously hashed values, you can use the "$2x$" prefix instead of the usual "$2a$". He includes a snippet of code that can be used to upgrade all of your previously hashed blowfish passwords up to the new format.
</p>]]></description>
      <pubDate>Mon, 13 Feb 2012 10:02:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Another Serious Security Bug on PHP 5.3.9]]></title>
      <guid>http://www.phpdeveloper.org/news/17504</guid>
      <link>http://www.phpdeveloper.org/news/17504</link>
      <description><![CDATA[On the PHPClasses.org blog there's <a href="http://www.phpclasses.org/blog/post/175-Another-Serious-Security-Bug-on-PHP-539.html">a new post</a> detailing an issue that came up in the PHP 5.3.9 release that caused a large security issue (PHP 5.3.10 has, however, <a href="http://php.net/downloads">already been released</a> to correct the issue).
</p>
<blockquote>
PHP 5.3.9 release was mostly meant to fix a security bug, but it introduced a new more serious bug. PHP 5.3.10 was just released to fix this issue. [...] This time it is a bug that allows arbitrary remote code execution. This means that it allows to run arbitrary code on the server, injected by an eventual attacker, so it can be used to cause many types of damage inside a server.
</blockquote>
<p>
The upgrade to <a href="http://php.net/downloads">PHP 5.3.10</a> is highly recommended to prevent this issue from effecting your applications. The <a href="http://www.phpclasses.org/blog/post/175-Another-Serious-Security-Bug-on-PHP-539.html">post</a> also mentions the dropping of Suhosin support (a security plugin for PHP) on the Debian linux distribution's default installation and how the PHP community has reacted to the decision.
</p>]]></description>
      <pubDate>Mon, 06 Feb 2012 14:16:22 -0600</pubDate>
    </item>
  </channel>
</rss>

